2
0

IDE.deploy.js 178 KB

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