2
0

IDE.deploy.js 179 KB

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