IDE.js 179 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456
  1. smalltalk.addClass('TabManager', smalltalk.Widget, ['selectedTab', 'tabs', 'opened', 'ul'], '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("body", "_asJQuery", []), "_addClass_", ["jtalkBody"]);smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_show", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_show", []);smalltalk.send(self, "_updateBodyMargin", []);smalltalk.send(self['@selectedTab'], "_show", []);return self['@opened']=true;})]);
  112. return self;},
  113. source: unescape('open%0A%20%20%20%20opened%20ifFalse%3A%20%5B%0A%09%27body%27%20asJQuery%20addClass%3A%20%27jtalkBody%27.%0A%09%27%23jtalk%27%20asJQuery%20show.%0A%09ul%20asJQuery%20show.%0A%09self%20updateBodyMargin.%0A%09selectedTab%20show.%0A%09opened%20%3A%3D%20true%5D'),
  114. messageSends: ["ifFalse:", "addClass:", "asJQuery", "show", "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(unescape("%23jtalk"), "_asJQuery", []), "_hide", []);smalltalk.send(smalltalk.send(self['@ul'], "_asJQuery", []), "_hide", []);smalltalk.send(self['@selectedTab'], "_hide", []);smalltalk.send(self, "_removeBodyMargin", []);smalltalk.send(smalltalk.send("body", "_asJQuery", []), "_removeClass_", ["jtalkBody"]);return self['@opened']=false;})]);
  126. return self;},
  127. source: unescape('close%0A%20%20%20%20opened%20ifTrue%3A%20%5B%0A%09%27%23jtalk%27%20asJQuery%20hide.%0A%09ul%20asJQuery%20hide.%0A%09selectedTab%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", "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(each, "_hide", []);})]);
  156. smalltalk.send(aWidget, "_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%20hide%5D.%0A%20%20%20%20aWidget%20show.%0A%09%0A%20%20%20%20self%20update'),
  160. messageSends: ["open", "do:", "tabs", "hide", "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(aWidget, "_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%20remove.%0A%20%20%20%20self%20update'),
  177. messageSends: ["removeTab:", "selectTab:", "last", "tabs", "remove", "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(aWidget, "_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%20hide'),
  193. messageSends: ["add:", "tabs", "append:", "asJQuery", "hide"],
  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. self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
  239. smalltalk.send(self, "_renderTabs", []);
  240. return self;},
  241. source: unescape('renderOn%3A%20html%0A%09ul%20%3A%3D%20html%20ul%0A%09%09id%3A%20%27jtalkTabs%27%3B%0A%09%09yourself.%0A%09self%20renderTabs'),
  242. messageSends: ["id:", "yourself", "ul", "renderTabs"],
  243. referencedClasses: []
  244. }),
  245. smalltalk.TabManager);
  246. smalltalk.addMethod(
  247. '_renderTabFor_on_',
  248. smalltalk.method({
  249. selector: 'renderTabFor:on:',
  250. category: 'rendering',
  251. fn: function (aWidget, html){
  252. var self=this;
  253. var li=nil;
  254. li=smalltalk.send(html, "_li", []);
  255. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", [aWidget]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
  256. smalltalk.send(li, "_with_", [(function(){smalltalk.send(smalltalk.send(aWidget, "_canBeClosed", []), "_ifTrue_", [(function(){return (function($rec){smalltalk.send($rec, "_class_", ["close"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_closeTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]);return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aWidget, "_label", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", [aWidget]);})]);})(smalltalk.send(html, "_span", []));})]);
  257. return self;},
  258. 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%20%20%20%20%20%20%20%20aWidget%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.%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%5D'),
  259. messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "canBeClosed", "onClick:", "closeTab:", "span", "label", "selectTab:"],
  260. referencedClasses: []
  261. }),
  262. smalltalk.TabManager);
  263. smalltalk.addMethod(
  264. '_renderTabs',
  265. smalltalk.method({
  266. selector: 'renderTabs',
  267. category: 'rendering',
  268. fn: function (){
  269. var self=this;
  270. smalltalk.send(self['@ul'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["closeAll"]);smalltalk.send($rec, "_with_", ["x"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_li", []));smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(self, "_renderTabFor_on_", [each, html]);})]);return (function($rec){smalltalk.send($rec, "_class_", ["newtab"]);smalltalk.send($rec, "_with_", [unescape("%20+%20")]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_newBrowserTab", []);})]);})(smalltalk.send(html, "_li", []));})]);
  271. return self;},
  272. source: unescape('renderTabs%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%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'),
  273. messageSends: ["contents:", "class:", "with:", "onClick:", "close", "li", "do:", "tabs", "renderTabFor:on:", "newBrowserTab"],
  274. referencedClasses: []
  275. }),
  276. smalltalk.TabManager);
  277. smalltalk.addMethod(
  278. '_update',
  279. smalltalk.method({
  280. selector: 'update',
  281. category: 'updating',
  282. fn: function (){
  283. var self=this;
  284. smalltalk.send(self, "_renderTabs", []);
  285. return self;},
  286. source: unescape('update%0A%09self%20renderTabs'),
  287. messageSends: ["renderTabs"],
  288. referencedClasses: []
  289. }),
  290. smalltalk.TabManager);
  291. smalltalk.TabManager.klass.iVarNames = ['current'];
  292. smalltalk.addMethod(
  293. '_current',
  294. smalltalk.method({
  295. selector: 'current',
  296. category: 'instance creation',
  297. fn: function (){
  298. var self=this;
  299. return smalltalk.send(self['@current'], "_ifNil_", [(function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass);})]);
  300. return self;},
  301. source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'),
  302. messageSends: ["ifNil:", "new"],
  303. referencedClasses: []
  304. }),
  305. smalltalk.TabManager.klass);
  306. smalltalk.addMethod(
  307. '_new',
  308. smalltalk.method({
  309. selector: 'new',
  310. category: 'instance creation',
  311. fn: function (){
  312. var self=this;
  313. smalltalk.send(self, "_shouldNotImplement", []);
  314. return self;},
  315. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  316. messageSends: ["shouldNotImplement"],
  317. referencedClasses: []
  318. }),
  319. smalltalk.TabManager.klass);
  320. smalltalk.addClass('TabWidget', smalltalk.Widget, ['div'], 'IDE');
  321. smalltalk.addMethod(
  322. '_label',
  323. smalltalk.method({
  324. selector: 'label',
  325. category: 'accessing',
  326. fn: function (){
  327. var self=this;
  328. smalltalk.send(self, "_subclassResponsibility", []);
  329. return self;},
  330. source: unescape('label%0A%20%20%20%20self%20subclassResponsibility'),
  331. messageSends: ["subclassResponsibility"],
  332. referencedClasses: []
  333. }),
  334. smalltalk.TabWidget);
  335. smalltalk.addMethod(
  336. '_open',
  337. smalltalk.method({
  338. selector: 'open',
  339. category: 'actions',
  340. fn: function (){
  341. var self=this;
  342. smalltalk.send(smalltalk.send(smalltalk.TabManager, "_current", []), "_addTab_", [self]);
  343. smalltalk.send(smalltalk.send(smalltalk.TabManager, "_current", []), "_selectTab_", [self]);
  344. return self;},
  345. source: unescape('open%0A%20%20%20%20TabManager%20current%20addTab%3A%20self.%0A%20%20%20%20TabManager%20current%20selectTab%3A%20self'),
  346. messageSends: ["addTab:", "current", "selectTab:"],
  347. referencedClasses: [smalltalk.TabManager]
  348. }),
  349. smalltalk.TabWidget);
  350. smalltalk.addMethod(
  351. '_show',
  352. smalltalk.method({
  353. selector: 'show',
  354. category: 'actions',
  355. fn: function (){
  356. var self=this;
  357. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_show", []);
  358. return self;},
  359. source: unescape('show%0A%09div%20asJQuery%20show'),
  360. messageSends: ["show", "asJQuery"],
  361. referencedClasses: []
  362. }),
  363. smalltalk.TabWidget);
  364. smalltalk.addMethod(
  365. '_hide',
  366. smalltalk.method({
  367. selector: 'hide',
  368. category: 'actions',
  369. fn: function (){
  370. var self=this;
  371. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_hide", []);
  372. return self;},
  373. source: unescape('hide%0A%09div%20asJQuery%20hide'),
  374. messageSends: ["hide", "asJQuery"],
  375. referencedClasses: []
  376. }),
  377. smalltalk.TabWidget);
  378. smalltalk.addMethod(
  379. '_remove',
  380. smalltalk.method({
  381. selector: 'remove',
  382. category: 'actions',
  383. fn: function (){
  384. var self=this;
  385. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_remove", []);
  386. return self;},
  387. source: unescape('remove%0A%09div%20asJQuery%20remove'),
  388. messageSends: ["remove", "asJQuery"],
  389. referencedClasses: []
  390. }),
  391. smalltalk.TabWidget);
  392. smalltalk.addMethod(
  393. '_renderOn_',
  394. smalltalk.method({
  395. selector: 'renderOn:',
  396. category: 'rendering',
  397. fn: function (html){
  398. var self=this;
  399. self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []));
  400. smalltalk.send(self, "_renderTab", []);
  401. return self;},
  402. source: unescape('renderOn%3A%20html%0A%09div%20%3A%3D%20html%20div%0A%09%09class%3A%20%27jtalkTool%27%3B%0A%09%09yourself.%0A%09self%20renderTab'),
  403. messageSends: ["class:", "yourself", "div", "renderTab"],
  404. referencedClasses: []
  405. }),
  406. smalltalk.TabWidget);
  407. smalltalk.addMethod(
  408. '_renderBoxOn_',
  409. smalltalk.method({
  410. selector: 'renderBoxOn:',
  411. category: 'rendering',
  412. fn: function (html){
  413. var self=this;
  414. return self;},
  415. source: unescape('renderBoxOn%3A%20html'),
  416. messageSends: [],
  417. referencedClasses: []
  418. }),
  419. smalltalk.TabWidget);
  420. smalltalk.addMethod(
  421. '_renderButtonsOn_',
  422. smalltalk.method({
  423. selector: 'renderButtonsOn:',
  424. category: 'rendering',
  425. fn: function (html){
  426. var self=this;
  427. return self;},
  428. source: unescape('renderButtonsOn%3A%20html'),
  429. messageSends: [],
  430. referencedClasses: []
  431. }),
  432. smalltalk.TabWidget);
  433. smalltalk.addMethod(
  434. '_update',
  435. smalltalk.method({
  436. selector: 'update',
  437. category: 'rendering',
  438. fn: function (){
  439. var self=this;
  440. smalltalk.send(self, "_renderTab", []);
  441. return self;},
  442. source: unescape('update%0A%09self%20renderTab'),
  443. messageSends: ["renderTab"],
  444. referencedClasses: []
  445. }),
  446. smalltalk.TabWidget);
  447. smalltalk.addMethod(
  448. '_renderTab',
  449. smalltalk.method({
  450. selector: 'renderTab',
  451. category: 'rendering',
  452. fn: function (){
  453. var self=this;
  454. smalltalk.send(self['@div'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["jt_box"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderBoxOn_", [html]);})]);})(smalltalk.send(html, "_div", []));return (function($rec){smalltalk.send($rec, "_class_", ["jt_buttons"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderButtonsOn_", [html]);})]);})(smalltalk.send(html, "_div", []));})]);
  455. return self;},
  456. source: unescape('renderTab%0A%09div%20contents%3A%20%5B%3Ahtml%20%7C%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'),
  457. messageSends: ["contents:", "class:", "with:", "renderBoxOn:", "div", "renderButtonsOn:"],
  458. referencedClasses: []
  459. }),
  460. smalltalk.TabWidget);
  461. smalltalk.addMethod(
  462. '_canBeClosed',
  463. smalltalk.method({
  464. selector: 'canBeClosed',
  465. category: 'testing',
  466. fn: function (){
  467. var self=this;
  468. return false;
  469. return self;},
  470. source: unescape('canBeClosed%0A%20%20%20%20%5Efalse'),
  471. messageSends: [],
  472. referencedClasses: []
  473. }),
  474. smalltalk.TabWidget);
  475. smalltalk.addMethod(
  476. '_open',
  477. smalltalk.method({
  478. selector: 'open',
  479. category: 'instance creation',
  480. fn: function (){
  481. var self=this;
  482. return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  483. return self;},
  484. source: unescape('open%0A%20%20%20%20%5Eself%20new%20open'),
  485. messageSends: ["open", "new"],
  486. referencedClasses: []
  487. }),
  488. smalltalk.TabWidget.klass);
  489. smalltalk.addClass('Workspace', smalltalk.TabWidget, ['sourceArea'], 'IDE');
  490. smalltalk.addMethod(
  491. '_label',
  492. smalltalk.method({
  493. selector: 'label',
  494. category: 'accessing',
  495. fn: function (){
  496. var self=this;
  497. return unescape("%5BWorkspace%5D");
  498. return self;},
  499. source: unescape('label%0A%20%20%20%20%5E%27%5BWorkspace%5D%27'),
  500. messageSends: [],
  501. referencedClasses: []
  502. }),
  503. smalltalk.Workspace);
  504. smalltalk.addMethod(
  505. '_clearWorkspace',
  506. smalltalk.method({
  507. selector: 'clearWorkspace',
  508. category: 'actions',
  509. fn: function (){
  510. var self=this;
  511. smalltalk.send(self['@sourceArea'], "_clear", []);
  512. return self;},
  513. source: unescape('clearWorkspace%0A%20%20%20%20sourceArea%20clear'),
  514. messageSends: ["clear"],
  515. referencedClasses: []
  516. }),
  517. smalltalk.Workspace);
  518. smalltalk.addMethod(
  519. '_doIt',
  520. smalltalk.method({
  521. selector: 'doIt',
  522. category: 'actions',
  523. fn: function (){
  524. var self=this;
  525. smalltalk.send(self['@sourceArea'], "_doIt", []);
  526. return self;},
  527. source: unescape('doIt%0A%20%20%20sourceArea%20doIt'),
  528. messageSends: ["doIt"],
  529. referencedClasses: []
  530. }),
  531. smalltalk.Workspace);
  532. smalltalk.addMethod(
  533. '_printIt',
  534. smalltalk.method({
  535. selector: 'printIt',
  536. category: 'actions',
  537. fn: function (){
  538. var self=this;
  539. smalltalk.send(self['@sourceArea'], "_printIt", []);
  540. return self;},
  541. source: unescape('printIt%0A%09sourceArea%20printIt'),
  542. messageSends: ["printIt"],
  543. referencedClasses: []
  544. }),
  545. smalltalk.Workspace);
  546. smalltalk.addMethod(
  547. '_inspectIt',
  548. smalltalk.method({
  549. selector: 'inspectIt',
  550. category: 'actions',
  551. fn: function (){
  552. var self=this;
  553. smalltalk.send(self['@sourceArea'], "_inspectIt", []);
  554. return self;},
  555. source: unescape('inspectIt%0A%20%20%20%20sourceArea%20inspectIt'),
  556. messageSends: ["inspectIt"],
  557. referencedClasses: []
  558. }),
  559. smalltalk.Workspace);
  560. smalltalk.addMethod(
  561. '_renderBoxOn_',
  562. smalltalk.method({
  563. selector: 'renderBoxOn:',
  564. category: 'rendering',
  565. fn: function (html){
  566. var self=this;
  567. self['@sourceArea']=smalltalk.send(smalltalk.SourceArea, "_new", []);
  568. smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);
  569. return self;},
  570. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%20%20%20%20sourceArea%20renderOn%3A%20html'),
  571. messageSends: ["new", "renderOn:"],
  572. referencedClasses: []
  573. }),
  574. smalltalk.Workspace);
  575. smalltalk.addMethod(
  576. '_renderButtonsOn_',
  577. smalltalk.method({
  578. selector: 'renderButtonsOn:',
  579. category: 'rendering',
  580. fn: function (html){
  581. var self=this;
  582. (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", []));
  583. (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", []));
  584. (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", []));
  585. (function($rec){smalltalk.send($rec, "_with_", ["Clear workspace"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clearWorkspace", []);})]);})(smalltalk.send(html, "_button", []));
  586. return self;},
  587. 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'),
  588. messageSends: ["with:", "title:", "onClick:", "doIt", "button", "printIt", "inspectIt", "clearWorkspace"],
  589. referencedClasses: []
  590. }),
  591. smalltalk.Workspace);
  592. smalltalk.addClass('Transcript', smalltalk.TabWidget, ['textarea'], 'IDE');
  593. smalltalk.addMethod(
  594. '_label',
  595. smalltalk.method({
  596. selector: 'label',
  597. category: 'accessing',
  598. fn: function (){
  599. var self=this;
  600. return unescape("%5BTranscript%5D");
  601. return self;},
  602. source: unescape('label%0A%20%20%20%20%5E%27%5BTranscript%5D%27'),
  603. messageSends: [],
  604. referencedClasses: []
  605. }),
  606. smalltalk.Transcript);
  607. smalltalk.addMethod(
  608. '_show_',
  609. smalltalk.method({
  610. selector: 'show:',
  611. category: 'actions',
  612. fn: function (anObject){
  613. var self=this;
  614. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(anObject, "_asString", [])])]);
  615. return self;},
  616. source: unescape('show%3A%20anObject%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20anObject%20asString.'),
  617. messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "asString"],
  618. referencedClasses: []
  619. }),
  620. smalltalk.Transcript);
  621. smalltalk.addMethod(
  622. '_cr',
  623. smalltalk.method({
  624. selector: 'cr',
  625. category: 'actions',
  626. fn: function (){
  627. var self=this;
  628. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(smalltalk.String, "_cr", [])])]);
  629. return self;},
  630. source: unescape('cr%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20String%20cr.'),
  631. messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "cr"],
  632. referencedClasses: [smalltalk.String]
  633. }),
  634. smalltalk.Transcript);
  635. smalltalk.addMethod(
  636. '_clear',
  637. smalltalk.method({
  638. selector: 'clear',
  639. category: 'actions',
  640. fn: function (){
  641. var self=this;
  642. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]);
  643. return self;},
  644. source: unescape('clear%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27'),
  645. messageSends: ["val:", "asJQuery"],
  646. referencedClasses: []
  647. }),
  648. smalltalk.Transcript);
  649. smalltalk.addMethod(
  650. '_renderBoxOn_',
  651. smalltalk.method({
  652. selector: 'renderBoxOn:',
  653. category: 'rendering',
  654. fn: function (html){
  655. var self=this;
  656. self['@textarea']=smalltalk.send(html, "_textarea", []);
  657. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_call_", ["tabby"]);
  658. (function($rec){smalltalk.send($rec, "_class_", ["jt_transcript"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']);
  659. return self;},
  660. 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'),
  661. messageSends: ["textarea", "call:", "asJQuery", "class:", "at:put:"],
  662. referencedClasses: []
  663. }),
  664. smalltalk.Transcript);
  665. smalltalk.addMethod(
  666. '_renderButtonsOn_',
  667. smalltalk.method({
  668. selector: 'renderButtonsOn:',
  669. category: 'rendering',
  670. fn: function (html){
  671. var self=this;
  672. (function($rec){smalltalk.send($rec, "_with_", ["Clear transcript"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clear", []);})]);})(smalltalk.send(html, "_button", []));
  673. return self;},
  674. 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'),
  675. messageSends: ["with:", "onClick:", "clear", "button"],
  676. referencedClasses: []
  677. }),
  678. smalltalk.Transcript);
  679. smalltalk.Transcript.klass.iVarNames = ['current'];
  680. smalltalk.addMethod(
  681. '_open',
  682. smalltalk.method({
  683. selector: 'open',
  684. category: 'instance creation',
  685. fn: function (){
  686. var self=this;
  687. smalltalk.send(smalltalk.send(self, "_current", []), "_open", []);
  688. return self;},
  689. source: unescape('open%0A%20%20%20%20self%20current%20open'),
  690. messageSends: ["open", "current"],
  691. referencedClasses: []
  692. }),
  693. smalltalk.Transcript.klass);
  694. smalltalk.addMethod(
  695. '_new',
  696. smalltalk.method({
  697. selector: 'new',
  698. category: 'instance creation',
  699. fn: function (){
  700. var self=this;
  701. smalltalk.send(self, "_shouldNotImplement", []);
  702. return self;},
  703. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  704. messageSends: ["shouldNotImplement"],
  705. referencedClasses: []
  706. }),
  707. smalltalk.Transcript.klass);
  708. smalltalk.addMethod(
  709. '_current',
  710. smalltalk.method({
  711. selector: 'current',
  712. category: 'instance creation',
  713. fn: function (){
  714. var self=this;
  715. return smalltalk.send(self['@current'], "_ifNil_", [(function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.TabWidget.klass);})]);
  716. return self;},
  717. source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'),
  718. messageSends: ["ifNil:", "new"],
  719. referencedClasses: []
  720. }),
  721. smalltalk.Transcript.klass);
  722. smalltalk.addMethod(
  723. '_show_',
  724. smalltalk.method({
  725. selector: 'show:',
  726. category: 'printing',
  727. fn: function (anObject){
  728. var self=this;
  729. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  730. return self;},
  731. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
  732. messageSends: ["show:", "current"],
  733. referencedClasses: []
  734. }),
  735. smalltalk.Transcript.klass);
  736. smalltalk.addMethod(
  737. '_cr',
  738. smalltalk.method({
  739. selector: 'cr',
  740. category: 'printing',
  741. fn: function (){
  742. var self=this;
  743. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send(smalltalk.String, "_cr", [])]);
  744. return self;},
  745. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
  746. messageSends: ["show:", "current", "cr"],
  747. referencedClasses: [smalltalk.String]
  748. }),
  749. smalltalk.Transcript.klass);
  750. smalltalk.addMethod(
  751. '_clear',
  752. smalltalk.method({
  753. selector: 'clear',
  754. category: 'printing',
  755. fn: function (){
  756. var self=this;
  757. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  758. return self;},
  759. source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
  760. messageSends: ["clear", "current"],
  761. referencedClasses: []
  762. }),
  763. smalltalk.Transcript.klass);
  764. smalltalk.addClass('Browser', smalltalk.TabWidget, ['selectedCategory', 'selectedClass', 'selectedProtocol', 'selectedMethod', 'commitButton', 'categoriesList', 'classesList', 'protocolsList', 'methodsList', 'sourceArea', 'tabsList', 'selectedTab', 'saveButton', 'classButtons', 'methodButtons', 'unsavedChanges', 'input'], 'IDE');
  765. smalltalk.addMethod(
  766. '_label',
  767. smalltalk.method({
  768. selector: 'label',
  769. category: 'accessing',
  770. fn: function (){
  771. var self=this;
  772. return smalltalk.send(self['@selectedClass'], "_ifNil_ifNotNil_", [(function(){return unescape("Browser%20%28nil%29");}), (function(){return smalltalk.send(self['@selectedClass'], "_name", []);})]);
  773. return self;},
  774. 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'),
  775. messageSends: ["ifNil:ifNotNil:", "name"],
  776. referencedClasses: []
  777. }),
  778. smalltalk.Browser);
  779. smalltalk.addMethod(
  780. '_categories',
  781. smalltalk.method({
  782. selector: 'categories',
  783. category: 'accessing',
  784. fn: function (){
  785. var self=this;
  786. var categories=nil;
  787. categories=smalltalk.send(smalltalk.Array, "_new", []);
  788. 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", [])]);})]);})]);
  789. return smalltalk.send(categories, "_sort", []);
  790. return self;},
  791. 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'),
  792. messageSends: ["new", "do:", "classes", "current", "ifFalse:", "includes:", "category", "add:", "sort"],
  793. referencedClasses: [smalltalk.Array,smalltalk.Smalltalk]
  794. }),
  795. smalltalk.Browser);
  796. smalltalk.addMethod(
  797. '_classes',
  798. smalltalk.method({
  799. selector: 'classes',
  800. category: 'accessing',
  801. fn: function (){
  802. var self=this;
  803. 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", [])]);})]);
  804. return self;},
  805. 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'),
  806. messageSends: ["sort:", "select:", "classes", "current", unescape("%3D"), "category", unescape("%3E"), "name"],
  807. referencedClasses: [smalltalk.Smalltalk]
  808. }),
  809. smalltalk.Browser);
  810. smalltalk.addMethod(
  811. '_protocols',
  812. smalltalk.method({
  813. selector: 'protocols',
  814. category: 'accessing',
  815. fn: function (){
  816. var self=this;
  817. try{var klass=nil;
  818. 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", [])}})})();})]);
  819. (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(smalltalk.Array, "_new", [])}})})();
  820. return self;
  821. } catch(e) {if(e.name === 'stReturn' && e.selector === '_protocols'){return e.fn()} throw(e)}},
  822. 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'),
  823. messageSends: ["ifNotNil:", "ifTrue:", unescape("%3D"), "ifTrue:ifFalse:", "class", "isEmpty", "methodDictionary", "with:", "protocols", "new"],
  824. referencedClasses: [smalltalk.Array]
  825. }),
  826. smalltalk.Browser);
  827. smalltalk.addMethod(
  828. '_methods',
  829. smalltalk.method({
  830. selector: 'methods',
  831. category: 'accessing',
  832. fn: function (){
  833. var self=this;
  834. try{var klass=nil;
  835. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})]);
  836. 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", []);})]);})]);
  837. (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", [])]);})])}})})();
  838. return self;
  839. } catch(e) {if(e.name === 'stReturn' && e.selector === '_methods'){return e.fn()} throw(e)}},
  840. 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'),
  841. messageSends: ["ifTrue:", unescape("%3D"), "ifNotNil:", "ifTrue:ifFalse:", "class", "sort:", "ifNil:ifNotNil:", "values", "methodDictionary", "select:", "category", unescape("%3E"), "selector"],
  842. referencedClasses: []
  843. }),
  844. smalltalk.Browser);
  845. smalltalk.addMethod(
  846. '_source',
  847. smalltalk.method({
  848. selector: 'source',
  849. category: 'accessing',
  850. fn: function (){
  851. var self=this;
  852. 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", []);})])}})})();})]);
  853. (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return smalltalk.send(self['@selectedClass'], "_ifNil_ifNotNil_", [(function(){return "";}), (function(){return smalltalk.send(self, "_classCommentSource", []);})])}})})();
  854. return self;
  855. } catch(e) {if(e.name === 'stReturn' && e.selector === '_source'){return e.fn()} throw(e)}},
  856. 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'),
  857. messageSends: ["ifFalse:", unescape("%3D"), "ifFalse:ifTrue:", "or:", "notNil", "declarationSource", "methodSource", "ifNil:ifNotNil:", "classCommentSource"],
  858. referencedClasses: []
  859. }),
  860. smalltalk.Browser);
  861. smalltalk.addMethod(
  862. '_methodSource',
  863. smalltalk.method({
  864. selector: 'methodSource',
  865. category: 'accessing',
  866. fn: function (){
  867. var self=this;
  868. return smalltalk.send(self['@selectedMethod'], "_ifNil_ifNotNil_", [(function(){return smalltalk.send(self, "_dummyMethodSource", []);}), (function(){return smalltalk.send(self['@selectedMethod'], "_source", []);})]);
  869. return self;},
  870. source: unescape('methodSource%0A%20%20%20%20%5EselectedMethod%0A%09ifNil%3A%20%5Bself%20dummyMethodSource%5D%0A%09ifNotNil%3A%20%5BselectedMethod%20source%5D'),
  871. messageSends: ["ifNil:ifNotNil:", "dummyMethodSource", "source"],
  872. referencedClasses: []
  873. }),
  874. smalltalk.Browser);
  875. smalltalk.addMethod(
  876. '_dummyMethodSource',
  877. smalltalk.method({
  878. selector: 'dummyMethodSource',
  879. category: 'accessing',
  880. fn: function (){
  881. var self=this;
  882. return unescape("messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements");
  883. return self;},
  884. 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'),
  885. messageSends: [],
  886. referencedClasses: []
  887. }),
  888. smalltalk.Browser);
  889. smalltalk.addMethod(
  890. '_declarationSource',
  891. smalltalk.method({
  892. selector: 'declarationSource',
  893. category: 'accessing',
  894. fn: function (){
  895. var self=this;
  896. return smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["instance"]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_classDeclarationSource", []);}), (function(){return smalltalk.send(self, "_metaclassDeclarationSource", []);})]);
  897. return self;},
  898. 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'),
  899. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "classDeclarationSource", "metaclassDeclarationSource"],
  900. referencedClasses: []
  901. }),
  902. smalltalk.Browser);
  903. smalltalk.addMethod(
  904. '_classDeclarationSource',
  905. smalltalk.method({
  906. selector: 'classDeclarationSource',
  907. category: 'accessing',
  908. fn: function (){
  909. var self=this;
  910. var stream=nil;
  911. stream=smalltalk.send("", "_writeStream", []);
  912. 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);})]);
  913. return smalltalk.send(stream, "_contents", []);
  914. return self;},
  915. 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'),
  916. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "superclass", "name", unescape("%2C"), "lf", "tab", "do:separatedBy:", "instanceVariableNames", "category", "contents"],
  917. referencedClasses: [smalltalk.String]
  918. }),
  919. smalltalk.Browser);
  920. smalltalk.addMethod(
  921. '_metaclassDeclarationSource',
  922. smalltalk.method({
  923. selector: 'metaclassDeclarationSource',
  924. category: 'accessing',
  925. fn: function (){
  926. var self=this;
  927. var stream=nil;
  928. stream=smalltalk.send("", "_writeStream", []);
  929. 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")]);})]);
  930. return smalltalk.send(stream, "_contents", []);
  931. return self;},
  932. 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'),
  933. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "do:separatedBy:", "instanceVariableNames", "class", "contents"],
  934. referencedClasses: []
  935. }),
  936. smalltalk.Browser);
  937. smalltalk.addMethod(
  938. '_classCommentSource',
  939. smalltalk.method({
  940. selector: 'classCommentSource',
  941. category: 'accessing',
  942. fn: function (){
  943. var self=this;
  944. return smalltalk.send(self['@selectedClass'], "_comment", []);
  945. return self;},
  946. source: unescape('classCommentSource%0A%20%20%20%20%5EselectedClass%20comment'),
  947. messageSends: ["comment"],
  948. referencedClasses: []
  949. }),
  950. smalltalk.Browser);
  951. smalltalk.addMethod(
  952. '_selectedClass',
  953. smalltalk.method({
  954. selector: 'selectedClass',
  955. category: 'accessing',
  956. fn: function (){
  957. var self=this;
  958. return self['@selectedClass'];
  959. return self;},
  960. source: unescape('selectedClass%0A%09%5EselectedClass'),
  961. messageSends: [],
  962. referencedClasses: []
  963. }),
  964. smalltalk.Browser);
  965. smalltalk.addMethod(
  966. '_disableSaveButton',
  967. smalltalk.method({
  968. selector: 'disableSaveButton',
  969. category: 'actions',
  970. fn: function (){
  971. var self=this;
  972. smalltalk.send(self['@saveButton'], "_ifNotNil_", [(function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})]);
  973. self['@unsavedChanges']=false;
  974. return self;},
  975. 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'),
  976. messageSends: ["ifNotNil:", "at:put:"],
  977. referencedClasses: []
  978. }),
  979. smalltalk.Browser);
  980. smalltalk.addMethod(
  981. '_hideClassButtons',
  982. smalltalk.method({
  983. selector: 'hideClassButtons',
  984. category: 'actions',
  985. fn: function (){
  986. var self=this;
  987. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_hide", []);
  988. return self;},
  989. source: unescape('hideClassButtons%0A%20%20%20%20classButtons%20asJQuery%20hide'),
  990. messageSends: ["hide", "asJQuery"],
  991. referencedClasses: []
  992. }),
  993. smalltalk.Browser);
  994. smalltalk.addMethod(
  995. '_showClassButtons',
  996. smalltalk.method({
  997. selector: 'showClassButtons',
  998. category: 'actions',
  999. fn: function (){
  1000. var self=this;
  1001. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_show", []);
  1002. return self;},
  1003. source: unescape('showClassButtons%0A%20%20%20%20classButtons%20asJQuery%20show'),
  1004. messageSends: ["show", "asJQuery"],
  1005. referencedClasses: []
  1006. }),
  1007. smalltalk.Browser);
  1008. smalltalk.addMethod(
  1009. '_hideMethodButtons',
  1010. smalltalk.method({
  1011. selector: 'hideMethodButtons',
  1012. category: 'actions',
  1013. fn: function (){
  1014. var self=this;
  1015. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_hide", []);
  1016. return self;},
  1017. source: unescape('hideMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20hide'),
  1018. messageSends: ["hide", "asJQuery"],
  1019. referencedClasses: []
  1020. }),
  1021. smalltalk.Browser);
  1022. smalltalk.addMethod(
  1023. '_showMethodButtons',
  1024. smalltalk.method({
  1025. selector: 'showMethodButtons',
  1026. category: 'actions',
  1027. fn: function (){
  1028. var self=this;
  1029. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_show", []);
  1030. return self;},
  1031. source: unescape('showMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20show'),
  1032. messageSends: ["show", "asJQuery"],
  1033. referencedClasses: []
  1034. }),
  1035. smalltalk.Browser);
  1036. smalltalk.addMethod(
  1037. '_compile',
  1038. smalltalk.method({
  1039. selector: 'compile',
  1040. category: 'actions',
  1041. fn: function (){
  1042. var self=this;
  1043. smalltalk.send(self, "_disableSaveButton", []);
  1044. smalltalk.send(smalltalk.send(self['@selectedTab'], "__eq", ["comment"]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_ifNotNil_", [(function(){return smalltalk.send(self, "_compileClassComment", []);})]);}), (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, "_compileDefinition", []);}), (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})]);})]);
  1045. return self;},
  1046. source: unescape('compile%0A%20%20%20%20self%20disableSaveButton.%0A%20%20%20%20selectedTab%20%3D%20%23comment%0A%09ifTrue%3A%20%5B%0A%09%09selectedClass%20ifNotNil%3A%20%5B%0A%09%20%20%20%20%09%09self%20compileClassComment%5D%5D%0A%09ifFalse%3A%20%5B%20%0A%20%20%09%09%20%20%28selectedProtocol%20notNil%20or%3A%20%5BselectedMethod%20notNil%5D%29%0A%09%09%09ifFalse%3A%20%5Bself%20compileDefinition%5D%0A%09%09%09ifTrue%3A%20%5Bself%20compileMethodDefinition%5D%5D.'),
  1047. messageSends: ["disableSaveButton", "ifTrue:ifFalse:", unescape("%3D"), "ifNotNil:", "compileClassComment", "ifFalse:ifTrue:", "or:", "notNil", "compileDefinition", "compileMethodDefinition"],
  1048. referencedClasses: []
  1049. }),
  1050. smalltalk.Browser);
  1051. smalltalk.addMethod(
  1052. '_compileClassComment',
  1053. smalltalk.method({
  1054. selector: 'compileClassComment',
  1055. category: 'actions',
  1056. fn: function (){
  1057. var self=this;
  1058. smalltalk.send(self['@selectedClass'], "_comment_", [smalltalk.send(self['@sourceArea'], "_val", [])]);
  1059. return self;},
  1060. source: unescape('compileClassComment%0A%20%20%20%20selectedClass%20comment%3A%20sourceArea%20val'),
  1061. messageSends: ["comment:", "val"],
  1062. referencedClasses: []
  1063. }),
  1064. smalltalk.Browser);
  1065. smalltalk.addMethod(
  1066. '_compileMethodDefinition',
  1067. smalltalk.method({
  1068. selector: 'compileMethodDefinition',
  1069. category: 'actions',
  1070. fn: function (){
  1071. var self=this;
  1072. 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", [])]);})]);
  1073. return self;},
  1074. 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'),
  1075. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "compileMethodDefinitionFor:", "class"],
  1076. referencedClasses: []
  1077. }),
  1078. smalltalk.Browser);
  1079. smalltalk.addMethod(
  1080. '_compileMethodDefinitionFor_',
  1081. smalltalk.method({
  1082. selector: 'compileMethodDefinitionFor:',
  1083. category: 'actions',
  1084. fn: function (aClass){
  1085. var self=this;
  1086. try{var compiler=nil;
  1087. var method=nil;
  1088. var source=nil;
  1089. var node=nil;
  1090. source=smalltalk.send(self['@sourceArea'], "_val", []);
  1091. smalltalk.send(self['@selectedProtocol'], "_ifNil_", [(function(){return self['@selectedProtocol']=smalltalk.send(self['@selectedMethod'], "_category", []);})]);
  1092. compiler=smalltalk.send(smalltalk.Compiler, "_new", []);
  1093. node=smalltalk.send(compiler, "_parse_", [source]);
  1094. 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", [])])])}})})();})]);
  1095. smalltalk.send(compiler, "_currentClass_", [aClass]);
  1096. method=smalltalk.send(compiler, "_eval_", [smalltalk.send(compiler, "_compileNode_", [node])]);
  1097. smalltalk.send(method, "_category_", [self['@selectedProtocol']]);
  1098. 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])}})})();})]);})]);
  1099. smalltalk.send(aClass, "_addCompiledMethod_", [method]);
  1100. smalltalk.send(compiler, "_setupClass_", [aClass]);
  1101. smalltalk.send(self, "_updateMethodsList", []);
  1102. smalltalk.send(self, "_selectMethod_", [method]);
  1103. return self;
  1104. } catch(e) {if(e.name === 'stReturn' && e.selector === '_compileMethodDefinitionFor_'){return e.fn()} throw(e)}},
  1105. 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%20sourceArea%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%20aClass.%0A%20%20%20%20method%20%3A%3D%20compiler%20eval%3A%20%28compiler%20compileNode%3A%20node%29.%0A%20%20%20%20method%20category%3A%20selectedProtocol.%0A%20%20%20%20compiler%20unknownVariables%20do%3A%20%5B%3Aeach%20%7C%0A%09%28self%20confirm%3A%20%27Declare%20%27%27%27%2C%20each%2C%20%27%27%27%20as%20instance%20variable%3F%27%29%20ifTrue%3A%20%5B%0A%09%09self%20addInstanceVariableNamed%3A%20each%20toClass%3A%20aClass.%0A%09%09%5Eself%20compileMethodDefinitionFor%3A%20aClass%5D%5D.%0A%20%20%20%20aClass%20addCompiledMethod%3A%20method.%0A%20%20%20%20compiler%20setupClass%3A%20aClass.%0A%20%20%20%20self%20updateMethodsList.%0A%20%20%20%20self%20selectMethod%3A%20method'),
  1106. messageSends: ["val", "ifNil:", "category", "new", "parse:", "ifTrue:", "isParseFailure", "alert:", unescape("%2C"), "reason", "asString", "position", "currentClass:", "eval:", "compileNode:", "category:", "do:", "unknownVariables", "confirm:", "addInstanceVariableNamed:toClass:", "compileMethodDefinitionFor:", "addCompiledMethod:", "setupClass:", "updateMethodsList", "selectMethod:"],
  1107. referencedClasses: [smalltalk.Compiler]
  1108. }),
  1109. smalltalk.Browser);
  1110. smalltalk.addMethod(
  1111. '_compileDefinition',
  1112. smalltalk.method({
  1113. selector: 'compileDefinition',
  1114. category: 'actions',
  1115. fn: function (){
  1116. var self=this;
  1117. var newClass=nil;
  1118. newClass=smalltalk.send(smalltalk.send(smalltalk.Compiler, "_new", []), "_loadExpression_", [smalltalk.send(self['@sourceArea'], "_val", [])]);
  1119. (function($rec){smalltalk.send($rec, "_resetClassesList", []);smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  1120. return self;},
  1121. source: unescape('compileDefinition%0A%20%20%20%20%7C%20newClass%20%7C%0A%20%20%20%20newClass%20%3A%3D%20Compiler%20new%20loadExpression%3A%20sourceArea%20val.%0A%20%20%20%20self%20%0A%09resetClassesList%3B%0A%09updateCategoriesList%3B%0A%09updateClassesList'),
  1122. messageSends: ["loadExpression:", "new", "val", "resetClassesList", "updateCategoriesList", "updateClassesList"],
  1123. referencedClasses: [smalltalk.Compiler]
  1124. }),
  1125. smalltalk.Browser);
  1126. smalltalk.addMethod(
  1127. '_commitCategory',
  1128. smalltalk.method({
  1129. selector: 'commitCategory',
  1130. category: 'actions',
  1131. fn: function (){
  1132. var self=this;
  1133. smalltalk.send(self['@selectedCategory'], "_ifNotNil_", [(function(){(function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send(smalltalk.Exporter, "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send(smalltalk.Ajax, "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathJs", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".js"])]));(function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send(smalltalk.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", [".deploy.js"])]));return (function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send(smalltalk.ChunkExporter, "_new", []), "_exportCategory_", [self['@selectedCategory']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send(smalltalk.Ajax, "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathSt", []), "__comma", [unescape("/")]), "__comma", [self['@selectedCategory']]), "__comma", [".st"])]));})]);
  1134. return self;},
  1135. 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%20commitPathJs%2C%20%27/%27%2C%20selectedCategory%2C%20%27.deploy.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'),
  1136. messageSends: ["ifNotNil:", "at:put:", "exportCategory:", "new", "alert:", "send", "url:", unescape("%2C"), "commitPathJs", "class", "commitPathSt"],
  1137. referencedClasses: [smalltalk.Exporter,smalltalk.ChunkExporter]
  1138. }),
  1139. smalltalk.Browser);
  1140. smalltalk.addMethod(
  1141. '_cancelChanges',
  1142. smalltalk.method({
  1143. selector: 'cancelChanges',
  1144. category: 'actions',
  1145. fn: function (){
  1146. var self=this;
  1147. return smalltalk.send(self['@unsavedChanges'], "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);}), (function(){return true;})]);
  1148. return self;},
  1149. 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'),
  1150. messageSends: ["ifTrue:ifFalse:", "confirm:"],
  1151. referencedClasses: []
  1152. }),
  1153. smalltalk.Browser);
  1154. smalltalk.addMethod(
  1155. '_removeClass',
  1156. smalltalk.method({
  1157. selector: 'removeClass',
  1158. category: 'actions',
  1159. fn: function (){
  1160. var self=this;
  1161. smalltalk.send(smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send("Do you really want to remove ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])]), "__comma", [unescape("%3F")])]), "_ifTrue_", [(function(){smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_removeClass_", [self['@selectedClass']]);smalltalk.send(self, "_resetClassesList", []);return smalltalk.send(self, "_selectClass_", [nil]);})]);
  1162. return self;},
  1163. 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%20removeClass%3A%20selectedClass.%0A%09%20%20%20%20self%20resetClassesList.%0A%09%20%20%20%20self%20selectClass%3A%20nil%5D'),
  1164. messageSends: ["ifTrue:", "confirm:", unescape("%2C"), "name", "removeClass:", "current", "resetClassesList", "selectClass:"],
  1165. referencedClasses: [smalltalk.Smalltalk]
  1166. }),
  1167. smalltalk.Browser);
  1168. smalltalk.addMethod(
  1169. '_removeMethod',
  1170. smalltalk.method({
  1171. selector: 'removeMethod',
  1172. category: 'actions',
  1173. fn: function (){
  1174. var self=this;
  1175. 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]);})]);})]);
  1176. return self;},
  1177. 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'),
  1178. messageSends: ["ifTrue:", "cancelChanges", "confirm:", unescape("%2C"), "selector", "ifTrue:ifFalse:", unescape("%3D"), "removeCompiledMethod:", "class", "selectMethod:"],
  1179. referencedClasses: []
  1180. }),
  1181. smalltalk.Browser);
  1182. smalltalk.addMethod(
  1183. '_setMethodProtocol_',
  1184. smalltalk.method({
  1185. selector: 'setMethodProtocol:',
  1186. category: 'actions',
  1187. fn: function (aString){
  1188. var self=this;
  1189. 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);})]);})]);
  1190. return self;},
  1191. 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'),
  1192. messageSends: ["ifTrue:", "cancelChanges", "ifFalse:ifTrue:", "includes:", "protocols", "addNewProtocol", "category:", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1193. referencedClasses: []
  1194. }),
  1195. smalltalk.Browser);
  1196. smalltalk.addMethod(
  1197. '_addNewProtocol',
  1198. smalltalk.method({
  1199. selector: 'addNewProtocol',
  1200. category: 'actions',
  1201. fn: function (){
  1202. var self=this;
  1203. var newProtocol=nil;
  1204. newProtocol=smalltalk.send(self, "_prompt_", ["New method protocol"]);
  1205. smalltalk.send(smalltalk.send(newProtocol, "_notEmpty", []), "_ifTrue_", [(function(){smalltalk.send(self['@selectedMethod'], "_category_", [newProtocol]);return smalltalk.send(self, "_setMethodProtocol_", [newProtocol]);})]);
  1206. return self;},
  1207. 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'),
  1208. messageSends: ["prompt:", "ifTrue:", "notEmpty", "category:", "setMethodProtocol:"],
  1209. referencedClasses: []
  1210. }),
  1211. smalltalk.Browser);
  1212. smalltalk.addMethod(
  1213. '_selectCategory_',
  1214. smalltalk.method({
  1215. selector: 'selectCategory:',
  1216. category: 'actions',
  1217. fn: function (aCategory){
  1218. var self=this;
  1219. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedCategory']=aCategory;self['@selectedClass']=self['@selectedProtocol']=self['@selectedMethod']=nil;smalltalk.send(self, "_resetClassesList", []);return (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);smalltalk.send($rec, "_updateMethodsList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  1220. return self;},
  1221. 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%20resetClassesList.%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'),
  1222. messageSends: ["ifTrue:", "cancelChanges", "resetClassesList", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1223. referencedClasses: []
  1224. }),
  1225. smalltalk.Browser);
  1226. smalltalk.addMethod(
  1227. '_selectClass_',
  1228. smalltalk.method({
  1229. selector: 'selectClass:',
  1230. category: 'actions',
  1231. fn: function (aClass){
  1232. var self=this;
  1233. 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);})]);
  1234. return self;},
  1235. 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'),
  1236. messageSends: ["ifTrue:", "cancelChanges", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1237. referencedClasses: []
  1238. }),
  1239. smalltalk.Browser);
  1240. smalltalk.addMethod(
  1241. '_selectProtocol_',
  1242. smalltalk.method({
  1243. selector: 'selectProtocol:',
  1244. category: 'actions',
  1245. fn: function (aString){
  1246. var self=this;
  1247. 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);})]);
  1248. return self;},
  1249. 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'),
  1250. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1251. referencedClasses: []
  1252. }),
  1253. smalltalk.Browser);
  1254. smalltalk.addMethod(
  1255. '_selectMethod_',
  1256. smalltalk.method({
  1257. selector: 'selectMethod:',
  1258. category: 'actions',
  1259. fn: function (aMethod){
  1260. var self=this;
  1261. 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);})]);
  1262. return self;},
  1263. 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'),
  1264. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1265. referencedClasses: []
  1266. }),
  1267. smalltalk.Browser);
  1268. smalltalk.addMethod(
  1269. '_selectTab_',
  1270. smalltalk.method({
  1271. selector: 'selectTab:',
  1272. category: 'actions',
  1273. fn: function (aString){
  1274. var self=this;
  1275. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){self['@selectedTab']=aString;smalltalk.send(self, "_selectProtocol_", [nil]);return smalltalk.send(self, "_updateTabsList", []);})]);
  1276. return self;},
  1277. 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'),
  1278. messageSends: ["ifTrue:", "cancelChanges", "selectProtocol:", "updateTabsList"],
  1279. referencedClasses: []
  1280. }),
  1281. smalltalk.Browser);
  1282. smalltalk.addMethod(
  1283. '_renameClass',
  1284. smalltalk.method({
  1285. selector: 'renameClass',
  1286. category: 'actions',
  1287. fn: function (){
  1288. var self=this;
  1289. var newName=nil;
  1290. newName=smalltalk.send(self, "_prompt_", [smalltalk.send("Rename class ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])])]);
  1291. 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);})]);
  1292. return self;},
  1293. 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'),
  1294. messageSends: ["prompt:", unescape("%2C"), "name", "ifTrue:", "notEmpty", "rename:", "updateClassesList", "updateSourceAndButtons"],
  1295. referencedClasses: []
  1296. }),
  1297. smalltalk.Browser);
  1298. smalltalk.addMethod(
  1299. '_addInstanceVariableNamed_toClass_',
  1300. smalltalk.method({
  1301. selector: 'addInstanceVariableNamed:toClass:',
  1302. category: 'actions',
  1303. fn: function (aString, aClass){
  1304. var self=this;
  1305. 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", []))]);
  1306. return self;},
  1307. 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'),
  1308. messageSends: ["addSubclassOf:named:instanceVariableNames:", "new", "superclass", "name", "add:", "yourself", "copy", "instanceVariableNames"],
  1309. referencedClasses: [smalltalk.ClassBuilder]
  1310. }),
  1311. smalltalk.Browser);
  1312. smalltalk.addMethod(
  1313. '_searchReferencesOf_',
  1314. smalltalk.method({
  1315. selector: 'searchReferencesOf:',
  1316. category: 'actions',
  1317. fn: function (aString){
  1318. var self=this;
  1319. smalltalk.send(smalltalk.ReferencesBrowser, "_search_", [aString]);
  1320. return self;},
  1321. source: unescape('searchReferencesOf%3A%20aString%0A%09ReferencesBrowser%20search%3A%20aString'),
  1322. messageSends: ["search:"],
  1323. referencedClasses: []
  1324. }),
  1325. smalltalk.Browser);
  1326. smalltalk.addMethod(
  1327. '_searchClassReferences',
  1328. smalltalk.method({
  1329. selector: 'searchClassReferences',
  1330. category: 'actions',
  1331. fn: function (){
  1332. var self=this;
  1333. smalltalk.send(smalltalk.ReferencesBrowser, "_search_", [smalltalk.send(self['@selectedClass'], "_name", [])]);
  1334. return self;},
  1335. source: unescape('searchClassReferences%0A%09ReferencesBrowser%20search%3A%20selectedClass%20name'),
  1336. messageSends: ["search:", "name"],
  1337. referencedClasses: []
  1338. }),
  1339. smalltalk.Browser);
  1340. smalltalk.addMethod(
  1341. '_search_',
  1342. smalltalk.method({
  1343. selector: 'search:',
  1344. category: 'actions',
  1345. fn: function (aString){
  1346. var self=this;
  1347. smalltalk.send(smalltalk.send(self, "_cancelChanges", []), "_ifTrue_", [(function(){var searchedClass=nil;
  1348. searchedClass=smalltalk.send(smalltalk.send(smalltalk.Smalltalk, "_current", []), "_at_", [aString]);return smalltalk.send(smalltalk.send(searchedClass, "_isClass", []), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(self, "_class", []), "_openOn_", [searchedClass]);}), (function(){return smalltalk.send(self, "_searchReferencesOf_", [aString]);})]);})]);
  1349. return self;},
  1350. source: unescape('search%3A%20aString%0A%09self%20cancelChanges%20ifTrue%3A%20%5B%7C%20searchedClass%20%7C%0A%09%09searchedClass%20%3A%3D%20Smalltalk%20current%20at%3A%20aString.%0A%09%09searchedClass%20isClass%0A%09%09%09ifTrue%3A%20%5Bself%20class%20openOn%3A%20searchedClass%5D%0A%09%09%09ifFalse%3A%20%5Bself%20searchReferencesOf%3A%20aString%5D%5D'),
  1351. messageSends: ["ifTrue:", "cancelChanges", "at:", "current", "ifTrue:ifFalse:", "isClass", "openOn:", "class", "searchReferencesOf:"],
  1352. referencedClasses: [smalltalk.Smalltalk]
  1353. }),
  1354. smalltalk.Browser);
  1355. smalltalk.addMethod(
  1356. '_initialize',
  1357. smalltalk.method({
  1358. selector: 'initialize',
  1359. category: 'initialization',
  1360. fn: function (){
  1361. var self=this;
  1362. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  1363. self['@selectedTab']="instance";
  1364. self['@unsavedChanges']=false;
  1365. return self;},
  1366. 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'),
  1367. messageSends: ["initialize"],
  1368. referencedClasses: []
  1369. }),
  1370. smalltalk.Browser);
  1371. smalltalk.addMethod(
  1372. '_renderBoxOn_',
  1373. smalltalk.method({
  1374. selector: 'renderBoxOn:',
  1375. category: 'rendering',
  1376. fn: function (html){
  1377. var self=this;
  1378. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);smalltalk.send($rec, "_renderTabsOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1379. return self;},
  1380. 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'),
  1381. messageSends: ["renderTopPanelOn:", "renderTabsOn:", "renderBottomPanelOn:"],
  1382. referencedClasses: []
  1383. }),
  1384. smalltalk.Browser);
  1385. smalltalk.addMethod(
  1386. '_renderTopPanelOn_',
  1387. smalltalk.method({
  1388. selector: 'renderTopPanelOn:',
  1389. category: 'rendering',
  1390. fn: function (html){
  1391. var self=this;
  1392. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){smalltalk.send(self, "_renderInputOn_", [html]);self['@categoriesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser categories"]);self['@commitButton']=(function($rec){smalltalk.send($rec, "_class_", ["jt_commit"]);smalltalk.send($rec, "_title_", ["Commit classes in this category to disk"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_commitCategory", []);})]);return smalltalk.send($rec, "_with_", ["Commit category"]);})(smalltalk.send(html, "_button", []));self['@classesList']=smalltalk.send(smalltalk.ClassesList, "_on_", [self]);smalltalk.send(self['@classesList'], "_renderOn_", [html]);self['@protocolsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser protocols"]);self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser methods"]);(function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
  1393. return self;},
  1394. source: unescape('renderTopPanelOn%3A%20html%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27top%27%3B%20%0A%09with%3A%20%5B%0A%09%20%20%20%20self%20renderInputOn%3A%20html.%0A%09%20%20%20%20categoriesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20categories%27.%0A%09%20%20%20%20commitButton%20%3A%3D%20html%20button%20%0A%09%09class%3A%20%27jt_commit%27%3B%0A%09%09title%3A%20%27Commit%20classes%20in%20this%20category%20to%20disk%27%3B%0A%09%09onClick%3A%20%5Bself%20commitCategory%5D%3B%0A%09%09with%3A%20%27Commit%20category%27.%0A%09%20%20%20%20classesList%20%3A%3D%20ClassesList%20on%3A%20self.%0A%09%20%20%20%20classesList%20renderOn%3A%20html.%0A%09%20%20%20%20protocolsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20protocols%27.%0A%09%20%20%20%20methodsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20methods%27.%0A%09%20%20%20%20self%0A%09%09updateCategoriesList%3B%0A%09%09updateClassesList%3B%0A%09%09updateProtocolsList%3B%0A%09%09updateMethodsList.%0A%09%20%20%20%20html%20div%20class%3A%20%27jt_clear%27%5D'),
  1395. messageSends: ["class:", "with:", "renderInputOn:", "ul", "title:", "onClick:", "commitCategory", "button", "on:", "renderOn:", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "div"],
  1396. referencedClasses: []
  1397. }),
  1398. smalltalk.Browser);
  1399. smalltalk.addMethod(
  1400. '_renderTabsOn_',
  1401. smalltalk.method({
  1402. selector: 'renderTabsOn:',
  1403. category: 'rendering',
  1404. fn: function (html){
  1405. var self=this;
  1406. self['@tabsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_tabs"]);
  1407. smalltalk.send(self, "_updateTabsList", []);
  1408. return self;},
  1409. 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.'),
  1410. messageSends: ["class:", "ul", "updateTabsList"],
  1411. referencedClasses: []
  1412. }),
  1413. smalltalk.Browser);
  1414. smalltalk.addMethod(
  1415. '_renderBottomPanelOn_',
  1416. smalltalk.method({
  1417. selector: 'renderBottomPanelOn:',
  1418. category: 'rendering',
  1419. fn: function (html){
  1420. var self=this;
  1421. (function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@sourceArea']=smalltalk.send(smalltalk.SourceArea, "_new", []);smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);return smalltalk.send(self['@sourceArea'], "_onKeyUp_", [(function(){return smalltalk.send(self, "_updateStatus", []);})]);})]);})(smalltalk.send(html, "_div", []));
  1422. return self;},
  1423. 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%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%09%20%20%20%20sourceArea%20renderOn%3A%20html.%0A%09%20%20%20%20sourceArea%0A%09%09onKeyUp%3A%20%5Bself%20updateStatus%5D%5D'),
  1424. messageSends: ["class:", "with:", "new", "renderOn:", "onKeyUp:", "updateStatus", "div"],
  1425. referencedClasses: [smalltalk.nil]
  1426. }),
  1427. smalltalk.Browser);
  1428. smalltalk.addMethod(
  1429. '_renderButtonsOn_',
  1430. smalltalk.method({
  1431. selector: 'renderButtonsOn:',
  1432. category: 'rendering',
  1433. fn: function (html){
  1434. var self=this;
  1435. self['@saveButton']=smalltalk.send(html, "_button", []);
  1436. (function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_compile", []);})]);})(self['@saveButton']);
  1437. self['@methodButtons']=smalltalk.send(html, "_span", []);
  1438. self['@classButtons']=smalltalk.send(html, "_span", []);
  1439. (function($rec){smalltalk.send($rec, "_class_", ["right"]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["DoIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_doIt", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_with_", ["PrintIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_printIt", []);})]);})(smalltalk.send(html, "_button", []));return (function($rec){smalltalk.send($rec, "_with_", ["InspectIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_inspectit", []);})]);})(smalltalk.send(html, "_button", []));})]);})(smalltalk.send(html, "_div", []));
  1440. smalltalk.send(self, "_updateSourceAndButtons", []);
  1441. return self;},
  1442. 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%20html%20div%20%0A%09class%3A%20%27right%27%3B%0A%09with%3A%20%5B%0A%09%09html%20button%0A%09%09%09with%3A%20%27DoIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20doIt%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27PrintIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20printIt%5D.%0A%09%09html%20button%20with%3A%20%27InspectIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20inspectit%5D%5D.%20%0A%20%20%20%20self%20updateSourceAndButtons'),
  1443. messageSends: ["button", "with:", "onClick:", "compile", "span", "class:", "doIt", "printIt", "inspectit", "div", "updateSourceAndButtons"],
  1444. referencedClasses: []
  1445. }),
  1446. smalltalk.Browser);
  1447. smalltalk.addMethod(
  1448. '_renderInputOn_',
  1449. smalltalk.method({
  1450. selector: 'renderInputOn:',
  1451. category: 'rendering',
  1452. fn: function (html){
  1453. var self=this;
  1454. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  1455. smalltalk.send(self['@input'], "_onKeyPress_", [(function(event){return smalltalk.send(smalltalk.send(smalltalk.send(event, "_keyCode", []), "__eq", [(13)]), "_ifTrue_", [(function(){return smalltalk.send(self, "_search_", [smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val", [])]);})]);})]);
  1456. return self;},
  1457. source: unescape('renderInputOn%3A%20html%20%0A%09input%20%3A%3D%20html%20input%20%0A%09%09class%3A%20%27implementors%27%3B%0A%09%09yourself.%0A%09input%20onKeyPress%3A%20%5B%3Aevent%20%7C%0A%09%09event%20keyCode%20%3D%2013%20ifTrue%3A%20%5B%0A%09%09%09self%20search%3A%20input%20asJQuery%20val%5D%5D'),
  1458. messageSends: ["class:", "yourself", "input", "onKeyPress:", "ifTrue:", unescape("%3D"), "keyCode", "search:", "val", "asJQuery"],
  1459. referencedClasses: []
  1460. }),
  1461. smalltalk.Browser);
  1462. smalltalk.addMethod(
  1463. '_canBeClosed',
  1464. smalltalk.method({
  1465. selector: 'canBeClosed',
  1466. category: 'testing',
  1467. fn: function (){
  1468. var self=this;
  1469. return true;
  1470. return self;},
  1471. source: unescape('canBeClosed%0A%09%5Etrue'),
  1472. messageSends: [],
  1473. referencedClasses: []
  1474. }),
  1475. smalltalk.Browser);
  1476. smalltalk.addMethod(
  1477. '_updateCategoriesList',
  1478. smalltalk.method({
  1479. selector: 'updateCategoriesList',
  1480. category: 'updating',
  1481. fn: function (){
  1482. var self=this;
  1483. smalltalk.send(self['@categoriesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_categories", []), "_do_", [(function(each){var li=nil;
  1484. var label=nil;
  1485. 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);})]);})]);
  1486. return self;},
  1487. 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'),
  1488. messageSends: ["contents:", "do:", "categories", "ifTrue:ifFalse:", "isEmpty", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectCategory:"],
  1489. referencedClasses: []
  1490. }),
  1491. smalltalk.Browser);
  1492. smalltalk.addMethod(
  1493. '_updateClassesList',
  1494. smalltalk.method({
  1495. selector: 'updateClassesList',
  1496. category: 'updating',
  1497. fn: function (){
  1498. var self=this;
  1499. smalltalk.send(smalltalk.send(smalltalk.TabManager, "_current", []), "_update", []);
  1500. smalltalk.send(self['@classesList'], "_updateNodes", []);
  1501. return self;},
  1502. source: unescape('updateClassesList%0A%20%20%20%20TabManager%20current%20update.%0A%20%20%20%20classesList%20updateNodes.%0A%20%20%20%20%22classesList%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%22'),
  1503. messageSends: ["update", "current", "updateNodes"],
  1504. referencedClasses: [smalltalk.TabManager]
  1505. }),
  1506. smalltalk.Browser);
  1507. smalltalk.addMethod(
  1508. '_updateProtocolsList',
  1509. smalltalk.method({
  1510. selector: 'updateProtocolsList',
  1511. category: 'updating',
  1512. fn: function (){
  1513. var self=this;
  1514. smalltalk.send(self['@protocolsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){var li=nil;
  1515. 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);})]);})]);
  1516. return self;},
  1517. 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'),
  1518. messageSends: ["contents:", "do:", "protocols", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectProtocol:"],
  1519. referencedClasses: []
  1520. }),
  1521. smalltalk.Browser);
  1522. smalltalk.addMethod(
  1523. '_updateMethodsList',
  1524. smalltalk.method({
  1525. selector: 'updateMethodsList',
  1526. category: 'updating',
  1527. fn: function (){
  1528. var self=this;
  1529. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_methods", []), "_do_", [(function(each){var li=nil;
  1530. 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);})]);})]);
  1531. return self;},
  1532. 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'),
  1533. messageSends: ["contents:", "do:", "methods", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "selector", "onClick:", "selectMethod:"],
  1534. referencedClasses: []
  1535. }),
  1536. smalltalk.Browser);
  1537. smalltalk.addMethod(
  1538. '_updateTabsList',
  1539. smalltalk.method({
  1540. selector: 'updateTabsList',
  1541. category: 'updating',
  1542. fn: function (){
  1543. var self=this;
  1544. smalltalk.send(self['@tabsList'], "_contents_", [(function(html){var li=nil;
  1545. 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);})]);
  1546. return self;},
  1547. 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'),
  1548. messageSends: ["contents:", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectTab:"],
  1549. referencedClasses: []
  1550. }),
  1551. smalltalk.Browser);
  1552. smalltalk.addMethod(
  1553. '_updateSourceAndButtons',
  1554. smalltalk.method({
  1555. selector: 'updateSourceAndButtons',
  1556. category: 'updating',
  1557. fn: function (){
  1558. var self=this;
  1559. smalltalk.send(self, "_disableSaveButton", []);
  1560. 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", []));})]);
  1561. 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", []));})]);})]);
  1562. 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", []);})]);
  1563. smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(self, "_source", [])]);
  1564. return self;},
  1565. 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%09sourceArea%20val%3A%20self%20source'),
  1566. 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:", "source"],
  1567. referencedClasses: []
  1568. }),
  1569. smalltalk.Browser);
  1570. smalltalk.addMethod(
  1571. '_updateStatus',
  1572. smalltalk.method({
  1573. selector: 'updateStatus',
  1574. category: 'updating',
  1575. fn: function (){
  1576. var self=this;
  1577. smalltalk.send(smalltalk.send(smalltalk.send(self['@sourceArea'], "_val", []), "__eq", [smalltalk.send(self, "_source", [])]), "_ifTrue_ifFalse_", [(function(){smalltalk.send(self['@saveButton'], "_ifNotNil_", [(function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})]);return self['@unsavedChanges']=false;}), (function(){smalltalk.send(self['@saveButton'], "_ifNotNil_", [(function(){return smalltalk.send(self['@saveButton'], "_removeAt_", ["disabled"]);})]);return self['@unsavedChanges']=true;})]);
  1578. return self;},
  1579. source: unescape('updateStatus%0A%09sourceArea%20val%20%3D%20self%20source%0A%09%09ifTrue%3A%20%5B%0A%09%09%09saveButton%20ifNotNil%3A%20%5B%0A%09%09%09%09saveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D.%0A%20%20%20%20%09%09%09unsavedChanges%20%3A%3D%20false%5D%0A%09%09ifFalse%3A%20%5B%0A%09%09%09saveButton%20ifNotNil%3A%20%5B%0A%20%20%20%20%09%09%09%09saveButton%20removeAt%3A%20%27disabled%27%5D.%0A%20%20%20%20%09%09%09unsavedChanges%20%3A%3D%20true%5D'),
  1580. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "val", "source", "ifNotNil:", "at:put:", "removeAt:"],
  1581. referencedClasses: []
  1582. }),
  1583. smalltalk.Browser);
  1584. smalltalk.addMethod(
  1585. '_resetClassesList',
  1586. smalltalk.method({
  1587. selector: 'resetClassesList',
  1588. category: 'updating',
  1589. fn: function (){
  1590. var self=this;
  1591. smalltalk.send(self['@classesList'], "_resetNodes", []);
  1592. return self;},
  1593. source: unescape('resetClassesList%0A%09classesList%20resetNodes'),
  1594. messageSends: ["resetNodes"],
  1595. referencedClasses: []
  1596. }),
  1597. smalltalk.Browser);
  1598. smalltalk.addMethod(
  1599. '_commitPathJs',
  1600. smalltalk.method({
  1601. selector: 'commitPathJs',
  1602. category: 'accessing',
  1603. fn: function (){
  1604. var self=this;
  1605. return "js";
  1606. return self;},
  1607. source: unescape('commitPathJs%0A%09%5E%27js%27'),
  1608. messageSends: [],
  1609. referencedClasses: []
  1610. }),
  1611. smalltalk.Browser.klass);
  1612. smalltalk.addMethod(
  1613. '_commitPathSt',
  1614. smalltalk.method({
  1615. selector: 'commitPathSt',
  1616. category: 'accessing',
  1617. fn: function (){
  1618. var self=this;
  1619. return "st";
  1620. return self;},
  1621. source: unescape('commitPathSt%0A%09%5E%27st%27'),
  1622. messageSends: [],
  1623. referencedClasses: []
  1624. }),
  1625. smalltalk.Browser.klass);
  1626. smalltalk.addMethod(
  1627. '_openOn_',
  1628. smalltalk.method({
  1629. selector: 'openOn:',
  1630. category: 'convenience',
  1631. fn: function (aClass){
  1632. var self=this;
  1633. 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", []));
  1634. return self;},
  1635. 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'),
  1636. messageSends: ["open", "selectCategory:", "category", "selectClass:", "new"],
  1637. referencedClasses: []
  1638. }),
  1639. smalltalk.Browser.klass);
  1640. smalltalk.addMethod(
  1641. '_open',
  1642. smalltalk.method({
  1643. selector: 'open',
  1644. category: 'convenience',
  1645. fn: function (){
  1646. var self=this;
  1647. smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  1648. return self;},
  1649. source: unescape('open%0A%20%20%20%20self%20new%20open'),
  1650. messageSends: ["open", "new"],
  1651. referencedClasses: []
  1652. }),
  1653. smalltalk.Browser.klass);
  1654. smalltalk.addClass('Inspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'workspaceTextarea', 'diveButton'], 'IDE');
  1655. smalltalk.addMethod(
  1656. '_label',
  1657. smalltalk.method({
  1658. selector: 'label',
  1659. category: 'accessing',
  1660. fn: function (){
  1661. var self=this;
  1662. return smalltalk.send(self['@label'], "_ifNil_", [(function(){return unescape("Inspector%20%28nil%29");})]);
  1663. return self;},
  1664. source: unescape('label%0A%09%5Elabel%20ifNil%3A%20%5B%27Inspector%20%28nil%29%27%5D'),
  1665. messageSends: ["ifNil:"],
  1666. referencedClasses: []
  1667. }),
  1668. smalltalk.Inspector);
  1669. smalltalk.addMethod(
  1670. '_variables',
  1671. smalltalk.method({
  1672. selector: 'variables',
  1673. category: 'accessing',
  1674. fn: function (){
  1675. var self=this;
  1676. return self['@variables'];
  1677. return self;},
  1678. source: unescape('variables%0A%09%5Evariables'),
  1679. messageSends: [],
  1680. referencedClasses: []
  1681. }),
  1682. smalltalk.Inspector);
  1683. smalltalk.addMethod(
  1684. '_setVariables_',
  1685. smalltalk.method({
  1686. selector: 'setVariables:',
  1687. category: 'accessing',
  1688. fn: function (aCollection){
  1689. var self=this;
  1690. self['@variables']=aCollection;
  1691. return self;},
  1692. source: unescape('setVariables%3A%20aCollection%0A%09variables%20%3A%3D%20aCollection'),
  1693. messageSends: [],
  1694. referencedClasses: []
  1695. }),
  1696. smalltalk.Inspector);
  1697. smalltalk.addMethod(
  1698. '_setLabel_',
  1699. smalltalk.method({
  1700. selector: 'setLabel:',
  1701. category: 'accessing',
  1702. fn: function (aString){
  1703. var self=this;
  1704. self['@label']=aString;
  1705. return self;},
  1706. source: unescape('setLabel%3A%20aString%0A%09label%20%3A%3D%20aString'),
  1707. messageSends: [],
  1708. referencedClasses: []
  1709. }),
  1710. smalltalk.Inspector);
  1711. smalltalk.addMethod(
  1712. '_selectedVariable',
  1713. smalltalk.method({
  1714. selector: 'selectedVariable',
  1715. category: 'accessing',
  1716. fn: function (){
  1717. var self=this;
  1718. return self['@selectedVariable'];
  1719. return self;},
  1720. source: unescape('selectedVariable%0A%09%5EselectedVariable'),
  1721. messageSends: [],
  1722. referencedClasses: []
  1723. }),
  1724. smalltalk.Inspector);
  1725. smalltalk.addMethod(
  1726. '_selectedVariable_',
  1727. smalltalk.method({
  1728. selector: 'selectedVariable:',
  1729. category: 'accessing',
  1730. fn: function (aString){
  1731. var self=this;
  1732. self['@selectedVariable']=aString;
  1733. return self;},
  1734. source: unescape('selectedVariable%3A%20aString%0A%09selectedVariable%20%3A%3D%20aString'),
  1735. messageSends: [],
  1736. referencedClasses: []
  1737. }),
  1738. smalltalk.Inspector);
  1739. smalltalk.addMethod(
  1740. '_inspect_',
  1741. smalltalk.method({
  1742. selector: 'inspect:',
  1743. category: 'actions',
  1744. fn: function (anObject){
  1745. var self=this;
  1746. self['@object']=anObject;
  1747. self['@variables']=[];
  1748. smalltalk.send(self['@object'], "_inspectOn_", [self]);
  1749. return self;},
  1750. 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'),
  1751. messageSends: ["inspectOn:"],
  1752. referencedClasses: []
  1753. }),
  1754. smalltalk.Inspector);
  1755. smalltalk.addMethod(
  1756. '_dive',
  1757. smalltalk.method({
  1758. selector: 'dive',
  1759. category: 'actions',
  1760. fn: function (){
  1761. var self=this;
  1762. smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_inspect", []);
  1763. return self;},
  1764. source: unescape('dive%0A%09%28self%20variables%20at%3A%20self%20selectedVariable%29%20inspect'),
  1765. messageSends: ["inspect", "at:", "variables", "selectedVariable"],
  1766. referencedClasses: []
  1767. }),
  1768. smalltalk.Inspector);
  1769. smalltalk.addMethod(
  1770. '_refresh',
  1771. smalltalk.method({
  1772. selector: 'refresh',
  1773. category: 'actions',
  1774. fn: function (){
  1775. var self=this;
  1776. (function($rec){smalltalk.send($rec, "_inspect_", [self['@object']]);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
  1777. return self;},
  1778. source: unescape('refresh%0A%09self%20%0A%09%09inspect%3A%20object%3B%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea'),
  1779. messageSends: ["inspect:", "updateVariablesList", "updateValueTextarea"],
  1780. referencedClasses: []
  1781. }),
  1782. smalltalk.Inspector);
  1783. smalltalk.addMethod(
  1784. '_renderBoxOn_',
  1785. smalltalk.method({
  1786. selector: 'renderBoxOn:',
  1787. category: 'rendering',
  1788. fn: function (html){
  1789. var self=this;
  1790. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1791. return self;},
  1792. source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderTopPanelOn%3A%20html%3B%0A%09%09renderBottomPanelOn%3A%20html'),
  1793. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  1794. referencedClasses: []
  1795. }),
  1796. smalltalk.Inspector);
  1797. smalltalk.addMethod(
  1798. '_renderTopPanelOn_',
  1799. smalltalk.method({
  1800. selector: 'renderTopPanelOn:',
  1801. category: 'rendering',
  1802. fn: function (html){
  1803. var self=this;
  1804. (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", []));
  1805. return self;},
  1806. 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'),
  1807. messageSends: ["class:", "with:", "ul", "at:put:", "textarea", "updateVariablesList", "updateValueTextarea", "div"],
  1808. referencedClasses: []
  1809. }),
  1810. smalltalk.Inspector);
  1811. smalltalk.addMethod(
  1812. '_renderBottomPanelOn_',
  1813. smalltalk.method({
  1814. selector: 'renderBottomPanelOn:',
  1815. category: 'rendering',
  1816. fn: function (html){
  1817. var self=this;
  1818. (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", []));
  1819. return self;},
  1820. 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'),
  1821. messageSends: ["class:", "with:", "at:put:", "textarea", "call:", "asJQuery", "div"],
  1822. referencedClasses: []
  1823. }),
  1824. smalltalk.Inspector);
  1825. smalltalk.addMethod(
  1826. '_renderButtonsOn_',
  1827. smalltalk.method({
  1828. selector: 'renderButtonsOn:',
  1829. category: 'rendering',
  1830. fn: function (html){
  1831. var self=this;
  1832. (function($rec){smalltalk.send($rec, "_with_", ["Refresh"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_refresh", []);})]);})(smalltalk.send(html, "_button", []));
  1833. self['@diveButton']=(function($rec){smalltalk.send($rec, "_with_", ["Dive"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_dive", []);})]);})(smalltalk.send(html, "_button", []));
  1834. smalltalk.send(self, "_updateButtons", []);
  1835. return self;},
  1836. 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'),
  1837. messageSends: ["with:", "onClick:", "refresh", "button", "dive", "updateButtons"],
  1838. referencedClasses: []
  1839. }),
  1840. smalltalk.Inspector);
  1841. smalltalk.addMethod(
  1842. '_canBeClosed',
  1843. smalltalk.method({
  1844. selector: 'canBeClosed',
  1845. category: 'testing',
  1846. fn: function (){
  1847. var self=this;
  1848. return true;
  1849. return self;},
  1850. source: unescape('canBeClosed%0A%09%5Etrue'),
  1851. messageSends: [],
  1852. referencedClasses: []
  1853. }),
  1854. smalltalk.Inspector);
  1855. smalltalk.addMethod(
  1856. '_updateVariablesList',
  1857. smalltalk.method({
  1858. selector: 'updateVariablesList',
  1859. category: 'updating',
  1860. fn: function (){
  1861. var self=this;
  1862. smalltalk.send(self['@variablesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_keys", []), "_do_", [(function(each){var li=nil;
  1863. 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"]);})]);})]);})]);
  1864. return self;},
  1865. 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'),
  1866. messageSends: ["contents:", "do:", "keys", "variables", "li", "with:", "onClick:", "selectVariable:", "ifTrue:", unescape("%3D"), "selectedVariable", "class:"],
  1867. referencedClasses: []
  1868. }),
  1869. smalltalk.Inspector);
  1870. smalltalk.addMethod(
  1871. '_selectVariable_',
  1872. smalltalk.method({
  1873. selector: 'selectVariable:',
  1874. category: 'updating',
  1875. fn: function (aString){
  1876. var self=this;
  1877. smalltalk.send(self, "_selectedVariable_", [aString]);
  1878. (function($rec){smalltalk.send($rec, "_updateVariablesList", []);smalltalk.send($rec, "_updateValueTextarea", []);return smalltalk.send($rec, "_updateButtons", []);})(self);
  1879. return self;},
  1880. source: unescape('selectVariable%3A%20aString%0A%09self%20selectedVariable%3A%20aString.%0A%09self%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea%3B%0A%09%09updateButtons'),
  1881. messageSends: ["selectedVariable:", "updateVariablesList", "updateValueTextarea", "updateButtons"],
  1882. referencedClasses: []
  1883. }),
  1884. smalltalk.Inspector);
  1885. smalltalk.addMethod(
  1886. '_updateValueTextarea',
  1887. smalltalk.method({
  1888. selector: 'updateValueTextarea',
  1889. category: 'updating',
  1890. fn: function (){
  1891. var self=this;
  1892. 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", []);})])]);
  1893. return self;},
  1894. 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'),
  1895. messageSends: ["val:", "asJQuery", "ifTrue:ifFalse:", "isNil", "selectedVariable", "printString", "at:", "variables"],
  1896. referencedClasses: []
  1897. }),
  1898. smalltalk.Inspector);
  1899. smalltalk.addMethod(
  1900. '_updateButtons',
  1901. smalltalk.method({
  1902. selector: 'updateButtons',
  1903. category: 'updating',
  1904. fn: function (){
  1905. var self=this;
  1906. 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"]);})]);
  1907. return self;},
  1908. 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'),
  1909. messageSends: ["ifFalse:ifTrue:", "and:", "notNil", "selectedVariable", "at:", "variables", "at:put:", "removeAt:"],
  1910. referencedClasses: []
  1911. }),
  1912. smalltalk.Inspector);
  1913. smalltalk.addMethod(
  1914. '_on_',
  1915. smalltalk.method({
  1916. selector: 'on:',
  1917. category: 'instance creation',
  1918. fn: function (anObject){
  1919. var self=this;
  1920. return (function($rec){smalltalk.send($rec, "_inspect_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  1921. return self;},
  1922. source: unescape('on%3A%20anObject%0A%09%5Eself%20new%0A%09%09inspect%3A%20anObject%3B%0A%09%09yourself'),
  1923. messageSends: ["inspect:", "yourself", "new"],
  1924. referencedClasses: []
  1925. }),
  1926. smalltalk.Inspector.klass);
  1927. smalltalk.addClass('ReferencesBrowser', smalltalk.TabWidget, ['implementors', 'senders', 'implementorsList', 'input', 'timer', 'selector', 'sendersList', 'referencedClasses', 'referencedClassesList'], 'IDE');
  1928. smalltalk.addMethod(
  1929. '_implementors',
  1930. smalltalk.method({
  1931. selector: 'implementors',
  1932. category: 'accessing',
  1933. fn: function (){
  1934. var self=this;
  1935. return smalltalk.send(self['@implementors'], "_ifNil_", [(function(){return self['@implementors']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  1936. return self;},
  1937. source: unescape('implementors%0A%09%5Eimplementors%20ifNil%3A%20%5Bimplementors%20%3A%3D%20Array%20new%5D'),
  1938. messageSends: ["ifNil:", "new"],
  1939. referencedClasses: [smalltalk.Array]
  1940. }),
  1941. smalltalk.ReferencesBrowser);
  1942. smalltalk.addMethod(
  1943. '_label',
  1944. smalltalk.method({
  1945. selector: 'label',
  1946. category: 'accessing',
  1947. fn: function (){
  1948. var self=this;
  1949. return unescape("%5BReferencesBrowser%5D");
  1950. return self;},
  1951. source: unescape('label%0A%09%5E%27%5BReferencesBrowser%5D%27'),
  1952. messageSends: [],
  1953. referencedClasses: []
  1954. }),
  1955. smalltalk.ReferencesBrowser);
  1956. smalltalk.addMethod(
  1957. '_selector',
  1958. smalltalk.method({
  1959. selector: 'selector',
  1960. category: 'accessing',
  1961. fn: function (){
  1962. var self=this;
  1963. return self['@selector'];
  1964. return self;},
  1965. source: unescape('selector%0A%09%5Eselector'),
  1966. messageSends: [],
  1967. referencedClasses: []
  1968. }),
  1969. smalltalk.ReferencesBrowser);
  1970. smalltalk.addMethod(
  1971. '_senders',
  1972. smalltalk.method({
  1973. selector: 'senders',
  1974. category: 'accessing',
  1975. fn: function (){
  1976. var self=this;
  1977. return smalltalk.send(self['@senders'], "_ifNil_", [(function(){return self['@senders']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  1978. return self;},
  1979. source: unescape('senders%0A%09%5Esenders%20ifNil%3A%20%5Bsenders%20%3A%3D%20Array%20new%5D'),
  1980. messageSends: ["ifNil:", "new"],
  1981. referencedClasses: [smalltalk.Array]
  1982. }),
  1983. smalltalk.ReferencesBrowser);
  1984. smalltalk.addMethod(
  1985. '_classesAndMetaclasses',
  1986. smalltalk.method({
  1987. selector: 'classesAndMetaclasses',
  1988. category: 'accessing',
  1989. fn: function (){
  1990. var self=this;
  1991. 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", []);})])]);
  1992. return self;},
  1993. source: unescape('classesAndMetaclasses%0A%09%5ESmalltalk%20current%20classes%2C%20%28Smalltalk%20current%20classes%20collect%3A%20%5B%3Aeach%20%7C%20each%20class%5D%29'),
  1994. messageSends: [unescape("%2C"), "classes", "current", "collect:", "class"],
  1995. referencedClasses: [smalltalk.Smalltalk]
  1996. }),
  1997. smalltalk.ReferencesBrowser);
  1998. smalltalk.addMethod(
  1999. '_referencedClasses',
  2000. smalltalk.method({
  2001. selector: 'referencedClasses',
  2002. category: 'accessing',
  2003. fn: function (){
  2004. var self=this;
  2005. return smalltalk.send(self['@referencedClasses'], "_ifNil_", [(function(){return self['@referencedClasses']=smalltalk.send(smalltalk.Array, "_new", []);})]);
  2006. return self;},
  2007. source: unescape('referencedClasses%0A%09%5EreferencedClasses%20ifNil%3A%20%5BreferencedClasses%20%3A%3D%20Array%20new%5D'),
  2008. messageSends: ["ifNil:", "new"],
  2009. referencedClasses: [smalltalk.Array]
  2010. }),
  2011. smalltalk.ReferencesBrowser);
  2012. smalltalk.addMethod(
  2013. '_openBrowserOn_',
  2014. smalltalk.method({
  2015. selector: 'openBrowserOn:',
  2016. category: 'actions',
  2017. fn: function (aMethod){
  2018. var self=this;
  2019. var browser=nil;
  2020. 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", []);})])]);
  2021. smalltalk.send(smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_isMetaclass", []), "_ifTrue_", [(function(){return smalltalk.send(browser, "_selectTab_", ["class"]);})]);
  2022. (function($rec){smalltalk.send($rec, "_selectProtocol_", [smalltalk.send(aMethod, "_category", [])]);return smalltalk.send($rec, "_selectMethod_", [aMethod]);})(browser);
  2023. return self;},
  2024. 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'),
  2025. messageSends: ["openOn:", "ifTrue:ifFalse:", "isMetaclass", "class", "instanceClass", "methodClass", "ifTrue:", "selectTab:", "selectProtocol:", "category", "selectMethod:"],
  2026. referencedClasses: [smalltalk.Browser]
  2027. }),
  2028. smalltalk.ReferencesBrowser);
  2029. smalltalk.addMethod(
  2030. '_searchReferencesFor_',
  2031. smalltalk.method({
  2032. selector: 'searchReferencesFor:',
  2033. category: 'actions',
  2034. fn: function (aString){
  2035. var self=this;
  2036. self['@selector']=aString;
  2037. self['@implementors']=smalltalk.send(smalltalk.Array, "_new", []);
  2038. self['@senders']=smalltalk.send(smalltalk.Array, "_new", []);
  2039. self['@referencedClasses']=smalltalk.send(smalltalk.Array, "_new", []);
  2040. 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']]);})]);
  2041. return self;},
  2042. 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'),
  2043. messageSends: ["new", "ifFalse:ifTrue:", "match:", "searchSelectorReferencesFor:", "searchReferencedClassesFor:"],
  2044. referencedClasses: [smalltalk.Array]
  2045. }),
  2046. smalltalk.ReferencesBrowser);
  2047. smalltalk.addMethod(
  2048. '_search_',
  2049. smalltalk.method({
  2050. selector: 'search:',
  2051. category: 'actions',
  2052. fn: function (aString){
  2053. var self=this;
  2054. (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);smalltalk.send($rec, "_updateImplementorsList", []);smalltalk.send($rec, "_updateSendersList", []);return smalltalk.send($rec, "_updateReferencedClassesList", []);})(self);
  2055. return self;},
  2056. 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'),
  2057. messageSends: ["searchReferencesFor:", "updateImplementorsList", "updateSendersList", "updateReferencedClassesList"],
  2058. referencedClasses: []
  2059. }),
  2060. smalltalk.ReferencesBrowser);
  2061. smalltalk.addMethod(
  2062. '_searchReferencedClassesFor_',
  2063. smalltalk.method({
  2064. selector: 'searchReferencedClassesFor:',
  2065. category: 'actions',
  2066. fn: function (aString){
  2067. var self=this;
  2068. 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]);})]);})]);})]);
  2069. return self;},
  2070. 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'),
  2071. messageSends: ["do:", "classesAndMetaclasses", "values", "methodDictionary", "ifTrue:", "includes:", "collect:", "select:", "referencedClasses", "notNil", "name", "add:"],
  2072. referencedClasses: []
  2073. }),
  2074. smalltalk.ReferencesBrowser);
  2075. smalltalk.addMethod(
  2076. '_searchSelectorReferencesFor_',
  2077. smalltalk.method({
  2078. selector: 'searchSelectorReferencesFor:',
  2079. category: 'actions',
  2080. fn: function (aString){
  2081. var self=this;
  2082. 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]);})]);})]);})]);
  2083. return self;},
  2084. 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'),
  2085. messageSends: ["do:", "classesAndMetaclasses", "keysAndValuesDo:", "methodDictionary", "ifTrue:", unescape("%3D"), "add:", "implementors", "includes:", "messageSends", "senders"],
  2086. referencedClasses: []
  2087. }),
  2088. smalltalk.ReferencesBrowser);
  2089. smalltalk.addMethod(
  2090. '_initialize',
  2091. smalltalk.method({
  2092. selector: 'initialize',
  2093. category: 'initialization',
  2094. fn: function (){
  2095. var self=this;
  2096. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  2097. self['@selector']="";
  2098. return self;},
  2099. source: unescape('initialize%0A%09super%20initialize.%0A%09selector%20%3A%3D%20%27%27'),
  2100. messageSends: ["initialize"],
  2101. referencedClasses: []
  2102. }),
  2103. smalltalk.ReferencesBrowser);
  2104. smalltalk.addMethod(
  2105. '_setInputEvents',
  2106. smalltalk.method({
  2107. selector: 'setInputEvents',
  2108. category: 'private',
  2109. fn: function (){
  2110. var self=this;
  2111. (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']);
  2112. return self;},
  2113. 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'),
  2114. messageSends: ["onKeyUp:", "valueWithTimeout:", "search:", "val", "asJQuery", "onKeyDown:", "ifNotNil:", "clearTimeout"],
  2115. referencedClasses: []
  2116. }),
  2117. smalltalk.ReferencesBrowser);
  2118. smalltalk.addMethod(
  2119. '_renderBoxOn_',
  2120. smalltalk.method({
  2121. selector: 'renderBoxOn:',
  2122. category: 'rendering',
  2123. fn: function (html){
  2124. var self=this;
  2125. (function($rec){smalltalk.send($rec, "_renderInputOn_", [html]);smalltalk.send($rec, "_renderImplementorsOn_", [html]);smalltalk.send($rec, "_renderSendersOn_", [html]);return smalltalk.send($rec, "_renderReferencedClassesOn_", [html]);})(self);
  2126. return self;},
  2127. 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'),
  2128. messageSends: ["renderInputOn:", "renderImplementorsOn:", "renderSendersOn:", "renderReferencedClassesOn:"],
  2129. referencedClasses: []
  2130. }),
  2131. smalltalk.ReferencesBrowser);
  2132. smalltalk.addMethod(
  2133. '_renderInputOn_',
  2134. smalltalk.method({
  2135. selector: 'renderInputOn:',
  2136. category: 'rendering',
  2137. fn: function (html){
  2138. var self=this;
  2139. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  2140. smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val_", [self['@selector']]);
  2141. smalltalk.send(self, "_setInputEvents", []);
  2142. return self;},
  2143. 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'),
  2144. messageSends: ["class:", "yourself", "input", "val:", "asJQuery", "setInputEvents"],
  2145. referencedClasses: []
  2146. }),
  2147. smalltalk.ReferencesBrowser);
  2148. smalltalk.addMethod(
  2149. '_renderImplementorsOn_',
  2150. smalltalk.method({
  2151. selector: 'renderImplementorsOn:',
  2152. category: 'rendering',
  2153. fn: function (html){
  2154. var self=this;
  2155. self['@implementorsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column implementors"]);
  2156. smalltalk.send(self, "_updateImplementorsList", []);
  2157. return self;},
  2158. 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'),
  2159. messageSends: ["class:", "ul", "updateImplementorsList"],
  2160. referencedClasses: []
  2161. }),
  2162. smalltalk.ReferencesBrowser);
  2163. smalltalk.addMethod(
  2164. '_renderSendersOn_',
  2165. smalltalk.method({
  2166. selector: 'renderSendersOn:',
  2167. category: 'rendering',
  2168. fn: function (html){
  2169. var self=this;
  2170. self['@sendersList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column senders"]);
  2171. smalltalk.send(self, "_updateSendersList", []);
  2172. return self;},
  2173. 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'),
  2174. messageSends: ["class:", "ul", "updateSendersList"],
  2175. referencedClasses: []
  2176. }),
  2177. smalltalk.ReferencesBrowser);
  2178. smalltalk.addMethod(
  2179. '_renderReferencedClassesOn_',
  2180. smalltalk.method({
  2181. selector: 'renderReferencedClassesOn:',
  2182. category: 'rendering',
  2183. fn: function (html){
  2184. var self=this;
  2185. self['@referencedClassesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column referenced_classes"]);
  2186. smalltalk.send(self, "_updateReferencedClassesList", []);
  2187. return self;},
  2188. 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'),
  2189. messageSends: ["class:", "ul", "updateReferencedClassesList"],
  2190. referencedClasses: []
  2191. }),
  2192. smalltalk.ReferencesBrowser);
  2193. smalltalk.addMethod(
  2194. '_canBeClosed',
  2195. smalltalk.method({
  2196. selector: 'canBeClosed',
  2197. category: 'testing',
  2198. fn: function (){
  2199. var self=this;
  2200. return true;
  2201. return self;},
  2202. source: unescape('canBeClosed%0A%09%5Etrue'),
  2203. messageSends: [],
  2204. referencedClasses: []
  2205. }),
  2206. smalltalk.ReferencesBrowser);
  2207. smalltalk.addMethod(
  2208. '_updateImplementorsList',
  2209. smalltalk.method({
  2210. selector: 'updateImplementorsList',
  2211. category: 'updating',
  2212. fn: function (){
  2213. var self=this;
  2214. smalltalk.send(self['@implementorsList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Implementors%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_implementors", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_implementors", []), "_do_", [(function(each){var li=nil;
  2215. 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);})]);})]);
  2216. return self;},
  2217. source: unescape('updateImplementorsList%0A%20%20%20%20implementorsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Implementors%20%28%27%2C%20self%20implementors%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20implementors%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20li%0A%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector%29%3B%0A%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2218. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "implementors", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2219. referencedClasses: []
  2220. }),
  2221. smalltalk.ReferencesBrowser);
  2222. smalltalk.addMethod(
  2223. '_updateSendersList',
  2224. smalltalk.method({
  2225. selector: 'updateSendersList',
  2226. category: 'updating',
  2227. fn: function (){
  2228. var self=this;
  2229. smalltalk.send(self['@sendersList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Senders%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_senders", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_senders", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(each, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(smalltalk.send(html, "_li", []));})]);})]);
  2230. return self;},
  2231. source: unescape('updateSendersList%0A%20%20%20%20%09sendersList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Senders%20%28%27%2C%20self%20senders%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20senders%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%0A%09%20%20%20%20%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%29%3B%0A%09%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2232. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "senders", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2233. referencedClasses: []
  2234. }),
  2235. smalltalk.ReferencesBrowser);
  2236. smalltalk.addMethod(
  2237. '_updateReferencedClassesList',
  2238. smalltalk.method({
  2239. selector: 'updateReferencedClassesList',
  2240. category: 'updating',
  2241. fn: function (){
  2242. var self=this;
  2243. smalltalk.send(self['@referencedClassesList'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_class_", ["column_label"]);smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(unescape("Class%20references%20%28"), "__comma", [smalltalk.send(smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_size", []), "_asString", [])]), "__comma", [unescape("%29")])]);return smalltalk.send($rec, "_style_", [unescape("font-weight%3A%20bold")]);})(smalltalk.send(html, "_li", []));return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_do_", [(function(each){return (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodClass", []), "_asString", []), "__comma", [unescape("%20%3E%3E%20")]), "__comma", [smalltalk.send(each, "_selector", [])])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_openBrowserOn_", [each]);})]);})(smalltalk.send(html, "_li", []));})]);})]);
  2244. return self;},
  2245. source: unescape('updateReferencedClassesList%0A%20%20%20%20%09referencedClassesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Class%20references%20%28%27%2C%20self%20referencedClasses%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20referencedClasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%0A%09%20%20%20%20%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%29%3B%0A%09%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2246. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "referencedClasses", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2247. referencedClasses: []
  2248. }),
  2249. smalltalk.ReferencesBrowser);
  2250. smalltalk.addMethod(
  2251. '_search_',
  2252. smalltalk.method({
  2253. selector: 'search:',
  2254. category: 'instance creation',
  2255. fn: function (aString){
  2256. var self=this;
  2257. return (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(self, "_new", []));
  2258. return self;},
  2259. source: unescape('search%3A%20aString%0A%09%5Eself%20new%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09open'),
  2260. messageSends: ["searchReferencesFor:", "open", "new"],
  2261. referencedClasses: []
  2262. }),
  2263. smalltalk.ReferencesBrowser.klass);
  2264. smalltalk.addClass('SourceArea', smalltalk.Widget, ['editor', 'div'], 'IDE');
  2265. smalltalk.addMethod(
  2266. '_val',
  2267. smalltalk.method({
  2268. selector: 'val',
  2269. category: 'accessing',
  2270. fn: function (){
  2271. var self=this;
  2272. return smalltalk.send(self['@editor'], "_getValue", []);
  2273. return self;},
  2274. source: unescape('val%0A%20%20%20%20%5Eeditor%20getValue'),
  2275. messageSends: ["getValue"],
  2276. referencedClasses: []
  2277. }),
  2278. smalltalk.SourceArea);
  2279. smalltalk.addMethod(
  2280. '_val_',
  2281. smalltalk.method({
  2282. selector: 'val:',
  2283. category: 'accessing',
  2284. fn: function (aString){
  2285. var self=this;
  2286. smalltalk.send(self['@editor'], "_setValue_", [aString]);
  2287. return self;},
  2288. source: unescape('val%3A%20aString%0A%20%20%20%20editor%20setValue%3A%20aString'),
  2289. messageSends: ["setValue:"],
  2290. referencedClasses: []
  2291. }),
  2292. smalltalk.SourceArea);
  2293. smalltalk.addMethod(
  2294. '_currentLine',
  2295. smalltalk.method({
  2296. selector: 'currentLine',
  2297. category: 'accessing',
  2298. fn: function (){
  2299. var self=this;
  2300. return smalltalk.send(self['@editor'], "_getLine_", [smalltalk.send(smalltalk.send(self['@editor'], "_getCursor", []), "_line", [])]);
  2301. return self;},
  2302. source: unescape('currentLine%0A%20%20%20%20%5Eeditor%20getLine%3A%20%28editor%20getCursor%20line%29'),
  2303. messageSends: ["getLine:", "line", "getCursor"],
  2304. referencedClasses: []
  2305. }),
  2306. smalltalk.SourceArea);
  2307. smalltalk.addMethod(
  2308. '_selection',
  2309. smalltalk.method({
  2310. selector: 'selection',
  2311. category: 'accessing',
  2312. fn: function (){
  2313. var self=this;
  2314. return smalltalk.send(self['@editor'], "_getSelection", []);
  2315. return self;},
  2316. source: unescape('selection%0A%09%5Eeditor%20getSelection'),
  2317. messageSends: ["getSelection"],
  2318. referencedClasses: []
  2319. }),
  2320. smalltalk.SourceArea);
  2321. smalltalk.addMethod(
  2322. '_selectionEnd',
  2323. smalltalk.method({
  2324. selector: 'selectionEnd',
  2325. category: 'accessing',
  2326. fn: function (){
  2327. var self=this;
  2328. return smalltalk.send(smalltalk.send(self['@textarea'], "_element", []), "_selectionEnd", []);
  2329. return self;},
  2330. source: unescape('selectionEnd%0A%20%20%20%5Etextarea%20element%20selectionEnd'),
  2331. messageSends: ["selectionEnd", "element"],
  2332. referencedClasses: []
  2333. }),
  2334. smalltalk.SourceArea);
  2335. smalltalk.addMethod(
  2336. '_selectionStart',
  2337. smalltalk.method({
  2338. selector: 'selectionStart',
  2339. category: 'accessing',
  2340. fn: function (){
  2341. var self=this;
  2342. return smalltalk.send(smalltalk.send(self['@textarea'], "_element", []), "_selectionStart", []);
  2343. return self;},
  2344. source: unescape('selectionStart%0A%20%20%20%5Etextarea%20element%20selectionStart'),
  2345. messageSends: ["selectionStart", "element"],
  2346. referencedClasses: []
  2347. }),
  2348. smalltalk.SourceArea);
  2349. smalltalk.addMethod(
  2350. '_selectionStart_',
  2351. smalltalk.method({
  2352. selector: 'selectionStart:',
  2353. category: 'accessing',
  2354. fn: function (anInteger){
  2355. var self=this;
  2356. smalltalk.send(smalltalk.send(self['@textarea'], "_element", []), "_selectionStart_", [anInteger]);
  2357. return self;},
  2358. source: unescape('selectionStart%3A%20anInteger%0A%20%20%20textarea%20element%20selectionStart%3A%20anInteger'),
  2359. messageSends: ["selectionStart:", "element"],
  2360. referencedClasses: []
  2361. }),
  2362. smalltalk.SourceArea);
  2363. smalltalk.addMethod(
  2364. '_selectionEnd_',
  2365. smalltalk.method({
  2366. selector: 'selectionEnd:',
  2367. category: 'accessing',
  2368. fn: function (anInteger){
  2369. var self=this;
  2370. smalltalk.send(smalltalk.send(self['@textarea'], "_element", []), "_selectionEnd_", [anInteger]);
  2371. return self;},
  2372. source: unescape('selectionEnd%3A%20anInteger%0A%20%20%20textarea%20element%20selectionEnd%3A%20anInteger'),
  2373. messageSends: ["selectionEnd:", "element"],
  2374. referencedClasses: []
  2375. }),
  2376. smalltalk.SourceArea);
  2377. smalltalk.addMethod(
  2378. '_setEditorOn_',
  2379. smalltalk.method({
  2380. selector: 'setEditorOn:',
  2381. category: 'accessing',
  2382. fn: function (aTextarea){
  2383. var self=this;
  2384. self['@editor'] = CodeMirror.fromTextArea(aTextarea, {
  2385. theme: 'jtalk',
  2386. lineNumbers: true,
  2387. enterMode: 'classic',
  2388. matchBrackets: true,
  2389. electricChars: false,
  2390. });
  2391. return self;},
  2392. source: unescape('setEditorOn%3A%20aTextarea%0A%09%3Cself%5B%27@editor%27%5D%20%3D%20CodeMirror.fromTextArea%28aTextarea%2C%20%7B%0A%20%20%20%20%20%20%20%20%09theme%3A%20%27jtalk%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20lineNumbers%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20enterMode%3A%20%27classic%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20matchBrackets%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20electricChars%3A%20false%2C%0A%09%7D%29%3E'),
  2393. messageSends: [],
  2394. referencedClasses: []
  2395. }),
  2396. smalltalk.SourceArea);
  2397. smalltalk.addMethod(
  2398. '_clear',
  2399. smalltalk.method({
  2400. selector: 'clear',
  2401. category: 'actions',
  2402. fn: function (){
  2403. var self=this;
  2404. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]);
  2405. return self;},
  2406. source: unescape('clear%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27'),
  2407. messageSends: ["val:", "asJQuery"],
  2408. referencedClasses: []
  2409. }),
  2410. smalltalk.SourceArea);
  2411. smalltalk.addMethod(
  2412. '_doIt',
  2413. smalltalk.method({
  2414. selector: 'doIt',
  2415. category: 'actions',
  2416. fn: function (){
  2417. var self=this;
  2418. var selection=nil;
  2419. smalltalk.send(smalltalk.send(self['@editor'], "_somethingSelected", []), "_ifFalse_ifTrue_", [(function(){return selection=smalltalk.send(self, "_currentLine", []);}), (function(){return selection=smalltalk.send(self, "_selection", []);})]);
  2420. return smalltalk.send(self, "_eval_", [selection]);
  2421. return self;},
  2422. source: unescape('doIt%0A%20%20%20%20%7C%20selection%20%7C%0A%20%20%20%20editor%20somethingSelected%0A%09ifFalse%3A%20%5Bselection%20%3A%3D%20self%20currentLine%5D%0A%09ifTrue%3A%20%5Bselection%20%3A%3D%20self%20selection%5D.%0A%20%20%20%20%5Eself%20eval%3A%20selection'),
  2423. messageSends: ["ifFalse:ifTrue:", "somethingSelected", "currentLine", "selection", "eval:"],
  2424. referencedClasses: []
  2425. }),
  2426. smalltalk.SourceArea);
  2427. smalltalk.addMethod(
  2428. '_eval_',
  2429. smalltalk.method({
  2430. selector: 'eval:',
  2431. category: 'actions',
  2432. fn: function (aString){
  2433. var self=this;
  2434. try{var compiler=nil;
  2435. var node=nil;
  2436. compiler=smalltalk.send(smalltalk.Compiler, "_new", []);
  2437. node=smalltalk.send(compiler, "_parseExpression_", [aString]);
  2438. 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", [])])])}})})();})]);
  2439. (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(compiler, "_loadExpression_", [aString])}})})();
  2440. return self;
  2441. } catch(e) {if(e.name === 'stReturn' && e.selector === '_eval_'){return e.fn()} throw(e)}},
  2442. 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'),
  2443. messageSends: ["new", "parseExpression:", "ifTrue:", "isParseFailure", "alert:", unescape("%2C"), "reason", "position", "loadExpression:"],
  2444. referencedClasses: [smalltalk.Compiler]
  2445. }),
  2446. smalltalk.SourceArea);
  2447. smalltalk.addMethod(
  2448. '_handleKeyDown_',
  2449. smalltalk.method({
  2450. selector: 'handleKeyDown:',
  2451. category: 'actions',
  2452. fn: function (anEvent){
  2453. var self=this;
  2454. if(anEvent.ctrlKey) {
  2455. if(anEvent.keyCode === 80) { //ctrl+p
  2456. self._printIt();
  2457. anEvent.preventDefault();
  2458. return false;
  2459. }
  2460. if(anEvent.keyCode === 68) { //ctrl+d
  2461. self._doIt();
  2462. anEvent.preventDefault();
  2463. return false;
  2464. }
  2465. if(anEvent.keyCode === 73) { //ctrl+i
  2466. self._inspectIt();
  2467. anEvent.preventDefault();
  2468. return false;
  2469. }
  2470. };
  2471. return self;},
  2472. 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'),
  2473. messageSends: [],
  2474. referencedClasses: []
  2475. }),
  2476. smalltalk.SourceArea);
  2477. smalltalk.addMethod(
  2478. '_inspectIt',
  2479. smalltalk.method({
  2480. selector: 'inspectIt',
  2481. category: 'actions',
  2482. fn: function (){
  2483. var self=this;
  2484. smalltalk.send(smalltalk.send(self, "_doIt", []), "_inspect", []);
  2485. return self;},
  2486. source: unescape('inspectIt%0A%20%20%20%20self%20doIt%20inspect'),
  2487. messageSends: ["inspect", "doIt"],
  2488. referencedClasses: []
  2489. }),
  2490. smalltalk.SourceArea);
  2491. smalltalk.addMethod(
  2492. '_print_',
  2493. smalltalk.method({
  2494. selector: 'print:',
  2495. category: 'actions',
  2496. fn: function (aString){
  2497. var self=this;
  2498. var start=nil;
  2499. var stop=nil;
  2500. start=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2501. stop=smalltalk.send(smalltalk.Dictionary, "_new", []);
  2502. smalltalk.send(start, "_at_put_", ["line", smalltalk.send(smalltalk.send(self['@editor'], "_getCursor_", [false]), "_line", [])]);
  2503. smalltalk.send(start, "_at_put_", ["ch", smalltalk.send(smalltalk.send(self['@editor'], "_getCursor_", [false]), "_ch", [])]);
  2504. smalltalk.send(stop, "_at_put_", ["line", smalltalk.send(start, "_at_", ["line"])]);
  2505. smalltalk.send(stop, "_at_put_", ["ch", smalltalk.send(smalltalk.send(smalltalk.send(start, "_at_", ["ch"]), "__plus", [smalltalk.send(aString, "_size", [])]), "__plus", [(2)])]);
  2506. smalltalk.send(self['@editor'], "_replaceSelection_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@editor'], "_getSelection", []), "__comma", [" "]), "__comma", [aString]), "__comma", [" "])]);
  2507. smalltalk.send(self['@editor'], "_setCursor_", [smalltalk.send(self['@editor'], "_getCursor_", [true])]);
  2508. smalltalk.send(self['@editor'], "_setSelection_end_", [stop, start]);
  2509. (function($rec){smalltalk.send($rec, "_log_", [start]);return smalltalk.send($rec, "_log_", [stop]);})(console);
  2510. return self;},
  2511. source: unescape('print%3A%20aString%0A%09%7C%20start%20stop%20%7C%0A%09start%20%3A%3D%20Dictionary%20new.%0A%09stop%20%3A%3D%20Dictionary%20new.%0A%09start%20at%3A%20%27line%27%20put%3A%20%28editor%20getCursor%3A%20false%29%20line.%0A%09start%20at%3A%20%27ch%27%20put%3A%20%28editor%20getCursor%3A%20false%29%20ch.%0A%09stop%20at%3A%20%27line%27%20put%3A%20%28start%20at%3A%20%27line%27%29.%0A%09stop%20at%3A%20%27ch%27%20put%3A%20%28%28start%20at%3A%20%27ch%27%29%20+%20aString%20size%20+%202%29.%0A%09editor%20replaceSelection%3A%20%28editor%20getSelection%2C%20%27%20%27%2C%20aString%2C%20%27%20%27%29.%0A%09editor%20setCursor%3A%20%28editor%20getCursor%3A%20true%29.%0A%09editor%20setSelection%3A%20stop%20end%3A%20start.%0A%09console%20log%3A%20start%3B%20log%3A%20stop'),
  2512. messageSends: ["new", "at:put:", "line", "getCursor:", "ch", "at:", unescape("+"), "size", "replaceSelection:", unescape("%2C"), "getSelection", "setCursor:", "setSelection:end:", "log:"],
  2513. referencedClasses: [smalltalk.Dictionary]
  2514. }),
  2515. smalltalk.SourceArea);
  2516. smalltalk.addMethod(
  2517. '_printIt',
  2518. smalltalk.method({
  2519. selector: 'printIt',
  2520. category: 'actions',
  2521. fn: function (){
  2522. var self=this;
  2523. smalltalk.send(self, "_print_", [smalltalk.send(smalltalk.send(self, "_doIt", []), "_printString", [])]);
  2524. return self;},
  2525. source: unescape('printIt%0A%20%20%20%20self%20print%3A%20self%20doIt%20printString'),
  2526. messageSends: ["print:", "printString", "doIt"],
  2527. referencedClasses: []
  2528. }),
  2529. smalltalk.SourceArea);
  2530. smalltalk.addMethod(
  2531. '_renderOn_',
  2532. smalltalk.method({
  2533. selector: 'renderOn:',
  2534. category: 'rendering',
  2535. fn: function (html){
  2536. var self=this;
  2537. var textarea=nil;
  2538. self['@div']=smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["source"]);
  2539. smalltalk.send(self['@div'], "_with_", [(function(){return textarea=smalltalk.send(html, "_textarea", []);})]);
  2540. smalltalk.send(self, "_setEditorOn_", [smalltalk.send(textarea, "_element", [])]);
  2541. smalltalk.send(self['@div'], "_onKeyDown_", [(function(e){return smalltalk.send(self, "_handleKeyDown_", [e]);})]);
  2542. return self;},
  2543. source: unescape('renderOn%3A%20html%0A%20%20%20%20%7C%20textarea%20%7C%0A%20%20%20%20div%20%3A%3D%20html%20div%20class%3A%20%27source%27.%0A%20%20%20%20div%20with%3A%20%5Btextarea%20%3A%3D%20html%20textarea%5D.%0A%20%20%20%20self%20setEditorOn%3A%20textarea%20element.%0A%20%20%20%20div%20onKeyDown%3A%20%5B%3Ae%20%7C%20self%20handleKeyDown%3A%20e%5D'),
  2544. messageSends: ["class:", "div", "with:", "textarea", "setEditorOn:", "element", "onKeyDown:", "handleKeyDown:"],
  2545. referencedClasses: []
  2546. }),
  2547. smalltalk.SourceArea);
  2548. smalltalk.addMethod(
  2549. '_editor',
  2550. smalltalk.method({
  2551. selector: 'editor',
  2552. category: 'accessing',
  2553. fn: function (){
  2554. var self=this;
  2555. return self['@editor'];
  2556. return self;},
  2557. source: unescape('editor%0A%09%5Eeditor'),
  2558. messageSends: [],
  2559. referencedClasses: []
  2560. }),
  2561. smalltalk.SourceArea);
  2562. smalltalk.addMethod(
  2563. '_onKeyUp_',
  2564. smalltalk.method({
  2565. selector: 'onKeyUp:',
  2566. category: 'events',
  2567. fn: function (aBlock){
  2568. var self=this;
  2569. smalltalk.send(self['@div'], "_onKeyUp_", [aBlock]);
  2570. return self;},
  2571. source: unescape('onKeyUp%3A%20aBlock%0A%09div%20onKeyUp%3A%20aBlock'),
  2572. messageSends: ["onKeyUp:"],
  2573. referencedClasses: []
  2574. }),
  2575. smalltalk.SourceArea);
  2576. smalltalk.addMethod(
  2577. '_onKeyDown_',
  2578. smalltalk.method({
  2579. selector: 'onKeyDown:',
  2580. category: 'events',
  2581. fn: function (aBlock){
  2582. var self=this;
  2583. smalltalk.send(self['@div'], "_onKeyDown_", [aBlock]);
  2584. return self;},
  2585. source: unescape('onKeyDown%3A%20aBlock%0A%09div%20onKeyDown%3A%20aBlock'),
  2586. messageSends: ["onKeyDown:"],
  2587. referencedClasses: []
  2588. }),
  2589. smalltalk.SourceArea);
  2590. smalltalk.addClass('ClassesList', smalltalk.Widget, ['browser', 'ul', 'nodes'], 'IDE');
  2591. smalltalk.addMethod(
  2592. '_category',
  2593. smalltalk.method({
  2594. selector: 'category',
  2595. category: 'accessing',
  2596. fn: function (){
  2597. var self=this;
  2598. return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedCategory", []);
  2599. return self;},
  2600. source: unescape('category%0A%09%5Eself%20browser%20selectedCategory'),
  2601. messageSends: ["selectedCategory", "browser"],
  2602. referencedClasses: []
  2603. }),
  2604. smalltalk.ClassesList);
  2605. smalltalk.addMethod(
  2606. '_nodes',
  2607. smalltalk.method({
  2608. selector: 'nodes',
  2609. category: 'accessing',
  2610. fn: function (){
  2611. var self=this;
  2612. smalltalk.send(self['@nodes'], "_ifNil_", [(function(){return self['@nodes']=smalltalk.send(self, "_getNodes", []);})]);
  2613. return self['@nodes'];
  2614. return self;},
  2615. source: unescape('nodes%0A%09nodes%20ifNil%3A%20%5Bnodes%20%3A%3D%20self%20getNodes%5D.%0A%09%5Enodes'),
  2616. messageSends: ["ifNil:", "getNodes"],
  2617. referencedClasses: []
  2618. }),
  2619. smalltalk.ClassesList);
  2620. smalltalk.addMethod(
  2621. '_browser',
  2622. smalltalk.method({
  2623. selector: 'browser',
  2624. category: 'accessing',
  2625. fn: function (){
  2626. var self=this;
  2627. return self['@browser'];
  2628. return self;},
  2629. source: unescape('browser%0A%09%5Ebrowser'),
  2630. messageSends: [],
  2631. referencedClasses: []
  2632. }),
  2633. smalltalk.ClassesList);
  2634. smalltalk.addMethod(
  2635. '_browser_',
  2636. smalltalk.method({
  2637. selector: 'browser:',
  2638. category: 'accessing',
  2639. fn: function (aBrowser){
  2640. var self=this;
  2641. self['@browser']=aBrowser;
  2642. return self;},
  2643. source: unescape('browser%3A%20aBrowser%0A%09browser%20%3A%3D%20aBrowser'),
  2644. messageSends: [],
  2645. referencedClasses: []
  2646. }),
  2647. smalltalk.ClassesList);
  2648. smalltalk.addMethod(
  2649. '_getNodes',
  2650. smalltalk.method({
  2651. selector: 'getNodes',
  2652. category: 'accessing',
  2653. fn: function (){
  2654. var self=this;
  2655. var classes=nil;
  2656. var children=nil;
  2657. var others=nil;
  2658. classes=smalltalk.send(smalltalk.send(self, "_browser", []), "_classes", []);
  2659. children=[];
  2660. others=[];
  2661. smalltalk.send(classes, "_do_", [(function(each){return smalltalk.send(smalltalk.send(classes, "_includes_", [smalltalk.send(each, "_superclass", [])]), "_ifFalse_ifTrue_", [(function(){return smalltalk.send(children, "_add_", [each]);}), (function(){return smalltalk.send(others, "_add_", [each]);})]);})]);
  2662. return smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send(smalltalk.ClassesListNode, "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, (0)]);})]);
  2663. return self;},
  2664. source: unescape('getNodes%0A%09%7C%20classes%20children%20others%20%7C%0A%09classes%20%3A%3D%20self%20browser%20classes.%0A%09children%20%3A%3D%20%23%28%29.%0A%09others%20%3A%3D%20%23%28%29.%0A%09classes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%28classes%20includes%3A%20each%20superclass%29%0A%09%09%09ifFalse%3A%20%5Bchildren%20add%3A%20each%5D%0A%09%09%09ifTrue%3A%20%5Bothers%20add%3A%20each%5D%5D.%0A%09%5Echildren%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09ClassesListNode%20on%3A%20each%20browser%3A%20self%20browser%20classes%3A%20others%20level%3A%200%5D'),
  2665. messageSends: ["classes", "browser", "do:", "ifFalse:ifTrue:", "includes:", "superclass", "add:", "collect:", "on:browser:classes:level:"],
  2666. referencedClasses: []
  2667. }),
  2668. smalltalk.ClassesList);
  2669. smalltalk.addMethod(
  2670. '_resetNodes',
  2671. smalltalk.method({
  2672. selector: 'resetNodes',
  2673. category: 'accessing',
  2674. fn: function (){
  2675. var self=this;
  2676. self['@nodes']=nil;
  2677. return self;},
  2678. source: unescape('resetNodes%0A%09nodes%20%3A%3D%20nil'),
  2679. messageSends: [],
  2680. referencedClasses: []
  2681. }),
  2682. smalltalk.ClassesList);
  2683. smalltalk.addMethod(
  2684. '_renderOn_',
  2685. smalltalk.method({
  2686. selector: 'renderOn:',
  2687. category: 'rendering',
  2688. fn: function (html){
  2689. var self=this;
  2690. self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column browser classes"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
  2691. smalltalk.send(self, "_updateNodes", []);
  2692. return self;},
  2693. source: unescape('renderOn%3A%20html%0A%09ul%20%3A%3D%20html%20ul%0A%09%09class%3A%20%27jt_column%20browser%20classes%27%3B%0A%09%09yourself.%0A%09self%20updateNodes'),
  2694. messageSends: ["class:", "yourself", "ul", "updateNodes"],
  2695. referencedClasses: []
  2696. }),
  2697. smalltalk.ClassesList);
  2698. smalltalk.addMethod(
  2699. '_updateNodes',
  2700. smalltalk.method({
  2701. selector: 'updateNodes',
  2702. category: 'rendering',
  2703. fn: function (){
  2704. var self=this;
  2705. smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);})]);
  2706. return self;},
  2707. source: unescape('updateNodes%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20nodes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%09each%20renderOn%3A%20html%5D%5D'),
  2708. messageSends: ["contents:", "do:", "nodes", "renderOn:"],
  2709. referencedClasses: []
  2710. }),
  2711. smalltalk.ClassesList);
  2712. smalltalk.addMethod(
  2713. '_on_',
  2714. smalltalk.method({
  2715. selector: 'on:',
  2716. category: 'instance creation',
  2717. fn: function (aBrowser){
  2718. var self=this;
  2719. return (function($rec){smalltalk.send($rec, "_browser_", [aBrowser]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  2720. return self;},
  2721. source: unescape('on%3A%20aBrowser%0A%09%5Eself%20new%20%0A%09%09browser%3A%20aBrowser%3B%20%0A%09%09yourself'),
  2722. messageSends: ["browser:", "yourself", "new"],
  2723. referencedClasses: []
  2724. }),
  2725. smalltalk.ClassesList.klass);
  2726. smalltalk.addClass('ClassesListNode', smalltalk.Widget, ['browser', 'theClass', 'level', 'nodes'], 'IDE');
  2727. smalltalk.addMethod(
  2728. '_nodes',
  2729. smalltalk.method({
  2730. selector: 'nodes',
  2731. category: 'accessing',
  2732. fn: function (){
  2733. var self=this;
  2734. return self['@nodes'];
  2735. return self;},
  2736. source: unescape('nodes%0A%09%5Enodes'),
  2737. messageSends: [],
  2738. referencedClasses: []
  2739. }),
  2740. smalltalk.ClassesListNode);
  2741. smalltalk.addMethod(
  2742. '_theClass',
  2743. smalltalk.method({
  2744. selector: 'theClass',
  2745. category: 'accessing',
  2746. fn: function (){
  2747. var self=this;
  2748. return self['@theClass'];
  2749. return self;},
  2750. source: unescape('theClass%0A%09%5EtheClass'),
  2751. messageSends: [],
  2752. referencedClasses: []
  2753. }),
  2754. smalltalk.ClassesListNode);
  2755. smalltalk.addMethod(
  2756. '_theClass_',
  2757. smalltalk.method({
  2758. selector: 'theClass:',
  2759. category: 'accessing',
  2760. fn: function (aClass){
  2761. var self=this;
  2762. self['@theClass']=aClass;
  2763. return self;},
  2764. source: unescape('theClass%3A%20aClass%0A%09theClass%20%3A%3D%20aClass'),
  2765. messageSends: [],
  2766. referencedClasses: []
  2767. }),
  2768. smalltalk.ClassesListNode);
  2769. smalltalk.addMethod(
  2770. '_browser',
  2771. smalltalk.method({
  2772. selector: 'browser',
  2773. category: 'accessing',
  2774. fn: function (){
  2775. var self=this;
  2776. return self['@browser'];
  2777. return self;},
  2778. source: unescape('browser%0A%09%5Ebrowser'),
  2779. messageSends: [],
  2780. referencedClasses: []
  2781. }),
  2782. smalltalk.ClassesListNode);
  2783. smalltalk.addMethod(
  2784. '_browser_',
  2785. smalltalk.method({
  2786. selector: 'browser:',
  2787. category: 'accessing',
  2788. fn: function (aBrowser){
  2789. var self=this;
  2790. self['@browser']=aBrowser;
  2791. return self;},
  2792. source: unescape('browser%3A%20aBrowser%0A%09browser%20%3A%3D%20aBrowser'),
  2793. messageSends: [],
  2794. referencedClasses: []
  2795. }),
  2796. smalltalk.ClassesListNode);
  2797. smalltalk.addMethod(
  2798. '_level',
  2799. smalltalk.method({
  2800. selector: 'level',
  2801. category: 'accessing',
  2802. fn: function (){
  2803. var self=this;
  2804. return self['@level'];
  2805. return self;},
  2806. source: unescape('level%0A%09%5Elevel'),
  2807. messageSends: [],
  2808. referencedClasses: []
  2809. }),
  2810. smalltalk.ClassesListNode);
  2811. smalltalk.addMethod(
  2812. '_level_',
  2813. smalltalk.method({
  2814. selector: 'level:',
  2815. category: 'accessing',
  2816. fn: function (anInteger){
  2817. var self=this;
  2818. self['@level']=anInteger;
  2819. return self;},
  2820. source: unescape('level%3A%20anInteger%0A%09level%20%3A%3D%20anInteger'),
  2821. messageSends: [],
  2822. referencedClasses: []
  2823. }),
  2824. smalltalk.ClassesListNode);
  2825. smalltalk.addMethod(
  2826. '_label',
  2827. smalltalk.method({
  2828. selector: 'label',
  2829. category: 'accessing',
  2830. fn: function (){
  2831. var self=this;
  2832. var str=nil;
  2833. str=smalltalk.send(smalltalk.send(smalltalk.String, "_new", []), "_writeStream", []);
  2834. smalltalk.send(smalltalk.send(self, "_level", []), "_timesRepeat_", [(function(){return smalltalk.send(str, "_nextPutAll_", [unescape("%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B")]);})]);
  2835. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", [])]);
  2836. return smalltalk.send(str, "_contents", []);
  2837. return self;},
  2838. source: unescape('label%0A%09%7C%20str%20%7C%0A%09str%20%3A%3D%20String%20new%20writeStream.%0A%09self%20level%20timesRepeat%3A%20%5B%0A%09%09str%20nextPutAll%3A%20%27%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%27%5D.%0A%09str%20nextPutAll%3A%20self%20theClass%20name.%0A%09%5Estr%20contents'),
  2839. messageSends: ["writeStream", "new", "timesRepeat:", "level", "nextPutAll:", "name", "theClass", "contents"],
  2840. referencedClasses: [smalltalk.String]
  2841. }),
  2842. smalltalk.ClassesListNode);
  2843. smalltalk.addMethod(
  2844. '_getNodesFrom_',
  2845. smalltalk.method({
  2846. selector: 'getNodesFrom:',
  2847. category: 'accessing',
  2848. fn: function (aCollection){
  2849. var self=this;
  2850. var children=nil;
  2851. var others=nil;
  2852. children=[];
  2853. others=[];
  2854. smalltalk.send(aCollection, "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_superclass", []), "__eq", [smalltalk.send(self, "_theClass", [])]), "_ifTrue_ifFalse_", [(function(){return smalltalk.send(children, "_add_", [each]);}), (function(){return smalltalk.send(others, "_add_", [each]);})]);})]);
  2855. self['@nodes']=smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send(smalltalk.ClassesListNode, "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, smalltalk.send(smalltalk.send(self, "_level", []), "__plus", [(1)])]);})]);
  2856. return self;},
  2857. source: unescape('getNodesFrom%3A%20aCollection%0A%09%7C%20children%20others%20%7C%0A%09children%20%3A%3D%20%23%28%29.%0A%09others%20%3A%3D%20%23%28%29.%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%28each%20superclass%20%3D%20self%20theClass%29%0A%09%09%09ifTrue%3A%20%5Bchildren%20add%3A%20each%5D%0A%09%09%09ifFalse%3A%20%5Bothers%20add%3A%20each%5D%5D.%0A%09nodes%3A%3D%20children%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09ClassesListNode%20on%3A%20each%20browser%3A%20self%20browser%20classes%3A%20others%20level%3A%20self%20level%20+%201%5D'),
  2858. messageSends: ["do:", "ifTrue:ifFalse:", unescape("%3D"), "superclass", "theClass", "add:", "collect:", "on:browser:classes:level:", "browser", unescape("+"), "level"],
  2859. referencedClasses: [smalltalk.ClassesListNode]
  2860. }),
  2861. smalltalk.ClassesListNode);
  2862. smalltalk.addMethod(
  2863. '_renderOn_',
  2864. smalltalk.method({
  2865. selector: 'renderOn:',
  2866. category: 'rendering',
  2867. fn: function (html){
  2868. var self=this;
  2869. var li=nil;
  2870. li=smalltalk.send(smalltalk.send(html, "_li", []), "_onClick_", [(function(){return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectClass_", [smalltalk.send(self, "_theClass", [])]);})]);
  2871. smalltalk.send(smalltalk.send(li, "_asJQuery", []), "_contents_", [smalltalk.send(self, "_label", [])]);
  2872. smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedClass", []), "__eq", [smalltalk.send(self, "_theClass", [])]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
  2873. smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);
  2874. return self;},
  2875. source: unescape('renderOn%3A%20html%0A%09%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li%20%0A%09%09onClick%3A%20%5Bself%20browser%20selectClass%3A%20self%20theClass%5D.%0A%09li%20asJQuery%20contents%3A%20self%20label.%0A%09self%20browser%20selectedClass%20%3D%20self%20theClass%20ifTrue%3A%20%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09self%20nodes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09each%20renderOn%3A%20html%5D'),
  2876. messageSends: ["onClick:", "li", "selectClass:", "browser", "theClass", "contents:", "asJQuery", "label", "ifTrue:", unescape("%3D"), "selectedClass", "class:", "do:", "nodes", "renderOn:"],
  2877. referencedClasses: []
  2878. }),
  2879. smalltalk.ClassesListNode);
  2880. smalltalk.addMethod(
  2881. '_on_browser_classes_level_',
  2882. smalltalk.method({
  2883. selector: 'on:browser:classes:level:',
  2884. category: 'instance creation',
  2885. fn: function (aClass, aBrowser, aCollection, anInteger){
  2886. var self=this;
  2887. return (function($rec){smalltalk.send($rec, "_theClass_", [aClass]);smalltalk.send($rec, "_browser_", [aBrowser]);smalltalk.send($rec, "_level_", [anInteger]);smalltalk.send($rec, "_getNodesFrom_", [aCollection]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  2888. return self;},
  2889. source: unescape('on%3A%20aClass%20browser%3A%20aBrowser%20classes%3A%20aCollection%20level%3A%20anInteger%0A%09%5Eself%20new%0A%09%09theClass%3A%20aClass%3B%0A%09%09browser%3A%20aBrowser%3B%0A%09%09level%3A%20anInteger%3B%0A%09%09getNodesFrom%3A%20aCollection%3B%0A%09%09yourself'),
  2890. messageSends: ["theClass:", "browser:", "level:", "getNodesFrom:", "yourself", "new"],
  2891. referencedClasses: []
  2892. }),
  2893. smalltalk.ClassesListNode.klass);
  2894. smalltalk.addClass('Debugger', smalltalk.TabWidget, ['error', 'selectedContext', 'sourceArea', 'ul'], 'IDE');
  2895. smalltalk.addMethod(
  2896. '_error',
  2897. smalltalk.method({
  2898. selector: 'error',
  2899. category: 'accessing',
  2900. fn: function (){
  2901. var self=this;
  2902. return self['@error'];
  2903. return self;},
  2904. source: unescape('error%0A%09%5Eerror'),
  2905. messageSends: [],
  2906. referencedClasses: []
  2907. }),
  2908. smalltalk.Debugger);
  2909. smalltalk.addMethod(
  2910. '_error_',
  2911. smalltalk.method({
  2912. selector: 'error:',
  2913. category: 'accessing',
  2914. fn: function (anError){
  2915. var self=this;
  2916. self['@error']=anError;
  2917. return self;},
  2918. source: unescape('error%3A%20anError%0A%09error%20%3A%3D%20anError'),
  2919. messageSends: [],
  2920. referencedClasses: []
  2921. }),
  2922. smalltalk.Debugger);
  2923. smalltalk.addMethod(
  2924. '_label',
  2925. smalltalk.method({
  2926. selector: 'label',
  2927. category: 'accessing',
  2928. fn: function (){
  2929. var self=this;
  2930. return unescape("%5BDebugger%5D");
  2931. return self;},
  2932. source: unescape('label%0A%09%5E%27%5BDebugger%5D%27'),
  2933. messageSends: [],
  2934. referencedClasses: []
  2935. }),
  2936. smalltalk.Debugger);
  2937. smalltalk.addMethod(
  2938. '_selectContext_',
  2939. smalltalk.method({
  2940. selector: 'selectContext:',
  2941. category: 'actions',
  2942. fn: function (aContext){
  2943. var self=this;
  2944. self['@selectedContext']=aContext;
  2945. smalltalk.send(self, "_updateContextsList", []);
  2946. smalltalk.send(self, "_updateSourceArea", []);
  2947. return self;},
  2948. source: unescape('selectContext%3A%20aContext%0A%09selectedContext%20%3A%3D%20aContext.%0A%09self%20updateContextsList.%0A%09self%20updateSourceArea'),
  2949. messageSends: ["updateContextsList", "updateSourceArea"],
  2950. referencedClasses: []
  2951. }),
  2952. smalltalk.Debugger);
  2953. smalltalk.addMethod(
  2954. '_renderBoxOn_',
  2955. smalltalk.method({
  2956. selector: 'renderBoxOn:',
  2957. category: 'rendering',
  2958. fn: function (html){
  2959. var self=this;
  2960. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  2961. return self;},
  2962. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderTopPanelOn%3A%20html%3B%0A%09renderBottomPanelOn%3A%20html'),
  2963. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  2964. referencedClasses: []
  2965. }),
  2966. smalltalk.Debugger);
  2967. smalltalk.addMethod(
  2968. '_renderTopPanelOn_',
  2969. smalltalk.method({
  2970. selector: 'renderTopPanelOn:',
  2971. category: 'rendering',
  2972. fn: function (html){
  2973. var self=this;
  2974. self['@selectedContext']=smalltalk.send(smalltalk.send(self, "_error", []), "_context", []);
  2975. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_class_", ["label"]);return smalltalk.send($rec, "_with_", [smalltalk.send(smalltalk.send(self, "_error", []), "_messageText", [])]);})(smalltalk.send(html, "_div", []));return self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column debugger contexts"]);return smalltalk.send($rec, "_with_", [(function(){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(smalltalk.send(self, "_error", []), "_context", []), html]);})]);})(smalltalk.send(html, "_ul", []));})]);})(smalltalk.send(html, "_div", []));
  2976. return self;},
  2977. source: unescape('renderTopPanelOn%3A%20html%0A%09selectedContext%20%3A%3D%20self%20error%20context.%0A%09html%20div%20%0A%09%09class%3A%20%27top%27%3B%20%0A%09%09with%3A%20%5B%0A%09%09%09html%20div%20%0A%09%09%09%09class%3A%20%27label%27%3B%0A%09%09%09%09with%3A%20self%20error%20messageText.%0A%09%20%20%20%20%09%09ul%20%3A%3D%20html%20ul%20%0A%09%09%09class%3A%20%27jt_column%20debugger%20contexts%27%3B%0A%09%09%09with%3A%20%5Bself%20renderContext%3A%20self%20error%20context%20on%3A%20html%5D%5D'),
  2978. messageSends: ["context", "error", "class:", "with:", "messageText", "div", "renderContext:on:", "ul"],
  2979. referencedClasses: []
  2980. }),
  2981. smalltalk.Debugger);
  2982. smalltalk.addMethod(
  2983. '_renderContext_on_',
  2984. smalltalk.method({
  2985. selector: 'renderContext:on:',
  2986. category: 'rendering',
  2987. fn: function (aContext, html){
  2988. var self=this;
  2989. var li=nil;
  2990. li=smalltalk.send(html, "_li", []);
  2991. smalltalk.send(smalltalk.send(self['@selectedContext'], "__eq", [aContext]), "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);
  2992. (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aContext, "_asString", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectContext_", [aContext]);})]);})(li);
  2993. smalltalk.send(smalltalk.send(aContext, "_home", []), "_ifNotNil_", [(function(){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(aContext, "_home", []), html]);})]);
  2994. return self;},
  2995. source: unescape('renderContext%3A%20aContext%20on%3A%20html%0A%09%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li.%0A%09selectedContext%20%3D%20aContext%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09li%20%0A%09%09with%3A%20aContext%20asString%3B%0A%09%09onClick%3A%20%5Bself%20selectContext%3A%20aContext%5D.%0A%09aContext%20home%20ifNotNil%3A%20%5Bself%20renderContext%3A%20aContext%20home%20on%3A%20html%5D'),
  2996. messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "asString", "onClick:", "selectContext:", "ifNotNil:", "home", "renderContext:on:"],
  2997. referencedClasses: []
  2998. }),
  2999. smalltalk.Debugger);
  3000. smalltalk.addMethod(
  3001. '_renderBottomPanelOn_',
  3002. smalltalk.method({
  3003. selector: 'renderBottomPanelOn:',
  3004. category: 'rendering',
  3005. fn: function (html){
  3006. var self=this;
  3007. (function($rec){smalltalk.send($rec, "_class_", ["jt_sourceCode"]);return smalltalk.send($rec, "_with_", [(function(){self['@sourceArea']=smalltalk.send(smalltalk.SourceArea, "_new", []);return smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);})]);})(smalltalk.send(html, "_div", []));
  3008. smalltalk.send(self, "_updateSourceArea", []);
  3009. return self;},
  3010. 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%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%09%20%20%20%20sourceArea%20renderOn%3A%20html%5D.%0A%20%20%20%20self%20updateSourceArea'),
  3011. messageSends: ["class:", "with:", "new", "renderOn:", "div", "updateSourceArea"],
  3012. referencedClasses: [smalltalk.SourceArea]
  3013. }),
  3014. smalltalk.Debugger);
  3015. smalltalk.addMethod(
  3016. '_canBeClosed',
  3017. smalltalk.method({
  3018. selector: 'canBeClosed',
  3019. category: 'testing',
  3020. fn: function (){
  3021. var self=this;
  3022. return true;
  3023. return self;},
  3024. source: unescape('canBeClosed%0A%20%20%20%20%5Etrue'),
  3025. messageSends: [],
  3026. referencedClasses: []
  3027. }),
  3028. smalltalk.Debugger);
  3029. smalltalk.addMethod(
  3030. '_updateContextsList',
  3031. smalltalk.method({
  3032. selector: 'updateContextsList',
  3033. category: 'updating',
  3034. fn: function (){
  3035. var self=this;
  3036. smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(smalltalk.send(self, "_error", []), "_context", []), html]);})]);
  3037. return self;},
  3038. source: unescape('updateContextsList%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20renderContext%3A%20self%20error%20context%20on%3A%20html%5D'),
  3039. messageSends: ["contents:", "renderContext:on:", "context", "error"],
  3040. referencedClasses: []
  3041. }),
  3042. smalltalk.Debugger);
  3043. smalltalk.addMethod(
  3044. '_updateSourceArea',
  3045. smalltalk.method({
  3046. selector: 'updateSourceArea',
  3047. category: 'updating',
  3048. fn: function (){
  3049. var self=this;
  3050. smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_class", []), "_methodAt_", [smalltalk.send(self['@selectedContext'], "_selector", [])]), "_source", [])]);
  3051. return self;},
  3052. source: unescape('updateSourceArea%0A%09%20sourceArea%20val%3A%20%28selectedContext%20receiver%20class%20methodAt%3A%20selectedContext%20selector%29%20source'),
  3053. messageSends: ["val:", "source", "methodAt:", "class", "receiver", "selector"],
  3054. referencedClasses: []
  3055. }),
  3056. smalltalk.Debugger);
  3057. smalltalk.addClass('DebugErrorHandler', smalltalk.ErrorHandler, [], 'IDE');
  3058. smalltalk.addMethod(
  3059. '_handleError_',
  3060. smalltalk.method({
  3061. selector: 'handleError:',
  3062. category: 'error handling',
  3063. fn: function (anError){
  3064. var self=this;
  3065. smalltalk.send((function(){return (function($rec){smalltalk.send($rec, "_error_", [anError]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(smalltalk.Debugger, "_new", []));}), "_on_do_", [smalltalk.Error, (function(error){return smalltalk.send(smalltalk.send(smalltalk.ErrorHandler, "_new", []), "_handleError_", [error]);})]);
  3066. return self;},
  3067. source: unescape('handleError%3A%20anError%0A%09%5BDebugger%20new%0A%09%09error%3A%20anError%3B%0A%09%09open%5D%20on%3A%20Error%20do%3A%20%5B%3Aerror%20%7C%0A%09%09%09ErrorHandler%20new%20handleError%3A%20error%5D'),
  3068. messageSends: ["on:do:", "error:", "open", "new", "handleError:"],
  3069. referencedClasses: [smalltalk.Debugger,smalltalk.Error,smalltalk.ErrorHandler]
  3070. }),
  3071. smalltalk.DebugErrorHandler);
  3072. smalltalk.addMethod(
  3073. '_initialize',
  3074. smalltalk.method({
  3075. selector: 'initialize',
  3076. category: 'initialization',
  3077. fn: function (){
  3078. var self=this;
  3079. smalltalk.send(self, "_register", []);
  3080. return self;},
  3081. source: unescape('initialize%0A%09self%20register'),
  3082. messageSends: ["register"],
  3083. referencedClasses: []
  3084. }),
  3085. smalltalk.DebugErrorHandler.klass);
  3086. smalltalk.addMethod(
  3087. '_inspect',
  3088. smalltalk.method({
  3089. selector: 'inspect',
  3090. category: '*IDE',
  3091. fn: function (){
  3092. var self=this;
  3093. (function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(smalltalk.Inspector, "_new", []));
  3094. return self;},
  3095. source: unescape('inspect%0A%09Inspector%20new%20%0A%09%09inspect%3A%20self%3B%0A%09%09open'),
  3096. messageSends: ["inspect:", "open", "new"],
  3097. referencedClasses: [smalltalk.Inspector]
  3098. }),
  3099. smalltalk.Object);
  3100. smalltalk.addMethod(
  3101. '_inspectOn_',
  3102. smalltalk.method({
  3103. selector: 'inspectOn:',
  3104. category: '*IDE',
  3105. fn: function (anInspector){
  3106. var self=this;
  3107. var variables=nil;
  3108. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  3109. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  3110. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  3111. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  3112. return self;},
  3113. 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%20allInstanceVariableNames%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'),
  3114. messageSends: ["new", "at:put:", "do:", "allInstanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  3115. referencedClasses: [smalltalk.Dictionary]
  3116. }),
  3117. smalltalk.Object);
  3118. smalltalk.addMethod(
  3119. '_inspectOn_',
  3120. smalltalk.method({
  3121. selector: 'inspectOn:',
  3122. category: '*IDE',
  3123. fn: function (anInspector){
  3124. var self=this;
  3125. var variables=nil;
  3126. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  3127. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  3128. smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
  3129. smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
  3130. smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
  3131. smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
  3132. smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
  3133. smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
  3134. smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
  3135. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  3136. return self;},
  3137. 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'),
  3138. messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
  3139. referencedClasses: [smalltalk.Dictionary]
  3140. }),
  3141. smalltalk.Date);
  3142. smalltalk.addMethod(
  3143. '_inspectOn_',
  3144. smalltalk.method({
  3145. selector: 'inspectOn:',
  3146. category: '*IDE',
  3147. fn: function (anInspector){
  3148. var self=this;
  3149. var variables=nil;
  3150. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  3151. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  3152. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
  3153. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  3154. return self;},
  3155. 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'),
  3156. messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
  3157. referencedClasses: [smalltalk.Dictionary]
  3158. }),
  3159. smalltalk.Collection);
  3160. smalltalk.addMethod(
  3161. '_inspectOn_',
  3162. smalltalk.method({
  3163. selector: 'inspectOn:',
  3164. category: '*IDE',
  3165. fn: function (anInspector){
  3166. var self=this;
  3167. var label=nil;
  3168. smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.SequenceableCollection);
  3169. 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", []);})]);
  3170. smalltalk.send(anInspector, "_setLabel_", [label]);
  3171. return self;},
  3172. 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'),
  3173. messageSends: ["inspectOn:", "ifTrue:ifFalse:", unescape("%3E"), "size", "printString", unescape("%2C"), "copyFrom:to:", "setLabel:"],
  3174. referencedClasses: []
  3175. }),
  3176. smalltalk.String);
  3177. smalltalk.addMethod(
  3178. '_inspectOn_',
  3179. smalltalk.method({
  3180. selector: 'inspectOn:',
  3181. category: '*IDE',
  3182. fn: function (anInspector){
  3183. var self=this;
  3184. var variables=nil;
  3185. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  3186. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  3187. smalltalk.send(variables, "_at_put_", [unescape("%23home"), smalltalk.send(self, "_home", [])]);
  3188. smalltalk.send(variables, "_at_put_", [unescape("%23receiver"), smalltalk.send(self, "_receiver", [])]);
  3189. smalltalk.send(variables, "_at_put_", [unescape("%23selector"), smalltalk.send(self, "_selector", [])]);
  3190. smalltalk.send(variables, "_at_put_", [unescape("%23temps"), smalltalk.send(self, "_temps", [])]);
  3191. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  3192. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  3193. return self;},
  3194. 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%23home%27%20put%3A%20self%20home.%0A%09variables%20at%3A%20%27%23receiver%27%20put%3A%20self%20receiver.%0A%09variables%20at%3A%20%27%23selector%27%20put%3A%20self%20selector.%0A%09variables%20at%3A%20%27%23temps%27%20put%3A%20self%20temps.%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'),
  3195. messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  3196. referencedClasses: [smalltalk.Dictionary]
  3197. }),
  3198. smalltalk.MethodContext);
  3199. smalltalk.addMethod(
  3200. '_inspectOn_',
  3201. smalltalk.method({
  3202. selector: 'inspectOn:',
  3203. category: '*IDE',
  3204. fn: function (anInspector){
  3205. var self=this;
  3206. var variables=nil;
  3207. variables=smalltalk.send(smalltalk.Dictionary, "_new", []);
  3208. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  3209. smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]);
  3210. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]);
  3211. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  3212. return self;},
  3213. 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'),
  3214. messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
  3215. referencedClasses: [smalltalk.Dictionary]
  3216. }),
  3217. smalltalk.Dictionary);