2
0

IDE.deploy.js 182 KB

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