2
0

IDE.deploy.js 165 KB

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