2
0

IDE.js 279 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808
  1. smalltalk.addClass('TabManager', smalltalk.Widget, ['selectedTab', 'tabs', 'opened', 'ul', 'input'], 'IDE');
  2. smalltalk.addMethod(
  3. unescape('_tabs'),
  4. smalltalk.method({
  5. selector: unescape('tabs'),
  6. category: 'accessing',
  7. fn: function (){
  8. var self=this;
  9. return (($receiver = self['@tabs']) == nil || $receiver == undefined) ? (function(){return self['@tabs']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  10. return self;},
  11. args: [],
  12. source: unescape('tabs%0A%20%20%20%20%5Etabs%20ifNil%3A%20%5Btabs%20%3A%3D%20Array%20new%5D'),
  13. messageSends: ["ifNil:", "new"],
  14. referencedClasses: [smalltalk.Array]
  15. }),
  16. smalltalk.TabManager);
  17. smalltalk.addMethod(
  18. unescape('_labelFor_'),
  19. smalltalk.method({
  20. selector: unescape('labelFor%3A'),
  21. category: 'accessing',
  22. fn: function (aWidget){
  23. var self=this;
  24. var label=nil;
  25. var maxSize=nil;
  26. maxSize=(15);
  27. label=smalltalk.send(smalltalk.send(aWidget, "_label", []), "_copyFrom_to_", [(0), smalltalk.send(smalltalk.send(smalltalk.send(aWidget, "_label", []), "_size", []), "_min_", [maxSize])]);
  28. (($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", ["..."]);})]);
  29. return label;
  30. return self;},
  31. args: ["aWidget"],
  32. source: unescape('labelFor%3A%20aWidget%0A%09%7C%20label%20maxSize%20%7C%0A%09maxSize%20%3A%3D%2015.%0A%09label%20%3A%3D%20aWidget%20label%20copyFrom%3A%200%20to%3A%20%28aWidget%20label%20size%20min%3A%20maxSize%29.%0A%09aWidget%20label%20size%20%3E%20maxSize%20ifTrue%3A%20%5B%0A%09%09label%20%3A%3D%20label%2C%20%27...%27%5D.%0A%09%5Elabel'),
  33. messageSends: ["copyFrom:to:", "label", "min:", "size", "ifTrue:", unescape("%3E"), unescape("%2C")],
  34. referencedClasses: []
  35. }),
  36. smalltalk.TabManager);
  37. smalltalk.addMethod(
  38. unescape('_updateBodyMargin'),
  39. smalltalk.method({
  40. selector: unescape('updateBodyMargin'),
  41. category: 'actions',
  42. fn: function (){
  43. var self=this;
  44. smalltalk.send(self, "_setBodyMargin_", [smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_height", [])]);
  45. return self;},
  46. args: [],
  47. source: unescape('updateBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%20%27%23jtalk%27%20asJQuery%20height'),
  48. messageSends: ["setBodyMargin:", "height", "asJQuery"],
  49. referencedClasses: []
  50. }),
  51. smalltalk.TabManager);
  52. smalltalk.addMethod(
  53. unescape('_updatePosition'),
  54. smalltalk.method({
  55. selector: unescape('updatePosition'),
  56. category: 'actions',
  57. fn: function (){
  58. var self=this;
  59. jQuery('#jtalk').css('top', '').css('bottom', '0px');
  60. return self;},
  61. args: [],
  62. source: unescape('updatePosition%0A%20%20%20%20%3CjQuery%28%27%23jtalk%27%29.css%28%27top%27%2C%20%27%27%29.css%28%27bottom%27%2C%20%270px%27%29%3E'),
  63. messageSends: [],
  64. referencedClasses: []
  65. }),
  66. smalltalk.TabManager);
  67. smalltalk.addMethod(
  68. unescape('_removeBodyMargin'),
  69. smalltalk.method({
  70. selector: unescape('removeBodyMargin'),
  71. category: 'actions',
  72. fn: function (){
  73. var self=this;
  74. smalltalk.send(self, "_setBodyMargin_", [(0)]);
  75. return self;},
  76. args: [],
  77. source: unescape('removeBodyMargin%0A%20%20%20%20self%20setBodyMargin%3A%200'),
  78. messageSends: ["setBodyMargin:"],
  79. referencedClasses: []
  80. }),
  81. smalltalk.TabManager);
  82. smalltalk.addMethod(
  83. unescape('_setBodyMargin_'),
  84. smalltalk.method({
  85. selector: unescape('setBodyMargin%3A'),
  86. category: 'actions',
  87. fn: function (anInteger){
  88. var self=this;
  89. smalltalk.send(smalltalk.send(".jtalkBody", "_asJQuery", []), "_cssAt_put_", [unescape("margin-bottom"), smalltalk.send(smalltalk.send(anInteger, "_asString", []), "__comma", ["px"])]);
  90. return self;},
  91. args: ["anInteger"],
  92. source: unescape('setBodyMargin%3A%20anInteger%0A%20%20%20%20%27.jtalkBody%27%20asJQuery%20cssAt%3A%20%27margin-bottom%27%20put%3A%20anInteger%20asString%2C%20%27px%27'),
  93. messageSends: ["cssAt:put:", "asJQuery", unescape("%2C"), "asString"],
  94. referencedClasses: []
  95. }),
  96. smalltalk.TabManager);
  97. smalltalk.addMethod(
  98. unescape('_onResize_'),
  99. smalltalk.method({
  100. selector: unescape('onResize%3A'),
  101. category: 'actions',
  102. fn: function (aBlock){
  103. var self=this;
  104. jQuery('#jtalk').resizable({
  105. handles: 'n',
  106. resize: aBlock,
  107. minHeight: 230
  108. });
  109. return self;},
  110. args: ["aBlock"],
  111. source: unescape('onResize%3A%20aBlock%0A%20%20%20%20%3CjQuery%28%27%23jtalk%27%29.resizable%28%7B%0A%09handles%3A%20%27n%27%2C%20%0A%09resize%3A%20aBlock%2C%0A%09minHeight%3A%20230%0A%7D%29%3E'),
  112. messageSends: [],
  113. referencedClasses: []
  114. }),
  115. smalltalk.TabManager);
  116. smalltalk.addMethod(
  117. unescape('_onWindowResize_'),
  118. smalltalk.method({
  119. selector: unescape('onWindowResize%3A'),
  120. category: 'actions',
  121. fn: function (aBlock){
  122. var self=this;
  123. jQuery(window).resize(aBlock);
  124. return self;},
  125. args: ["aBlock"],
  126. source: unescape('onWindowResize%3A%20aBlock%0A%20%20%20%20%3CjQuery%28window%29.resize%28aBlock%29%3E'),
  127. messageSends: [],
  128. referencedClasses: []
  129. }),
  130. smalltalk.TabManager);
  131. smalltalk.addMethod(
  132. unescape('_open'),
  133. smalltalk.method({
  134. selector: unescape('open'),
  135. category: 'actions',
  136. fn: function (){
  137. var self=this;
  138. (($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;})]);
  139. return self;},
  140. args: [],
  141. source: unescape('open%0A%20%20%20%20opened%20ifFalse%3A%20%5B%0A%09%27body%27%20asJQuery%20addClass%3A%20%27jtalkBody%27.%0A%09%27%23jtalk%27%20asJQuery%20show.%0A%09ul%20asJQuery%20show.%0A%09self%20updateBodyMargin.%0A%09selectedTab%20show.%0A%09opened%20%3A%3D%20true%5D'),
  142. messageSends: ["ifFalse:", "addClass:", "asJQuery", "show", "updateBodyMargin"],
  143. referencedClasses: []
  144. }),
  145. smalltalk.TabManager);
  146. smalltalk.addMethod(
  147. unescape('_close'),
  148. smalltalk.method({
  149. selector: unescape('close'),
  150. category: 'actions',
  151. fn: function (){
  152. var self=this;
  153. (($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;})]);
  154. return self;},
  155. args: [],
  156. source: unescape('close%0A%20%20%20%20opened%20ifTrue%3A%20%5B%0A%09%27%23jtalk%27%20asJQuery%20hide.%0A%09ul%20asJQuery%20hide.%0A%09selectedTab%20hide.%0A%09self%20removeBodyMargin.%0A%09%27body%27%20asJQuery%20removeClass%3A%20%27jtalkBody%27.%0A%09opened%20%3A%3D%20false%5D'),
  157. messageSends: ["ifTrue:", "hide", "asJQuery", "removeBodyMargin", "removeClass:"],
  158. referencedClasses: []
  159. }),
  160. smalltalk.TabManager);
  161. smalltalk.addMethod(
  162. unescape('_newBrowserTab'),
  163. smalltalk.method({
  164. selector: unescape('newBrowserTab'),
  165. category: 'actions',
  166. fn: function (){
  167. var self=this;
  168. smalltalk.send((smalltalk.Browser || Browser), "_open", []);
  169. return self;},
  170. args: [],
  171. source: unescape('newBrowserTab%0A%20%20%20%20Browser%20open'),
  172. messageSends: ["open"],
  173. referencedClasses: []
  174. }),
  175. smalltalk.TabManager);
  176. smalltalk.addMethod(
  177. unescape('_selectTab_'),
  178. smalltalk.method({
  179. selector: unescape('selectTab%3A'),
  180. category: 'actions',
  181. fn: function (aWidget){
  182. var self=this;
  183. smalltalk.send(self, "_open", []);
  184. self['@selectedTab']=aWidget;
  185. smalltalk.send(smalltalk.send(self, "_tabs", []), "_do_", [(function(each){return smalltalk.send(each, "_hide", []);})]);
  186. smalltalk.send(aWidget, "_show", []);
  187. smalltalk.send(self, "_update", []);
  188. return self;},
  189. args: ["aWidget"],
  190. source: unescape('selectTab%3A%20aWidget%0A%20%20%20%20self%20open.%0A%20%20%20%20selectedTab%20%3A%3D%20aWidget.%0A%20%20%20%20self%20tabs%20do%3A%20%5B%3Aeach%20%7C%0A%09each%20hide%5D.%0A%20%20%20%20aWidget%20show.%0A%09%0A%20%20%20%20self%20update'),
  191. messageSends: ["open", "do:", "tabs", "hide", "show", "update"],
  192. referencedClasses: []
  193. }),
  194. smalltalk.TabManager);
  195. smalltalk.addMethod(
  196. unescape('_closeTab_'),
  197. smalltalk.method({
  198. selector: unescape('closeTab%3A'),
  199. category: 'actions',
  200. fn: function (aWidget){
  201. var self=this;
  202. smalltalk.send(self, "_removeTab_", [aWidget]);
  203. smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
  204. smalltalk.send(aWidget, "_remove", []);
  205. smalltalk.send(self, "_update", []);
  206. return self;},
  207. args: ["aWidget"],
  208. source: unescape('closeTab%3A%20aWidget%0A%20%20%20%20self%20removeTab%3A%20aWidget.%0A%20%20%20%20self%20selectTab%3A%20self%20tabs%20last.%0A%20%20%20%20aWidget%20remove.%0A%20%20%20%20self%20update'),
  209. messageSends: ["removeTab:", "selectTab:", "last", "tabs", "remove", "update"],
  210. referencedClasses: []
  211. }),
  212. smalltalk.TabManager);
  213. smalltalk.addMethod(
  214. unescape('_search_'),
  215. smalltalk.method({
  216. selector: unescape('search%3A'),
  217. category: 'actions',
  218. fn: function (aString){
  219. var self=this;
  220. var searchedClass=nil;
  221. searchedClass=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_at_", [aString]);
  222. (($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]);})]);
  223. return self;},
  224. args: ["aString"],
  225. source: unescape('search%3A%20aString%0A%09%7C%20searchedClass%20%7C%0A%09searchedClass%20%3A%3D%20Smalltalk%20current%20at%3A%20aString.%0A%09%09searchedClass%20isClass%0A%09%09%09ifTrue%3A%20%5BBrowser%20openOn%3A%20searchedClass%5D%0A%09%09%09ifFalse%3A%20%5BReferencesBrowser%20search%3A%20aString%5D'),
  226. messageSends: ["at:", "current", "ifTrue:ifFalse:", "isClass", "openOn:", "search:"],
  227. referencedClasses: [smalltalk.Smalltalk]
  228. }),
  229. smalltalk.TabManager);
  230. smalltalk.addMethod(
  231. unescape('_addTab_'),
  232. smalltalk.method({
  233. selector: unescape('addTab%3A'),
  234. category: 'adding/Removing',
  235. fn: function (aWidget){
  236. var self=this;
  237. smalltalk.send(smalltalk.send(self, "_tabs", []), "_add_", [aWidget]);
  238. smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_append_", [aWidget]);
  239. smalltalk.send(aWidget, "_hide", []);
  240. return self;},
  241. args: ["aWidget"],
  242. source: unescape('addTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20add%3A%20aWidget.%0A%20%20%20%20%27%23jtalk%27%20asJQuery%20append%3A%20aWidget.%0A%20%20%20%20aWidget%20hide'),
  243. messageSends: ["add:", "tabs", "append:", "asJQuery", "hide"],
  244. referencedClasses: []
  245. }),
  246. smalltalk.TabManager);
  247. smalltalk.addMethod(
  248. unescape('_removeTab_'),
  249. smalltalk.method({
  250. selector: unescape('removeTab%3A'),
  251. category: 'adding/Removing',
  252. fn: function (aWidget){
  253. var self=this;
  254. smalltalk.send(smalltalk.send(self, "_tabs", []), "_remove_", [aWidget]);
  255. smalltalk.send(self, "_update", []);
  256. return self;},
  257. args: ["aWidget"],
  258. source: unescape('removeTab%3A%20aWidget%0A%20%20%20%20self%20tabs%20remove%3A%20aWidget.%0A%20%20%20%20self%20update'),
  259. messageSends: ["remove:", "tabs", "update"],
  260. referencedClasses: []
  261. }),
  262. smalltalk.TabManager);
  263. smalltalk.addMethod(
  264. unescape('_initialize'),
  265. smalltalk.method({
  266. selector: unescape('initialize'),
  267. category: 'initialization',
  268. fn: function (){
  269. var self=this;
  270. smalltalk.send(self, "_initialize", [], smalltalk.Widget);
  271. self['@opened']=true;
  272. (function($rec){smalltalk.send($rec, "_append_", [(function(html){return smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["jtalk"]);})]);return smalltalk.send($rec, "_addClass_", ["jtalkBody"]);})(smalltalk.send("body", "_asJQuery", []));
  273. smalltalk.send(smalltalk.send(unescape("%23jtalk"), "_asJQuery", []), "_append_", [self]);
  274. (function($rec){smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.Transcript || Transcript), "_current", [])]);smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.Workspace || Workspace), "_new", [])]);return smalltalk.send($rec, "_addTab_", [smalltalk.send((smalltalk.TestRunner || TestRunner), "_new", [])]);})(self);
  275. smalltalk.send(self, "_selectTab_", [smalltalk.send(smalltalk.send(self, "_tabs", []), "_last", [])]);
  276. (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);
  277. return self;},
  278. args: [],
  279. source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20opened%20%3A%3D%20true.%0A%20%20%20%20%27body%27%20asJQuery%20%0A%09append%3A%20%5B%3Ahtml%20%7C%20html%20div%20id%3A%20%27jtalk%27%5D%3B%0A%09addClass%3A%20%27jtalkBody%27.%0A%20%20%20%20%27%23jtalk%27%20asJQuery%20append%3A%20self.%0A%20%20%20%20self%20%0A%09addTab%3A%20Transcript%20current%3B%0A%09addTab%3A%20Workspace%20new%3B%0A%09addTab%3A%20TestRunner%20new.%0A%20%20%20%20self%20selectTab%3A%20self%20tabs%20last.%0A%20%20%20%20self%20%0A%09onResize%3A%20%5Bself%20updateBodyMargin%3B%20updatePosition%5D%3B%0A%09onWindowResize%3A%20%5Bself%20updatePosition%5D'),
  280. messageSends: ["initialize", "append:", "id:", "div", "addClass:", "asJQuery", "addTab:", "current", "new", "selectTab:", "last", "tabs", "onResize:", "updateBodyMargin", "updatePosition", "onWindowResize:"],
  281. referencedClasses: []
  282. }),
  283. smalltalk.TabManager);
  284. smalltalk.addMethod(
  285. unescape('_renderOn_'),
  286. smalltalk.method({
  287. selector: unescape('renderOn%3A'),
  288. category: 'rendering',
  289. fn: function (html){
  290. var self=this;
  291. smalltalk.send(smalltalk.send(html, "_div", []), "_id_", ["logo"]);
  292. smalltalk.send(self, "_renderToolbarOn_", [html]);
  293. self['@ul']=(function($rec){smalltalk.send($rec, "_id_", ["jtalkTabs"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
  294. smalltalk.send(self, "_renderTabs", []);
  295. return self;},
  296. args: ["html"],
  297. source: unescape('renderOn%3A%20html%0A%09html%20div%20id%3A%20%27logo%27.%0A%09self%20renderToolbarOn%3A%20html.%0A%09ul%20%3A%3D%20html%20ul%0A%09%09id%3A%20%27jtalkTabs%27%3B%0A%09%09yourself.%0A%09self%20renderTabs'),
  298. messageSends: ["id:", "div", "renderToolbarOn:", "yourself", "ul", "renderTabs"],
  299. referencedClasses: []
  300. }),
  301. smalltalk.TabManager);
  302. smalltalk.addMethod(
  303. unescape('_renderTabFor_on_'),
  304. smalltalk.method({
  305. selector: unescape('renderTabFor%3Aon%3A'),
  306. category: 'rendering',
  307. fn: function (aWidget, html){
  308. var self=this;
  309. var li=nil;
  310. li=smalltalk.send(html, "_li", []);
  311. (($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"]);})]);
  312. (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);
  313. return self;},
  314. args: ["aWidget", "html"],
  315. source: unescape('renderTabFor%3A%20aWidget%20on%3A%20html%0A%09%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20aWidget%20ifTrue%3A%20%5B%0A%09li%20class%3A%20%27selected%27%5D.%0A%09li%20with%3A%20%5B%0A%09%09html%20span%20class%3A%20%27ltab%27.%0A%09%09html%20span%0A%09%09%09class%3A%20%27mtab%27%3B%0A%09%09%09with%3A%20%5B%0A%09%09%09%09aWidget%20canBeClosed%20ifTrue%3A%20%5B%0A%09%09%09%09%09html%20span%20%0A%09%09%09%09%09%09class%3A%20%27close%27%3B%0A%09%09%09%09%09%09with%3A%20%27x%27%3B%0A%09%09%09%09%09onClick%3A%20%5Bself%20closeTab%3A%20aWidget%5D%5D.%0A%09%09%09html%20span%20with%3A%20%28self%20labelFor%3A%20aWidget%29%5D.%0A%09%09html%20span%20class%3A%20%27rtab%27%5D%3B%0A%09onClick%3A%20%5Bself%20selectTab%3A%20aWidget%5D'),
  316. messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "span", "canBeClosed", "onClick:", "closeTab:", "labelFor:", "selectTab:"],
  317. referencedClasses: []
  318. }),
  319. smalltalk.TabManager);
  320. smalltalk.addMethod(
  321. unescape('_renderTabs'),
  322. smalltalk.method({
  323. selector: unescape('renderTabs'),
  324. category: 'rendering',
  325. fn: function (){
  326. var self=this;
  327. 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", []));})]);
  328. return self;},
  329. args: [],
  330. source: unescape('renderTabs%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20self%20tabs%20do%3A%20%5B%3Aeach%20%7C%0A%09%09self%20renderTabFor%3A%20each%20on%3A%20html%5D.%0A%09%20%20%20%20html%20li%0A%09%09class%3A%20%27newtab%27%3B%0A%09%09with%3A%20%5B%0A%09%09%09html%20span%20class%3A%20%27ltab%27.%0A%09%09%09html%20span%20class%3A%20%27mtab%27%3B%20with%3A%20%27%20+%20%27.%0A%09%09%09html%20span%20class%3A%20%27rtab%27%5D%3B%0A%09%09onClick%3A%20%5Bself%20newBrowserTab%5D%5D'),
  331. messageSends: ["contents:", "do:", "tabs", "renderTabFor:on:", "class:", "with:", "span", "onClick:", "newBrowserTab", "li"],
  332. referencedClasses: []
  333. }),
  334. smalltalk.TabManager);
  335. smalltalk.addMethod(
  336. unescape('_renderToolbarOn_'),
  337. smalltalk.method({
  338. selector: unescape('renderToolbarOn%3A'),
  339. category: 'rendering',
  340. fn: function (html){
  341. var self=this;
  342. (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", []));
  343. return self;},
  344. args: ["html"],
  345. source: unescape('renderToolbarOn%3A%20html%0A%09html%20div%20%0A%09%09id%3A%20%27jt_toolbar%27%3B%0A%09%09with%3A%20%5B%0A%09%09%09input%20%3A%3D%20html%20input%20%0A%09%09%09%09class%3A%20%27implementors%27%3B%0A%09%09%09%09yourself.%0A%09%09%09input%20onKeyPress%3A%20%5B%3Aevent%20%7C%0A%09%09%09%09event%20keyCode%20%3D%2013%20ifTrue%3A%20%5B%0A%09%09%09%09self%20search%3A%20input%20asJQuery%20val%5D%5D.%0A%09%09%09html%20div%20id%3A%20%27jt_close%27%3B%20onClick%3A%20%5Bself%20close%5D%5D'),
  346. messageSends: ["id:", "with:", "class:", "yourself", "input", "onKeyPress:", "ifTrue:", unescape("%3D"), "keyCode", "search:", "val", "asJQuery", "onClick:", "close", "div"],
  347. referencedClasses: []
  348. }),
  349. smalltalk.TabManager);
  350. smalltalk.addMethod(
  351. unescape('_update'),
  352. smalltalk.method({
  353. selector: unescape('update'),
  354. category: 'updating',
  355. fn: function (){
  356. var self=this;
  357. smalltalk.send(self, "_renderTabs", []);
  358. return self;},
  359. args: [],
  360. source: unescape('update%0A%09self%20renderTabs'),
  361. messageSends: ["renderTabs"],
  362. referencedClasses: []
  363. }),
  364. smalltalk.TabManager);
  365. smalltalk.TabManager.klass.iVarNames = ['current'];
  366. smalltalk.addMethod(
  367. unescape('_current'),
  368. smalltalk.method({
  369. selector: unescape('current'),
  370. category: 'instance creation',
  371. fn: function (){
  372. var self=this;
  373. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.Widget.klass);})() : $receiver;
  374. return self;},
  375. args: [],
  376. source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'),
  377. messageSends: ["ifNil:", "new"],
  378. referencedClasses: []
  379. }),
  380. smalltalk.TabManager.klass);
  381. smalltalk.addMethod(
  382. unescape('_new'),
  383. smalltalk.method({
  384. selector: unescape('new'),
  385. category: 'instance creation',
  386. fn: function (){
  387. var self=this;
  388. smalltalk.send(self, "_shouldNotImplement", []);
  389. return self;},
  390. args: [],
  391. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  392. messageSends: ["shouldNotImplement"],
  393. referencedClasses: []
  394. }),
  395. smalltalk.TabManager.klass);
  396. smalltalk.addClass('TabWidget', smalltalk.Widget, ['div'], 'IDE');
  397. smalltalk.addMethod(
  398. unescape('_label'),
  399. smalltalk.method({
  400. selector: unescape('label'),
  401. category: 'accessing',
  402. fn: function (){
  403. var self=this;
  404. smalltalk.send(self, "_subclassResponsibility", []);
  405. return self;},
  406. args: [],
  407. source: unescape('label%0A%20%20%20%20self%20subclassResponsibility'),
  408. messageSends: ["subclassResponsibility"],
  409. referencedClasses: []
  410. }),
  411. smalltalk.TabWidget);
  412. smalltalk.addMethod(
  413. unescape('_open'),
  414. smalltalk.method({
  415. selector: unescape('open'),
  416. category: 'actions',
  417. fn: function (){
  418. var self=this;
  419. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_addTab_", [self]);
  420. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_selectTab_", [self]);
  421. return self;},
  422. args: [],
  423. source: unescape('open%0A%20%20%20%20TabManager%20current%20addTab%3A%20self.%0A%20%20%20%20TabManager%20current%20selectTab%3A%20self'),
  424. messageSends: ["addTab:", "current", "selectTab:"],
  425. referencedClasses: [smalltalk.TabManager]
  426. }),
  427. smalltalk.TabWidget);
  428. smalltalk.addMethod(
  429. unescape('_show'),
  430. smalltalk.method({
  431. selector: unescape('show'),
  432. category: 'actions',
  433. fn: function (){
  434. var self=this;
  435. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_show", []);
  436. return self;},
  437. args: [],
  438. source: unescape('show%0A%09div%20asJQuery%20show'),
  439. messageSends: ["show", "asJQuery"],
  440. referencedClasses: []
  441. }),
  442. smalltalk.TabWidget);
  443. smalltalk.addMethod(
  444. unescape('_hide'),
  445. smalltalk.method({
  446. selector: unescape('hide'),
  447. category: 'actions',
  448. fn: function (){
  449. var self=this;
  450. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_hide", []);
  451. return self;},
  452. args: [],
  453. source: unescape('hide%0A%09div%20asJQuery%20hide'),
  454. messageSends: ["hide", "asJQuery"],
  455. referencedClasses: []
  456. }),
  457. smalltalk.TabWidget);
  458. smalltalk.addMethod(
  459. unescape('_remove'),
  460. smalltalk.method({
  461. selector: unescape('remove'),
  462. category: 'actions',
  463. fn: function (){
  464. var self=this;
  465. smalltalk.send(smalltalk.send(self['@div'], "_asJQuery", []), "_remove", []);
  466. return self;},
  467. args: [],
  468. source: unescape('remove%0A%09div%20asJQuery%20remove'),
  469. messageSends: ["remove", "asJQuery"],
  470. referencedClasses: []
  471. }),
  472. smalltalk.TabWidget);
  473. smalltalk.addMethod(
  474. unescape('_close'),
  475. smalltalk.method({
  476. selector: unescape('close'),
  477. category: 'actions',
  478. fn: function (){
  479. var self=this;
  480. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_closeTab_", [self]);
  481. return self;},
  482. args: [],
  483. source: unescape('close%0A%20%20%20%20TabManager%20current%20closeTab%3A%20self'),
  484. messageSends: ["closeTab:", "current"],
  485. referencedClasses: [smalltalk.TabManager]
  486. }),
  487. smalltalk.TabWidget);
  488. smalltalk.addMethod(
  489. unescape('_renderOn_'),
  490. smalltalk.method({
  491. selector: unescape('renderOn%3A'),
  492. category: 'rendering',
  493. fn: function (html){
  494. var self=this;
  495. self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["jtalkTool"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []));
  496. smalltalk.send(self, "_renderTab", []);
  497. return self;},
  498. args: ["html"],
  499. source: unescape('renderOn%3A%20html%0A%09div%20%3A%3D%20html%20div%0A%09%09class%3A%20%27jtalkTool%27%3B%0A%09%09yourself.%0A%09self%20renderTab'),
  500. messageSends: ["class:", "yourself", "div", "renderTab"],
  501. referencedClasses: []
  502. }),
  503. smalltalk.TabWidget);
  504. smalltalk.addMethod(
  505. unescape('_renderBoxOn_'),
  506. smalltalk.method({
  507. selector: unescape('renderBoxOn%3A'),
  508. category: 'rendering',
  509. fn: function (html){
  510. var self=this;
  511. return self;},
  512. args: ["html"],
  513. source: unescape('renderBoxOn%3A%20html'),
  514. messageSends: [],
  515. referencedClasses: []
  516. }),
  517. smalltalk.TabWidget);
  518. smalltalk.addMethod(
  519. unescape('_renderButtonsOn_'),
  520. smalltalk.method({
  521. selector: unescape('renderButtonsOn%3A'),
  522. category: 'rendering',
  523. fn: function (html){
  524. var self=this;
  525. return self;},
  526. args: ["html"],
  527. source: unescape('renderButtonsOn%3A%20html'),
  528. messageSends: [],
  529. referencedClasses: []
  530. }),
  531. smalltalk.TabWidget);
  532. smalltalk.addMethod(
  533. unescape('_update'),
  534. smalltalk.method({
  535. selector: unescape('update'),
  536. category: 'rendering',
  537. fn: function (){
  538. var self=this;
  539. smalltalk.send(self, "_renderTab", []);
  540. return self;},
  541. args: [],
  542. source: unescape('update%0A%09self%20renderTab'),
  543. messageSends: ["renderTab"],
  544. referencedClasses: []
  545. }),
  546. smalltalk.TabWidget);
  547. smalltalk.addMethod(
  548. unescape('_renderTab'),
  549. smalltalk.method({
  550. selector: unescape('renderTab'),
  551. category: 'rendering',
  552. fn: function (){
  553. var self=this;
  554. 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", []));})]);
  555. return self;},
  556. args: [],
  557. source: unescape('renderTab%0A%09div%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20html%20div%0A%09%09class%3A%20%27jt_box%27%3B%0A%09%09with%3A%20%5Bself%20renderBoxOn%3A%20html%5D.%0A%09%20%20%20%20html%20div%0A%09%09class%3A%20%27jt_buttons%27%3B%0A%09%09with%3A%20%5Bself%20renderButtonsOn%3A%20html%5D%5D'),
  558. messageSends: ["contents:", "class:", "with:", "renderBoxOn:", "div", "renderButtonsOn:"],
  559. referencedClasses: []
  560. }),
  561. smalltalk.TabWidget);
  562. smalltalk.addMethod(
  563. unescape('_canBeClosed'),
  564. smalltalk.method({
  565. selector: unescape('canBeClosed'),
  566. category: 'testing',
  567. fn: function (){
  568. var self=this;
  569. return false;
  570. return self;},
  571. args: [],
  572. source: unescape('canBeClosed%0A%20%20%20%20%5Efalse'),
  573. messageSends: [],
  574. referencedClasses: []
  575. }),
  576. smalltalk.TabWidget);
  577. smalltalk.addMethod(
  578. unescape('_open'),
  579. smalltalk.method({
  580. selector: unescape('open'),
  581. category: 'instance creation',
  582. fn: function (){
  583. var self=this;
  584. return smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  585. return self;},
  586. args: [],
  587. source: unescape('open%0A%20%20%20%20%5Eself%20new%20open'),
  588. messageSends: ["open", "new"],
  589. referencedClasses: []
  590. }),
  591. smalltalk.TabWidget.klass);
  592. smalltalk.addClass('Workspace', smalltalk.TabWidget, ['sourceArea'], 'IDE');
  593. smalltalk.addMethod(
  594. unescape('_label'),
  595. smalltalk.method({
  596. selector: unescape('label'),
  597. category: 'accessing',
  598. fn: function (){
  599. var self=this;
  600. return "Workspace";
  601. return self;},
  602. args: [],
  603. source: unescape('label%0A%20%20%20%20%5E%27Workspace%27'),
  604. messageSends: [],
  605. referencedClasses: []
  606. }),
  607. smalltalk.Workspace);
  608. smalltalk.addMethod(
  609. unescape('_clearWorkspace'),
  610. smalltalk.method({
  611. selector: unescape('clearWorkspace'),
  612. category: 'actions',
  613. fn: function (){
  614. var self=this;
  615. smalltalk.send(self['@sourceArea'], "_clear", []);
  616. return self;},
  617. args: [],
  618. source: unescape('clearWorkspace%0A%20%20%20%20sourceArea%20clear'),
  619. messageSends: ["clear"],
  620. referencedClasses: []
  621. }),
  622. smalltalk.Workspace);
  623. smalltalk.addMethod(
  624. unescape('_doIt'),
  625. smalltalk.method({
  626. selector: unescape('doIt'),
  627. category: 'actions',
  628. fn: function (){
  629. var self=this;
  630. smalltalk.send(self['@sourceArea'], "_doIt", []);
  631. return self;},
  632. args: [],
  633. source: unescape('doIt%0A%20%20%20sourceArea%20doIt'),
  634. messageSends: ["doIt"],
  635. referencedClasses: []
  636. }),
  637. smalltalk.Workspace);
  638. smalltalk.addMethod(
  639. unescape('_printIt'),
  640. smalltalk.method({
  641. selector: unescape('printIt'),
  642. category: 'actions',
  643. fn: function (){
  644. var self=this;
  645. smalltalk.send(self['@sourceArea'], "_printIt", []);
  646. return self;},
  647. args: [],
  648. source: unescape('printIt%0A%09sourceArea%20printIt'),
  649. messageSends: ["printIt"],
  650. referencedClasses: []
  651. }),
  652. smalltalk.Workspace);
  653. smalltalk.addMethod(
  654. unescape('_inspectIt'),
  655. smalltalk.method({
  656. selector: unescape('inspectIt'),
  657. category: 'actions',
  658. fn: function (){
  659. var self=this;
  660. smalltalk.send(self['@sourceArea'], "_inspectIt", []);
  661. return self;},
  662. args: [],
  663. source: unescape('inspectIt%0A%20%20%20%20sourceArea%20inspectIt'),
  664. messageSends: ["inspectIt"],
  665. referencedClasses: []
  666. }),
  667. smalltalk.Workspace);
  668. smalltalk.addMethod(
  669. unescape('_fileIn'),
  670. smalltalk.method({
  671. selector: unescape('fileIn'),
  672. category: 'actions',
  673. fn: function (){
  674. var self=this;
  675. smalltalk.send(self['@sourceArea'], "_fileIn", []);
  676. return self;},
  677. args: [],
  678. source: unescape('fileIn%0A%20%20%20%20sourceArea%20fileIn'),
  679. messageSends: ["fileIn"],
  680. referencedClasses: []
  681. }),
  682. smalltalk.Workspace);
  683. smalltalk.addMethod(
  684. unescape('_renderBoxOn_'),
  685. smalltalk.method({
  686. selector: unescape('renderBoxOn%3A'),
  687. category: 'rendering',
  688. fn: function (html){
  689. var self=this;
  690. self['@sourceArea']=smalltalk.send((smalltalk.SourceArea || SourceArea), "_new", []);
  691. smalltalk.send(self['@sourceArea'], "_renderOn_", [html]);
  692. return self;},
  693. args: ["html"],
  694. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%20%20%20%20sourceArea%20renderOn%3A%20html'),
  695. messageSends: ["new", "renderOn:"],
  696. referencedClasses: []
  697. }),
  698. smalltalk.Workspace);
  699. smalltalk.addMethod(
  700. unescape('_renderButtonsOn_'),
  701. smalltalk.method({
  702. selector: unescape('renderButtonsOn%3A'),
  703. category: 'rendering',
  704. fn: function (html){
  705. var self=this;
  706. (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", []));
  707. (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", []));
  708. (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", []));
  709. (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", []));
  710. (function($rec){smalltalk.send($rec, "_with_", ["Clear workspace"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clearWorkspace", []);})]);})(smalltalk.send(html, "_button", []));
  711. return self;},
  712. args: ["html"],
  713. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27DoIt%27%3B%0A%09title%3A%20%27ctrl+d%27%3B%0A%09onClick%3A%20%5Bself%20doIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27PrintIt%27%3B%0A%09title%3A%20%27ctrl+p%27%3B%0A%09onClick%3A%20%5Bself%20printIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27InspectIt%27%3B%0A%09title%3A%20%27ctrl+i%27%3B%0A%09onClick%3A%20%5Bself%20inspectIt%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27FileIn%27%3B%0A%09title%3A%20%27ctrl+f%27%3B%0A%09onClick%3A%20%5Bself%20fileIn%5D.%0A%20%20%20%20html%20button%0A%09with%3A%20%27Clear%20workspace%27%3B%0A%09onClick%3A%20%5Bself%20clearWorkspace%5D'),
  714. messageSends: ["with:", "title:", "onClick:", "doIt", "button", "printIt", "inspectIt", "fileIn", "clearWorkspace"],
  715. referencedClasses: []
  716. }),
  717. smalltalk.Workspace);
  718. smalltalk.addClass('Transcript', smalltalk.TabWidget, ['textarea'], 'IDE');
  719. smalltalk.addMethod(
  720. unescape('_label'),
  721. smalltalk.method({
  722. selector: unescape('label'),
  723. category: 'accessing',
  724. fn: function (){
  725. var self=this;
  726. return "Transcript";
  727. return self;},
  728. args: [],
  729. source: unescape('label%0A%20%20%20%20%5E%27Transcript%27'),
  730. messageSends: [],
  731. referencedClasses: []
  732. }),
  733. smalltalk.Transcript);
  734. smalltalk.addMethod(
  735. unescape('_show_'),
  736. smalltalk.method({
  737. selector: unescape('show%3A'),
  738. category: 'actions',
  739. fn: function (anObject){
  740. var self=this;
  741. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(anObject, "_asString", [])])]);
  742. return self;},
  743. args: ["anObject"],
  744. source: unescape('show%3A%20anObject%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20anObject%20asString.'),
  745. messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "asString"],
  746. referencedClasses: []
  747. }),
  748. smalltalk.Transcript);
  749. smalltalk.addMethod(
  750. unescape('_cr'),
  751. smalltalk.method({
  752. selector: unescape('cr'),
  753. category: 'actions',
  754. fn: function (){
  755. var self=this;
  756. 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", [])])]);
  757. return self;},
  758. args: [],
  759. source: unescape('cr%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20String%20cr.'),
  760. messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "cr"],
  761. referencedClasses: [smalltalk.String]
  762. }),
  763. smalltalk.Transcript);
  764. smalltalk.addMethod(
  765. unescape('_clear'),
  766. smalltalk.method({
  767. selector: unescape('clear'),
  768. category: 'actions',
  769. fn: function (){
  770. var self=this;
  771. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]);
  772. return self;},
  773. args: [],
  774. source: unescape('clear%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27'),
  775. messageSends: ["val:", "asJQuery"],
  776. referencedClasses: []
  777. }),
  778. smalltalk.Transcript);
  779. smalltalk.addMethod(
  780. unescape('_renderBoxOn_'),
  781. smalltalk.method({
  782. selector: unescape('renderBoxOn%3A'),
  783. category: 'rendering',
  784. fn: function (html){
  785. var self=this;
  786. self['@textarea']=smalltalk.send(html, "_textarea", []);
  787. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_call_", ["tabby"]);
  788. (function($rec){smalltalk.send($rec, "_class_", ["jt_transcript"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']);
  789. return self;},
  790. args: ["html"],
  791. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20textarea%20%3A%3D%20html%20textarea.%0A%20%20%20%20textarea%20asJQuery%20call%3A%20%27tabby%27.%0A%20%20%20%20textarea%20%0A%09class%3A%20%27jt_transcript%27%3B%0A%09at%3A%20%27spellcheck%27%20put%3A%20%27false%27'),
  792. messageSends: ["textarea", "call:", "asJQuery", "class:", "at:put:"],
  793. referencedClasses: []
  794. }),
  795. smalltalk.Transcript);
  796. smalltalk.addMethod(
  797. unescape('_renderButtonsOn_'),
  798. smalltalk.method({
  799. selector: unescape('renderButtonsOn%3A'),
  800. category: 'rendering',
  801. fn: function (html){
  802. var self=this;
  803. (function($rec){smalltalk.send($rec, "_with_", ["Clear transcript"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clear", []);})]);})(smalltalk.send(html, "_button", []));
  804. return self;},
  805. args: ["html"],
  806. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27Clear%20transcript%27%3B%0A%09onClick%3A%20%5Bself%20clear%5D'),
  807. messageSends: ["with:", "onClick:", "clear", "button"],
  808. referencedClasses: []
  809. }),
  810. smalltalk.Transcript);
  811. smalltalk.Transcript.klass.iVarNames = ['current'];
  812. smalltalk.addMethod(
  813. unescape('_open'),
  814. smalltalk.method({
  815. selector: unescape('open'),
  816. category: 'instance creation',
  817. fn: function (){
  818. var self=this;
  819. (function($rec){smalltalk.send($rec, "_open", []);return smalltalk.send($rec, "_selectTab_", [smalltalk.send(self, "_current", [])]);})(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []));
  820. return self;},
  821. args: [],
  822. source: unescape('open%0A%20%20%20%20TabManager%20current%20%0A%09open%3B%0A%09selectTab%3A%20self%20current'),
  823. messageSends: ["open", "selectTab:", "current"],
  824. referencedClasses: [smalltalk.TabManager]
  825. }),
  826. smalltalk.Transcript.klass);
  827. smalltalk.addMethod(
  828. unescape('_new'),
  829. smalltalk.method({
  830. selector: unescape('new'),
  831. category: 'instance creation',
  832. fn: function (){
  833. var self=this;
  834. smalltalk.send(self, "_shouldNotImplement", []);
  835. return self;},
  836. args: [],
  837. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  838. messageSends: ["shouldNotImplement"],
  839. referencedClasses: []
  840. }),
  841. smalltalk.Transcript.klass);
  842. smalltalk.addMethod(
  843. unescape('_current'),
  844. smalltalk.method({
  845. selector: unescape('current'),
  846. category: 'instance creation',
  847. fn: function (){
  848. var self=this;
  849. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.TabWidget.klass);})() : $receiver;
  850. return self;},
  851. args: [],
  852. source: unescape('current%0A%20%20%20%20%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'),
  853. messageSends: ["ifNil:", "new"],
  854. referencedClasses: []
  855. }),
  856. smalltalk.Transcript.klass);
  857. smalltalk.addMethod(
  858. unescape('_show_'),
  859. smalltalk.method({
  860. selector: unescape('show%3A'),
  861. category: 'printing',
  862. fn: function (anObject){
  863. var self=this;
  864. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [anObject]);
  865. return self;},
  866. args: ["anObject"],
  867. source: unescape('show%3A%20anObject%0A%20%20%20%20self%20current%20show%3A%20anObject'),
  868. messageSends: ["show:", "current"],
  869. referencedClasses: []
  870. }),
  871. smalltalk.Transcript.klass);
  872. smalltalk.addMethod(
  873. unescape('_cr'),
  874. smalltalk.method({
  875. selector: unescape('cr'),
  876. category: 'printing',
  877. fn: function (){
  878. var self=this;
  879. smalltalk.send(smalltalk.send(self, "_current", []), "_show_", [smalltalk.send((smalltalk.String || String), "_cr", [])]);
  880. return self;},
  881. args: [],
  882. source: unescape('cr%0A%20%20%20%20self%20current%20show%3A%20String%20cr'),
  883. messageSends: ["show:", "current", "cr"],
  884. referencedClasses: [smalltalk.String]
  885. }),
  886. smalltalk.Transcript.klass);
  887. smalltalk.addMethod(
  888. unescape('_clear'),
  889. smalltalk.method({
  890. selector: unescape('clear'),
  891. category: 'printing',
  892. fn: function (){
  893. var self=this;
  894. smalltalk.send(smalltalk.send(self, "_current", []), "_clear", []);
  895. return self;},
  896. args: [],
  897. source: unescape('clear%0A%20%20%20%20self%20current%20clear'),
  898. messageSends: ["clear", "current"],
  899. referencedClasses: []
  900. }),
  901. smalltalk.Transcript.klass);
  902. smalltalk.addClass('Browser', smalltalk.TabWidget, ['selectedPackage', 'selectedClass', 'selectedProtocol', 'selectedMethod', 'commitButton', 'packagesList', 'classesList', 'protocolsList', 'methodsList', 'sourceArea', 'tabsList', 'selectedTab', 'saveButton', 'classButtons', 'methodButtons', 'unsavedChanges', 'renameButton', 'deleteButton'], 'IDE');
  903. smalltalk.addMethod(
  904. unescape('_label'),
  905. smalltalk.method({
  906. selector: unescape('label'),
  907. category: 'accessing',
  908. fn: function (){
  909. var self=this;
  910. 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", [])]);})();
  911. return self;},
  912. args: [],
  913. source: unescape('label%0A%20%20%20%20%5EselectedClass%20%0A%09ifNil%3A%20%5B%27Browser%20%28nil%29%27%5D%0A%09ifNotNil%3A%20%5B%27Browser%3A%20%27%2C%20selectedClass%20name%5D'),
  914. messageSends: ["ifNil:ifNotNil:", unescape("%2C"), "name"],
  915. referencedClasses: []
  916. }),
  917. smalltalk.Browser);
  918. smalltalk.addMethod(
  919. unescape('_packages'),
  920. smalltalk.method({
  921. selector: unescape('packages'),
  922. category: 'accessing',
  923. fn: function (){
  924. var self=this;
  925. var packages=nil;
  926. packages=smalltalk.send((smalltalk.Array || Array), "_new", []);
  927. 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", [])]);})]);})]);
  928. return smalltalk.send(packages, "_sort", []);
  929. return self;},
  930. args: [],
  931. source: unescape('packages%0A%20%20%20%20%7C%20packages%20%7C%0A%20%20%20%20packages%20%3A%3D%20Array%20new.%0A%20%20%20%20Smalltalk%20current%20classes%20do%3A%20%5B%3Aeach%20%7C%0A%09%28packages%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%20%20%20%20packages%20add%3A%20each%20category%5D%5D.%0A%20%20%20%20%5Epackages%20sort'),
  932. messageSends: ["new", "do:", "classes", "current", "ifFalse:", "includes:", "category", "add:", "sort"],
  933. referencedClasses: [smalltalk.Array,smalltalk.Smalltalk]
  934. }),
  935. smalltalk.Browser);
  936. smalltalk.addMethod(
  937. unescape('_classes'),
  938. smalltalk.method({
  939. selector: unescape('classes'),
  940. category: 'accessing',
  941. fn: function (){
  942. var self=this;
  943. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_classes", []), "_select_", [(function(each){return smalltalk.send(smalltalk.send(each, "_category", []), "__eq", [self['@selectedPackage']]);})]), "_sort_", [(function(a, b){return (($receiver = smalltalk.send(a, "_name", [])).klass === smalltalk.Number) ? $receiver <smalltalk.send(b, "_name", []) : smalltalk.send($receiver, "__lt", [smalltalk.send(b, "_name", [])]);})]);
  944. return self;},
  945. args: [],
  946. source: unescape('classes%0A%20%20%20%20%5E%28Smalltalk%20current%20classes%20%0A%09select%3A%20%5B%3Aeach%20%7C%20each%20category%20%3D%20selectedPackage%5D%29%0A%09sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20name%20%3C%20b%20name%5D'),
  947. messageSends: ["sort:", "select:", "classes", "current", unescape("%3D"), "category", unescape("%3C"), "name"],
  948. referencedClasses: [smalltalk.Smalltalk]
  949. }),
  950. smalltalk.Browser);
  951. smalltalk.addMethod(
  952. unescape('_protocols'),
  953. smalltalk.method({
  954. selector: unescape('protocols'),
  955. category: 'accessing',
  956. fn: function (){
  957. var self=this;
  958. try{var klass=nil;
  959. (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})]);klass=(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]);(($receiver = smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})]);return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(klass, "_protocols", [])}})})();})() : nil;
  960. (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_new", [])}})})();
  961. return self;
  962. } catch(e) {if(e.name === 'stReturn' && e.selector === '_protocols'){return e.fn()} throw(e)}},
  963. args: [],
  964. source: unescape('protocols%0A%20%20%20%20%7C%20klass%20%7C%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5B%5E%23%28%29%5D.%0A%09klass%20%3A%3D%20selectedTab%20%3D%20%23instance%0A%09%20%20%20%20ifTrue%3A%20%5BselectedClass%5D%0A%09%20%20%20%20ifFalse%3A%20%5BselectedClass%20class%5D.%0A%09klass%20methodDictionary%20isEmpty%20ifTrue%3A%20%5B%0A%09%20%20%20%20%5EArray%20with%3A%20%27not%20yet%20classified%27%5D.%0A%09%5Eklass%20protocols%5D.%0A%20%20%20%20%5EArray%20new'),
  965. messageSends: ["ifNotNil:", "ifTrue:", unescape("%3D"), "ifTrue:ifFalse:", "class", "isEmpty", "methodDictionary", "with:", "protocols", "new"],
  966. referencedClasses: [smalltalk.Array]
  967. }),
  968. smalltalk.Browser);
  969. smalltalk.addMethod(
  970. unescape('_methods'),
  971. smalltalk.method({
  972. selector: unescape('methods'),
  973. category: 'accessing',
  974. fn: function (){
  975. var self=this;
  976. try{var klass=nil;
  977. (($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_methods', fn: function(){return []}})})();})]);
  978. (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){return klass=(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]);})() : nil;
  979. (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", [])]);})])}})})();
  980. return self;
  981. } catch(e) {if(e.name === 'stReturn' && e.selector === '_methods'){return e.fn()} throw(e)}},
  982. args: [],
  983. source: unescape('methods%0A%20%20%20%20%7C%20klass%20%7C%0A%20%20%20%20selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5B%5E%23%28%29%5D.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09klass%20%3A%3D%20selectedTab%20%3D%20%23instance%0A%09%20%20%20%20ifTrue%3A%20%5BselectedClass%5D%0A%09%20%20%20%20ifFalse%3A%20%5BselectedClass%20class%5D%5D.%0A%20%20%20%20%5E%28selectedProtocol%20%0A%09ifNil%3A%20%5B%0A%09%20%20%20%20klass%20%0A%09%09ifNil%3A%20%5B%23%28%29%5D%20%0A%09%09ifNotNil%3A%20%5Bklass%20methodDictionary%20values%5D%5D%0A%09ifNotNil%3A%20%5B%0A%09%20%20%20%20klass%20methodDictionary%20values%20select%3A%20%5B%3Aeach%20%7C%0A%09%09each%20category%20%3D%20selectedProtocol%5D%5D%29%20sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20selector%20%3C%20b%20selector%5D'),
  984. messageSends: ["ifTrue:", unescape("%3D"), "ifNotNil:", "ifTrue:ifFalse:", "class", "sort:", "ifNil:ifNotNil:", "values", "methodDictionary", "select:", "category", unescape("%3C"), "selector"],
  985. referencedClasses: []
  986. }),
  987. smalltalk.Browser);
  988. smalltalk.addMethod(
  989. unescape('_source'),
  990. smalltalk.method({
  991. selector: unescape('source'),
  992. category: 'accessing',
  993. fn: function (){
  994. var self=this;
  995. try{(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return (($receiver = smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_declarationSource", []);})() : (function(){return smalltalk.send(self, "_methodSource", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_declarationSource", []);}), (function(){return smalltalk.send(self, "_methodSource", []);})])}})})();})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return (($receiver = smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_declarationSource", []);})() : (function(){return smalltalk.send(self, "_methodSource", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_declarationSource", []);}), (function(){return smalltalk.send(self, "_methodSource", []);})])}})})();})]);
  996. (function(){throw({name: 'stReturn', selector: '_source', fn: function(){return (($receiver = self['@selectedClass']) == nil || $receiver == undefined) ? (function(){return "";})() : (function(){return smalltalk.send(self, "_classCommentSource", []);})()}})})();
  997. return self;
  998. } catch(e) {if(e.name === 'stReturn' && e.selector === '_source'){return e.fn()} throw(e)}},
  999. args: [],
  1000. source: unescape('source%0A%20%20%20%20selectedTab%20%3D%20%23comment%20ifFalse%3A%20%5B%0A%09%5E%28selectedProtocol%20notNil%20or%3A%20%5BselectedMethod%20notNil%5D%29%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20declarationSource%5D%0A%09%20%20%20%20ifTrue%3A%20%5Bself%20methodSource%5D%5D.%0A%20%20%20%20%5EselectedClass%0A%09ifNil%3A%20%5B%27%27%5D%0A%09ifNotNil%3A%20%5Bself%20classCommentSource%5D'),
  1001. messageSends: ["ifFalse:", unescape("%3D"), "ifFalse:ifTrue:", "or:", "notNil", "declarationSource", "methodSource", "ifNil:ifNotNil:", "classCommentSource"],
  1002. referencedClasses: []
  1003. }),
  1004. smalltalk.Browser);
  1005. smalltalk.addMethod(
  1006. unescape('_methodSource'),
  1007. smalltalk.method({
  1008. selector: unescape('methodSource'),
  1009. category: 'accessing',
  1010. fn: function (){
  1011. var self=this;
  1012. return (($receiver = self['@selectedMethod']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(self, "_dummyMethodSource", []);})() : (function(){return smalltalk.send(self['@selectedMethod'], "_source", []);})();
  1013. return self;},
  1014. args: [],
  1015. source: unescape('methodSource%0A%20%20%20%20%5EselectedMethod%0A%09ifNil%3A%20%5Bself%20dummyMethodSource%5D%0A%09ifNotNil%3A%20%5BselectedMethod%20source%5D'),
  1016. messageSends: ["ifNil:ifNotNil:", "dummyMethodSource", "source"],
  1017. referencedClasses: []
  1018. }),
  1019. smalltalk.Browser);
  1020. smalltalk.addMethod(
  1021. unescape('_dummyMethodSource'),
  1022. smalltalk.method({
  1023. selector: unescape('dummyMethodSource'),
  1024. category: 'accessing',
  1025. fn: function (){
  1026. var self=this;
  1027. return unescape("messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements");
  1028. return self;},
  1029. args: [],
  1030. source: unescape('dummyMethodSource%0A%20%20%20%20%5E%27messageSelectorAndArgumentNames%0A%09%22comment%20stating%20purpose%20of%20message%22%0A%0A%09%7C%20temporary%20variable%20names%20%7C%0A%09statements%27'),
  1031. messageSends: [],
  1032. referencedClasses: []
  1033. }),
  1034. smalltalk.Browser);
  1035. smalltalk.addMethod(
  1036. unescape('_declarationSource'),
  1037. smalltalk.method({
  1038. selector: unescape('declarationSource'),
  1039. category: 'accessing',
  1040. fn: function (){
  1041. var self=this;
  1042. return (($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_classDeclarationSource", []);})() : (function(){return smalltalk.send(self, "_metaclassDeclarationSource", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_classDeclarationSource", []);}), (function(){return smalltalk.send(self, "_metaclassDeclarationSource", []);})]);
  1043. return self;},
  1044. args: [],
  1045. source: unescape('declarationSource%0A%20%20%20%20%5EselectedTab%20%3D%20%23instance%0A%09ifTrue%3A%20%5Bself%20classDeclarationSource%5D%0A%09ifFalse%3A%20%5Bself%20metaclassDeclarationSource%5D'),
  1046. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "classDeclarationSource", "metaclassDeclarationSource"],
  1047. referencedClasses: []
  1048. }),
  1049. smalltalk.Browser);
  1050. smalltalk.addMethod(
  1051. unescape('_classDeclarationSource'),
  1052. smalltalk.method({
  1053. selector: unescape('classDeclarationSource'),
  1054. category: 'accessing',
  1055. fn: function (){
  1056. var self=this;
  1057. var stream=nil;
  1058. stream=smalltalk.send("", "_writeStream", []);
  1059. (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){(function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(self['@selectedClass'], "_superclass", []), "_asString", [])]);smalltalk.send($rec, "_nextPutAll_", [unescape("%20subclass%3A%20%23")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_name", [])]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send((smalltalk.String || String), "_lf", []), "__comma", [smalltalk.send((smalltalk.String || String), "_tab", [])])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("instanceVariableNames%3A%20%27")]);})(stream);smalltalk.send(smalltalk.send(self['@selectedClass'], "_instanceVariableNames", []), "_do_separatedBy_", [(function(each){return smalltalk.send(stream, "_nextPutAll_", [each]);}), (function(){return smalltalk.send(stream, "_nextPutAll_", [" "]);})]);return (function($rec){smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(smalltalk.send(unescape("%27"), "__comma", [smalltalk.send((smalltalk.String || String), "_lf", [])]), "__comma", [smalltalk.send((smalltalk.String || String), "_tab", [])])]);smalltalk.send($rec, "_nextPutAll_", [unescape("package%3A%20%27")]);smalltalk.send($rec, "_nextPutAll_", [smalltalk.send(self['@selectedClass'], "_category", [])]);return smalltalk.send($rec, "_nextPutAll_", [unescape("%27")]);})(stream);})() : nil;
  1060. return smalltalk.send(stream, "_contents", []);
  1061. return self;},
  1062. args: [],
  1063. source: unescape('classDeclarationSource%0A%20%20%20%20%7C%20stream%20%7C%0A%20%20%20%20stream%20%3A%3D%20%27%27%20writeStream.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09stream%20%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20superclass%20asString%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%20subclass%3A%20%23%27%3B%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20name%3B%0A%09%20%20%20%20nextPutAll%3A%20String%20lf%2C%20String%20tab%3B%0A%09%20%20%20%20nextPutAll%3A%20%27instanceVariableNames%3A%20%27%27%27.%0A%09selectedClass%20instanceVariableNames%20%0A%09%20%20%20%20do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%5D%20%0A%09%20%20%20%20separatedBy%3A%20%5Bstream%20nextPutAll%3A%20%27%20%27%5D.%0A%09stream%0A%09%20%20%20%20nextPutAll%3A%20%27%27%27%27%2C%20String%20lf%2C%20String%20tab%3B%0A%09%20%20%20%20nextPutAll%3A%20%27package%3A%20%27%27%27%3B%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20category%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%27%27%27%5D.%0A%20%20%20%20%5Estream%20contents'),
  1064. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "superclass", "name", unescape("%2C"), "lf", "tab", "do:separatedBy:", "instanceVariableNames", "category", "contents"],
  1065. referencedClasses: [smalltalk.String]
  1066. }),
  1067. smalltalk.Browser);
  1068. smalltalk.addMethod(
  1069. unescape('_metaclassDeclarationSource'),
  1070. smalltalk.method({
  1071. selector: unescape('metaclassDeclarationSource'),
  1072. category: 'accessing',
  1073. fn: function (){
  1074. var self=this;
  1075. var stream=nil;
  1076. stream=smalltalk.send("", "_writeStream", []);
  1077. (($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;
  1078. return smalltalk.send(stream, "_contents", []);
  1079. return self;},
  1080. args: [],
  1081. source: unescape('metaclassDeclarationSource%0A%20%20%20%20%7C%20stream%20%7C%0A%20%20%20%20stream%20%3A%3D%20%27%27%20writeStream.%0A%20%20%20%20selectedClass%20ifNotNil%3A%20%5B%0A%09stream%20%0A%09%20%20%20%20nextPutAll%3A%20selectedClass%20asString%3B%0A%09%20%20%20%20nextPutAll%3A%20%27%20class%20%27%3B%0A%09%20%20%20%20nextPutAll%3A%20%27instanceVariableNames%3A%20%27%27%27.%0A%09selectedClass%20class%20instanceVariableNames%0A%09%20%20%20%20do%3A%20%5B%3Aeach%20%7C%20stream%20nextPutAll%3A%20each%5D%0A%09%20%20%20%20separatedBy%3A%20%5Bstream%20nextPutAll%3A%20%27%20%27%5D.%0A%09stream%20nextPutAll%3A%20%27%27%27%27%5D.%0A%20%20%20%20%5Estream%20contents'),
  1082. messageSends: ["writeStream", "ifNotNil:", "nextPutAll:", "asString", "do:separatedBy:", "instanceVariableNames", "class", "contents"],
  1083. referencedClasses: []
  1084. }),
  1085. smalltalk.Browser);
  1086. smalltalk.addMethod(
  1087. unescape('_classCommentSource'),
  1088. smalltalk.method({
  1089. selector: unescape('classCommentSource'),
  1090. category: 'accessing',
  1091. fn: function (){
  1092. var self=this;
  1093. return smalltalk.send(self['@selectedClass'], "_comment", []);
  1094. return self;},
  1095. args: [],
  1096. source: unescape('classCommentSource%0A%20%20%20%20%5EselectedClass%20comment'),
  1097. messageSends: ["comment"],
  1098. referencedClasses: []
  1099. }),
  1100. smalltalk.Browser);
  1101. smalltalk.addMethod(
  1102. unescape('_selectedClass'),
  1103. smalltalk.method({
  1104. selector: unescape('selectedClass'),
  1105. category: 'accessing',
  1106. fn: function (){
  1107. var self=this;
  1108. return self['@selectedClass'];
  1109. return self;},
  1110. args: [],
  1111. source: unescape('selectedClass%0A%09%5EselectedClass'),
  1112. messageSends: [],
  1113. referencedClasses: []
  1114. }),
  1115. smalltalk.Browser);
  1116. smalltalk.addMethod(
  1117. unescape('_disableSaveButton'),
  1118. smalltalk.method({
  1119. selector: unescape('disableSaveButton'),
  1120. category: 'actions',
  1121. fn: function (){
  1122. var self=this;
  1123. (($receiver = self['@saveButton']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self['@saveButton'], "_at_put_", ["disabled", true]);})() : nil;
  1124. self['@unsavedChanges']=false;
  1125. return self;},
  1126. args: [],
  1127. source: unescape('disableSaveButton%0A%20%20%20%20saveButton%20ifNotNil%3A%20%5B%0A%09saveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D.%0A%20%20%20%20unsavedChanges%20%3A%3D%20false'),
  1128. messageSends: ["ifNotNil:", "at:put:"],
  1129. referencedClasses: []
  1130. }),
  1131. smalltalk.Browser);
  1132. smalltalk.addMethod(
  1133. unescape('_hideClassButtons'),
  1134. smalltalk.method({
  1135. selector: unescape('hideClassButtons'),
  1136. category: 'actions',
  1137. fn: function (){
  1138. var self=this;
  1139. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_hide", []);
  1140. return self;},
  1141. args: [],
  1142. source: unescape('hideClassButtons%0A%20%20%20%20classButtons%20asJQuery%20hide'),
  1143. messageSends: ["hide", "asJQuery"],
  1144. referencedClasses: []
  1145. }),
  1146. smalltalk.Browser);
  1147. smalltalk.addMethod(
  1148. unescape('_showClassButtons'),
  1149. smalltalk.method({
  1150. selector: unescape('showClassButtons'),
  1151. category: 'actions',
  1152. fn: function (){
  1153. var self=this;
  1154. smalltalk.send(smalltalk.send(self['@classButtons'], "_asJQuery", []), "_show", []);
  1155. return self;},
  1156. args: [],
  1157. source: unescape('showClassButtons%0A%20%20%20%20classButtons%20asJQuery%20show'),
  1158. messageSends: ["show", "asJQuery"],
  1159. referencedClasses: []
  1160. }),
  1161. smalltalk.Browser);
  1162. smalltalk.addMethod(
  1163. unescape('_hideMethodButtons'),
  1164. smalltalk.method({
  1165. selector: unescape('hideMethodButtons'),
  1166. category: 'actions',
  1167. fn: function (){
  1168. var self=this;
  1169. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_hide", []);
  1170. return self;},
  1171. args: [],
  1172. source: unescape('hideMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20hide'),
  1173. messageSends: ["hide", "asJQuery"],
  1174. referencedClasses: []
  1175. }),
  1176. smalltalk.Browser);
  1177. smalltalk.addMethod(
  1178. unescape('_showMethodButtons'),
  1179. smalltalk.method({
  1180. selector: unescape('showMethodButtons'),
  1181. category: 'actions',
  1182. fn: function (){
  1183. var self=this;
  1184. smalltalk.send(smalltalk.send(self['@methodButtons'], "_asJQuery", []), "_show", []);
  1185. return self;},
  1186. args: [],
  1187. source: unescape('showMethodButtons%0A%20%20%20%20methodButtons%20asJQuery%20show'),
  1188. messageSends: ["show", "asJQuery"],
  1189. referencedClasses: []
  1190. }),
  1191. smalltalk.Browser);
  1192. smalltalk.addMethod(
  1193. unescape('_compile'),
  1194. smalltalk.method({
  1195. selector: unescape('compile'),
  1196. category: 'actions',
  1197. fn: function (){
  1198. var self=this;
  1199. smalltalk.send(self, "_disableSaveButton", []);
  1200. (($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_compileClassComment", []);})() : nil;})() : (function(){return (($receiver = smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_compileDefinition", []);})() : (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_compileDefinition", []);}), (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return (($receiver = self['@selectedClass']) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_compileClassComment", []);})() : nil;}), (function(){return (($receiver = smalltalk.send(smalltalk.send(self['@selectedProtocol'], "_notNil", []), "_or_", [(function(){return smalltalk.send(self['@selectedMethod'], "_notNil", []);})])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_compileDefinition", []);})() : (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_compileDefinition", []);}), (function(){return smalltalk.send(self, "_compileMethodDefinition", []);})]);})]);
  1201. return self;},
  1202. args: [],
  1203. source: unescape('compile%0A%20%20%20%20self%20disableSaveButton.%0A%20%20%20%20selectedTab%20%3D%20%23comment%20%0A%09ifTrue%3A%20%5B%0A%09%09%09selectedClass%20ifNotNil%3A%20%5B%0A%09%09%09%09self%20compileClassComment%5D%5D%0A%09ifFalse%3A%20%5B%0A%09%09%09%28selectedProtocol%20notNil%20or%3A%20%5BselectedMethod%20notNil%5D%29%0A%09%09%09%09ifFalse%3A%20%5Bself%20compileDefinition%5D%0A%09%09%09%09ifTrue%3A%20%5Bself%20compileMethodDefinition%5D%5D'),
  1204. messageSends: ["disableSaveButton", "ifTrue:ifFalse:", unescape("%3D"), "ifNotNil:", "compileClassComment", "ifFalse:ifTrue:", "or:", "notNil", "compileDefinition", "compileMethodDefinition"],
  1205. referencedClasses: []
  1206. }),
  1207. smalltalk.Browser);
  1208. smalltalk.addMethod(
  1209. unescape('_compileClassComment'),
  1210. smalltalk.method({
  1211. selector: unescape('compileClassComment'),
  1212. category: 'actions',
  1213. fn: function (){
  1214. var self=this;
  1215. smalltalk.send(self['@selectedClass'], "_comment_", [smalltalk.send(self['@sourceArea'], "_val", [])]);
  1216. return self;},
  1217. args: [],
  1218. source: unescape('compileClassComment%0A%20%20%20%20selectedClass%20comment%3A%20sourceArea%20val'),
  1219. messageSends: ["comment:", "val"],
  1220. referencedClasses: []
  1221. }),
  1222. smalltalk.Browser);
  1223. smalltalk.addMethod(
  1224. unescape('_compileMethodDefinition'),
  1225. smalltalk.method({
  1226. selector: unescape('compileMethodDefinition'),
  1227. category: 'actions',
  1228. fn: function (){
  1229. var self=this;
  1230. (($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [self['@selectedClass']]);})() : (function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [smalltalk.send(self['@selectedClass'], "_class", [])]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [self['@selectedClass']]);}), (function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [smalltalk.send(self['@selectedClass'], "_class", [])]);})]);
  1231. return self;},
  1232. args: [],
  1233. source: unescape('compileMethodDefinition%0A%20%20%20%20selectedTab%20%3D%20%23instance%0A%09ifTrue%3A%20%5Bself%20compileMethodDefinitionFor%3A%20selectedClass%5D%0A%09ifFalse%3A%20%5Bself%20compileMethodDefinitionFor%3A%20selectedClass%20class%5D'),
  1234. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "compileMethodDefinitionFor:", "class"],
  1235. referencedClasses: []
  1236. }),
  1237. smalltalk.Browser);
  1238. smalltalk.addMethod(
  1239. unescape('_compileMethodDefinitionFor_'),
  1240. smalltalk.method({
  1241. selector: unescape('compileMethodDefinitionFor%3A'),
  1242. category: 'actions',
  1243. fn: function (aClass){
  1244. var self=this;
  1245. try{var compiler=nil;
  1246. var method=nil;
  1247. var source=nil;
  1248. var node=nil;
  1249. source=smalltalk.send(self['@sourceArea'], "_val", []);
  1250. (($receiver = self['@selectedProtocol']) == nil || $receiver == undefined) ? (function(){return self['@selectedProtocol']=smalltalk.send(self['@selectedMethod'], "_category", []);})() : $receiver;
  1251. compiler=smalltalk.send((smalltalk.Compiler || Compiler), "_new", []);
  1252. smalltalk.send(compiler, "_source_", [source]);
  1253. node=smalltalk.send(compiler, "_parse_", [source]);
  1254. (($receiver = smalltalk.send(node, "_isParseFailure", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send("PARSE ERROR: ", "__comma", [smalltalk.send(node, "_reason", [])]), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(smalltalk.send(node, "_position", []), "_asString", [])])])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(smalltalk.send(smalltalk.send("PARSE ERROR: ", "__comma", [smalltalk.send(node, "_reason", [])]), "__comma", [unescape("%2C%20position%3A%20")]), "__comma", [smalltalk.send(smalltalk.send(node, "_position", []), "_asString", [])])])}})})();})]);
  1255. smalltalk.send(compiler, "_currentClass_", [aClass]);
  1256. method=smalltalk.send(compiler, "_eval_", [smalltalk.send(compiler, "_compileNode_", [node])]);
  1257. smalltalk.send(method, "_category_", [self['@selectedProtocol']]);
  1258. smalltalk.send(smalltalk.send(compiler, "_unknownVariables", []), "_do_", [(function(each){return (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Declare%20%27"), "__comma", [each]), "__comma", [unescape("%27%20as%20instance%20variable%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self, "_addInstanceVariableNamed_toClass_", [each, aClass]);return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [aClass])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self, "_addInstanceVariableNamed_toClass_", [each, aClass]);return (function(){throw({name: 'stReturn', selector: '_compileMethodDefinitionFor_', fn: function(){return smalltalk.send(self, "_compileMethodDefinitionFor_", [aClass])}})})();})]);})]);
  1259. smalltalk.send(aClass, "_addCompiledMethod_", [method]);
  1260. smalltalk.send(compiler, "_setupClass_", [aClass]);
  1261. smalltalk.send(self, "_updateMethodsList", []);
  1262. smalltalk.send(self, "_selectMethod_", [method]);
  1263. return self;
  1264. } catch(e) {if(e.name === 'stReturn' && e.selector === '_compileMethodDefinitionFor_'){return e.fn()} throw(e)}},
  1265. args: ["aClass"],
  1266. source: unescape('compileMethodDefinitionFor%3A%20aClass%0A%20%20%20%20%7C%20compiler%20method%20source%20node%20%7C%0A%20%20%20%20source%20%3A%3D%20sourceArea%20val.%0A%20%20%20%20selectedProtocol%20ifNil%3A%20%5BselectedProtocol%20%3A%3D%20selectedMethod%20category%5D.%0A%20%20%20%20compiler%20%3A%3D%20Compiler%20new.%0A%20%20%20%20compiler%20source%3A%20source.%0A%20%20%20%20node%20%3A%3D%20compiler%20parse%3A%20source.%0A%20%20%20%20node%20isParseFailure%20ifTrue%3A%20%5B%0A%09%5Eself%20alert%3A%20%27PARSE%20ERROR%3A%20%27%2C%20node%20reason%2C%20%27%2C%20position%3A%20%27%2C%20node%20position%20asString%5D.%0A%20%20%20%20compiler%20currentClass%3A%20aClass.%0A%20%20%20%20method%20%3A%3D%20compiler%20eval%3A%20%28compiler%20compileNode%3A%20node%29.%0A%20%20%20%20method%20category%3A%20selectedProtocol.%0A%20%20%20%20compiler%20unknownVariables%20do%3A%20%5B%3Aeach%20%7C%0A%09%28self%20confirm%3A%20%27Declare%20%27%27%27%2C%20each%2C%20%27%27%27%20as%20instance%20variable%3F%27%29%20ifTrue%3A%20%5B%0A%09%09self%20addInstanceVariableNamed%3A%20each%20toClass%3A%20aClass.%0A%09%09%5Eself%20compileMethodDefinitionFor%3A%20aClass%5D%5D.%0A%20%20%20%20aClass%20addCompiledMethod%3A%20method.%0A%20%20%20%20compiler%20setupClass%3A%20aClass.%0A%20%20%20%20self%20updateMethodsList.%0A%20%20%20%20self%20selectMethod%3A%20method'),
  1267. messageSends: ["val", "ifNil:", "category", "new", "source:", "parse:", "ifTrue:", "isParseFailure", "alert:", unescape("%2C"), "reason", "asString", "position", "currentClass:", "eval:", "compileNode:", "category:", "do:", "unknownVariables", "confirm:", "addInstanceVariableNamed:toClass:", "compileMethodDefinitionFor:", "addCompiledMethod:", "setupClass:", "updateMethodsList", "selectMethod:"],
  1268. referencedClasses: [smalltalk.Compiler]
  1269. }),
  1270. smalltalk.Browser);
  1271. smalltalk.addMethod(
  1272. unescape('_compileDefinition'),
  1273. smalltalk.method({
  1274. selector: unescape('compileDefinition'),
  1275. category: 'actions',
  1276. fn: function (){
  1277. var self=this;
  1278. var newClass=nil;
  1279. newClass=smalltalk.send(smalltalk.send((smalltalk.Compiler || Compiler), "_new", []), "_loadExpression_", [smalltalk.send(self['@sourceArea'], "_val", [])]);
  1280. (function($rec){smalltalk.send($rec, "_resetClassesList", []);smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  1281. return self;},
  1282. args: [],
  1283. source: unescape('compileDefinition%0A%20%20%20%20%7C%20newClass%20%7C%0A%20%20%20%20newClass%20%3A%3D%20Compiler%20new%20loadExpression%3A%20sourceArea%20val.%0A%20%20%20%20self%20%0A%09resetClassesList%3B%0A%09updateCategoriesList%3B%0A%09updateClassesList'),
  1284. messageSends: ["loadExpression:", "new", "val", "resetClassesList", "updateCategoriesList", "updateClassesList"],
  1285. referencedClasses: [smalltalk.Compiler]
  1286. }),
  1287. smalltalk.Browser);
  1288. smalltalk.addMethod(
  1289. unescape('_cancelChanges'),
  1290. smalltalk.method({
  1291. selector: unescape('cancelChanges'),
  1292. category: 'actions',
  1293. fn: function (){
  1294. var self=this;
  1295. return (($receiver = self['@unsavedChanges']).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);})() : (function(){return true;})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self, "_confirm_", [unescape("Cancel%20changes%3F")]);}), (function(){return true;})]);
  1296. return self;},
  1297. args: [],
  1298. source: unescape('cancelChanges%0A%20%20%20%20%5EunsavedChanges%20%0A%09ifTrue%3A%20%5Bself%20confirm%3A%20%27Cancel%20changes%3F%27%5D%0A%09ifFalse%3A%20%5Btrue%5D'),
  1299. messageSends: ["ifTrue:ifFalse:", "confirm:"],
  1300. referencedClasses: []
  1301. }),
  1302. smalltalk.Browser);
  1303. smalltalk.addMethod(
  1304. unescape('_removeClass'),
  1305. smalltalk.method({
  1306. selector: unescape('removeClass'),
  1307. category: 'actions',
  1308. fn: function (){
  1309. var self=this;
  1310. (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send("Do you really want to remove ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])]), "__comma", [unescape("%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_removeClass_", [self['@selectedClass']]);smalltalk.send(self, "_resetClassesList", []);return smalltalk.send(self, "_selectClass_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_removeClass_", [self['@selectedClass']]);smalltalk.send(self, "_resetClassesList", []);return smalltalk.send(self, "_selectClass_", [nil]);})]);
  1311. return self;},
  1312. args: [],
  1313. source: unescape('removeClass%0A%20%20%20%20%28self%20confirm%3A%20%27Do%20you%20really%20want%20to%20remove%20%27%2C%20selectedClass%20name%2C%20%27%3F%27%29%0A%09ifTrue%3A%20%5B%0A%09%20%20%20%20Smalltalk%20current%20removeClass%3A%20selectedClass.%0A%09%20%20%20%20self%20resetClassesList.%0A%09%20%20%20%20self%20selectClass%3A%20nil%5D'),
  1314. messageSends: ["ifTrue:", "confirm:", unescape("%2C"), "name", "removeClass:", "current", "resetClassesList", "selectClass:"],
  1315. referencedClasses: [smalltalk.Smalltalk]
  1316. }),
  1317. smalltalk.Browser);
  1318. smalltalk.addMethod(
  1319. unescape('_removeMethod'),
  1320. smalltalk.method({
  1321. selector: unescape('removeMethod'),
  1322. category: 'actions',
  1323. fn: function (){
  1324. var self=this;
  1325. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Do%20you%20really%20want%20to%20remove%20%23"), "__comma", [smalltalk.send(self['@selectedMethod'], "_selector", [])]), "__comma", [unescape("%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send(unescape("Do%20you%20really%20want%20to%20remove%20%23"), "__comma", [smalltalk.send(self['@selectedMethod'], "_selector", [])]), "__comma", [unescape("%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]);return smalltalk.send(self, "_selectMethod_", [nil]);})]);})]);
  1326. return self;},
  1327. args: [],
  1328. source: unescape('removeMethod%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09%28self%20confirm%3A%20%27Do%20you%20really%20want%20to%20remove%20%23%27%2C%20selectedMethod%20selector%2C%20%27%3F%27%29%0A%09%20%20%20%20ifTrue%3A%20%5B%0A%09%09selectedTab%20%3D%20%23instance%20%0A%09%09%09ifTrue%3A%20%5BselectedClass%20removeCompiledMethod%3A%20selectedMethod%5D%0A%09%09%09ifFalse%3A%20%5BselectedClass%20class%20removeCompiledMethod%3A%20selectedMethod%5D.%0A%09%09self%20selectMethod%3A%20nil%5D%5D'),
  1329. messageSends: ["ifTrue:", "cancelChanges", "confirm:", unescape("%2C"), "selector", "ifTrue:ifFalse:", unescape("%3D"), "removeCompiledMethod:", "class", "selectMethod:"],
  1330. referencedClasses: []
  1331. }),
  1332. smalltalk.Browser);
  1333. smalltalk.addMethod(
  1334. unescape('_setMethodProtocol_'),
  1335. smalltalk.method({
  1336. selector: unescape('setMethodProtocol%3A'),
  1337. category: 'actions',
  1338. fn: function (aString){
  1339. var self=this;
  1340. (($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);})]);})]);
  1341. return self;},
  1342. args: ["aString"],
  1343. source: unescape('setMethodProtocol%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09%28self%20protocols%20includes%3A%20aString%29%0A%09%20%20%20%20ifFalse%3A%20%5Bself%20addNewProtocol%5D%0A%09%20%20%20%20ifTrue%3A%20%5B%0A%09%09selectedMethod%20category%3A%20aString.%0A%09%09selectedProtocol%20%3A%3D%20aString.%0A%09%09selectedMethod%20%3A%3D%20selectedMethod.%0A%09%09self%20%0A%09%09%20%20%20%20updateProtocolsList%3B%0A%09%09%20%20%20%20updateMethodsList%3B%0A%09%09%20%20%20%20updateSourceAndButtons%5D%5D'),
  1344. messageSends: ["ifTrue:", "cancelChanges", "ifFalse:ifTrue:", "includes:", "protocols", "addNewProtocol", "category:", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1345. referencedClasses: []
  1346. }),
  1347. smalltalk.Browser);
  1348. smalltalk.addMethod(
  1349. unescape('_addNewProtocol'),
  1350. smalltalk.method({
  1351. selector: unescape('addNewProtocol'),
  1352. category: 'actions',
  1353. fn: function (){
  1354. var self=this;
  1355. var newProtocol=nil;
  1356. newProtocol=smalltalk.send(self, "_prompt_", ["New method protocol"]);
  1357. (($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]);})]);
  1358. return self;},
  1359. args: [],
  1360. source: unescape('addNewProtocol%0A%20%20%20%20%7C%20newProtocol%20%7C%0A%20%20%20%20newProtocol%20%3A%3D%20self%20prompt%3A%20%27New%20method%20protocol%27.%0A%20%20%20%20%28newProtocol%20notNil%20and%3A%20%5BnewProtocol%20notEmpty%5D%29%20ifTrue%3A%20%5B%0A%09selectedMethod%20category%3A%20newProtocol.%0A%09self%20setMethodProtocol%3A%20newProtocol%5D'),
  1361. messageSends: ["prompt:", "ifTrue:", "and:", "notNil", "notEmpty", "category:", "setMethodProtocol:"],
  1362. referencedClasses: []
  1363. }),
  1364. smalltalk.Browser);
  1365. smalltalk.addMethod(
  1366. unescape('_selectCategory_'),
  1367. smalltalk.method({
  1368. selector: unescape('selectCategory%3A'),
  1369. category: 'actions',
  1370. fn: function (aCategory){
  1371. var self=this;
  1372. (($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);})]);
  1373. return self;},
  1374. args: ["aCategory"],
  1375. source: unescape('selectCategory%3A%20aCategory%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedPackage%20%3A%3D%20aCategory.%0A%09selectedClass%20%3A%3D%20selectedProtocol%20%3A%3D%20selectedMethod%20%3A%3D%20%20nil.%0A%09self%20resetClassesList.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList%3B%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
  1376. messageSends: ["ifTrue:", "cancelChanges", "resetClassesList", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1377. referencedClasses: []
  1378. }),
  1379. smalltalk.Browser);
  1380. smalltalk.addMethod(
  1381. unescape('_selectClass_'),
  1382. smalltalk.method({
  1383. selector: unescape('selectClass%3A'),
  1384. category: 'actions',
  1385. fn: function (aClass){
  1386. var self=this;
  1387. (($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);})]);
  1388. return self;},
  1389. args: ["aClass"],
  1390. source: unescape('selectClass%3A%20aClass%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedClass%20%3A%3D%20aClass.%0A%09selectedProtocol%20%3A%3D%20selectedMethod%20%3A%3D%20nil.%0A%09self%20%0A%09%20%20%20%20updateClassesList%3B%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
  1391. messageSends: ["ifTrue:", "cancelChanges", "updateClassesList", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1392. referencedClasses: []
  1393. }),
  1394. smalltalk.Browser);
  1395. smalltalk.addMethod(
  1396. unescape('_selectProtocol_'),
  1397. smalltalk.method({
  1398. selector: unescape('selectProtocol%3A'),
  1399. category: 'actions',
  1400. fn: function (aString){
  1401. var self=this;
  1402. (($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);})]);
  1403. return self;},
  1404. args: ["aString"],
  1405. source: unescape('selectProtocol%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedProtocol%20%3A%3D%20aString.%0A%09selectedMethod%20%3A%3D%20nil.%0A%09self%20%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
  1406. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1407. referencedClasses: []
  1408. }),
  1409. smalltalk.Browser);
  1410. smalltalk.addMethod(
  1411. unescape('_selectMethod_'),
  1412. smalltalk.method({
  1413. selector: unescape('selectMethod%3A'),
  1414. category: 'actions',
  1415. fn: function (aMethod){
  1416. var self=this;
  1417. (($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);})]);
  1418. return self;},
  1419. args: ["aMethod"],
  1420. source: unescape('selectMethod%3A%20aMethod%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedMethod%20%3A%3D%20aMethod.%0A%09self%20%0A%09%20%20%20%20updateProtocolsList%3B%0A%09%20%20%20%20updateMethodsList%3B%0A%09%20%20%20%20updateSourceAndButtons%5D'),
  1421. messageSends: ["ifTrue:", "cancelChanges", "updateProtocolsList", "updateMethodsList", "updateSourceAndButtons"],
  1422. referencedClasses: []
  1423. }),
  1424. smalltalk.Browser);
  1425. smalltalk.addMethod(
  1426. unescape('_selectTab_'),
  1427. smalltalk.method({
  1428. selector: unescape('selectTab%3A'),
  1429. category: 'actions',
  1430. fn: function (aString){
  1431. var self=this;
  1432. (($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", []);})]);
  1433. return self;},
  1434. args: ["aString"],
  1435. source: unescape('selectTab%3A%20aString%0A%20%20%20%20self%20cancelChanges%20ifTrue%3A%20%5B%0A%09selectedTab%20%3A%3D%20aString.%0A%09self%20selectProtocol%3A%20nil.%0A%09self%20updateTabsList%5D'),
  1436. messageSends: ["ifTrue:", "cancelChanges", "selectProtocol:", "updateTabsList"],
  1437. referencedClasses: []
  1438. }),
  1439. smalltalk.Browser);
  1440. smalltalk.addMethod(
  1441. unescape('_renameClass'),
  1442. smalltalk.method({
  1443. selector: unescape('renameClass'),
  1444. category: 'actions',
  1445. fn: function (){
  1446. var self=this;
  1447. var newName=nil;
  1448. newName=smalltalk.send(self, "_prompt_", [smalltalk.send("Rename class ", "__comma", [smalltalk.send(self['@selectedClass'], "_name", [])])]);
  1449. (($receiver = smalltalk.send(newName, "_notEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(self['@selectedClass'], "_rename_", [newName]);return (function($rec){smalltalk.send($rec, "_updateClassesList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(self['@selectedClass'], "_rename_", [newName]);return (function($rec){smalltalk.send($rec, "_updateClassesList", []);return smalltalk.send($rec, "_updateSourceAndButtons", []);})(self);})]);
  1450. return self;},
  1451. args: [],
  1452. source: unescape('renameClass%0A%20%20%20%20%7C%20newName%20%7C%0A%20%20%20%20newName%20%3A%3D%20self%20prompt%3A%20%27Rename%20class%20%27%2C%20selectedClass%20name.%0A%20%20%20%20newName%20notEmpty%20ifTrue%3A%20%5B%0A%09selectedClass%20rename%3A%20newName.%0A%09self%20%0A%09%09updateClassesList%3B%0A%09%09updateSourceAndButtons%5D'),
  1453. messageSends: ["prompt:", unescape("%2C"), "name", "ifTrue:", "notEmpty", "rename:", "updateClassesList", "updateSourceAndButtons"],
  1454. referencedClasses: []
  1455. }),
  1456. smalltalk.Browser);
  1457. smalltalk.addMethod(
  1458. unescape('_addInstanceVariableNamed_toClass_'),
  1459. smalltalk.method({
  1460. selector: unescape('addInstanceVariableNamed%3AtoClass%3A'),
  1461. category: 'actions',
  1462. fn: function (aString, aClass){
  1463. var self=this;
  1464. smalltalk.send(smalltalk.send((smalltalk.ClassBuilder || ClassBuilder), "_new", []), "_addSubclassOf_named_instanceVariableNames_package_", [smalltalk.send(aClass, "_superclass", []), smalltalk.send(aClass, "_name", []), (function($rec){smalltalk.send($rec, "_add_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(smalltalk.send(aClass, "_instanceVariableNames", []), "_copy", [])), smalltalk.send(smalltalk.send(aClass, "_package", []), "_name", [])]);
  1465. return self;},
  1466. args: ["aString", "aClass"],
  1467. source: unescape('addInstanceVariableNamed%3A%20aString%20toClass%3A%20aClass%0A%09ClassBuilder%20new%0A%09%09addSubclassOf%3A%20aClass%20superclass%20%0A%09%09named%3A%20aClass%20name%20%0A%09%09instanceVariableNames%3A%20%28aClass%20instanceVariableNames%20copy%20add%3A%20aString%3B%20yourself%29%0A%09%09package%3A%20aClass%20package%20name'),
  1468. messageSends: ["addSubclassOf:named:instanceVariableNames:package:", "new", "superclass", "name", "add:", "yourself", "copy", "instanceVariableNames", "package"],
  1469. referencedClasses: [smalltalk.ClassBuilder]
  1470. }),
  1471. smalltalk.Browser);
  1472. smalltalk.addMethod(
  1473. unescape('_searchReferencesOf_'),
  1474. smalltalk.method({
  1475. selector: unescape('searchReferencesOf%3A'),
  1476. category: 'actions',
  1477. fn: function (aString){
  1478. var self=this;
  1479. smalltalk.send((smalltalk.ReferencesBrowser || ReferencesBrowser), "_search_", [aString]);
  1480. return self;},
  1481. args: ["aString"],
  1482. source: unescape('searchReferencesOf%3A%20aString%0A%09ReferencesBrowser%20search%3A%20aString'),
  1483. messageSends: ["search:"],
  1484. referencedClasses: []
  1485. }),
  1486. smalltalk.Browser);
  1487. smalltalk.addMethod(
  1488. unescape('_searchClassReferences'),
  1489. smalltalk.method({
  1490. selector: unescape('searchClassReferences'),
  1491. category: 'actions',
  1492. fn: function (){
  1493. var self=this;
  1494. smalltalk.send((smalltalk.ReferencesBrowser || ReferencesBrowser), "_search_", [smalltalk.send(self['@selectedClass'], "_name", [])]);
  1495. return self;},
  1496. args: [],
  1497. source: unescape('searchClassReferences%0A%09ReferencesBrowser%20search%3A%20selectedClass%20name'),
  1498. messageSends: ["search:", "name"],
  1499. referencedClasses: []
  1500. }),
  1501. smalltalk.Browser);
  1502. smalltalk.addMethod(
  1503. unescape('_search_'),
  1504. smalltalk.method({
  1505. selector: unescape('search%3A'),
  1506. category: 'actions',
  1507. fn: function (aString){
  1508. var self=this;
  1509. (($receiver = smalltalk.send(self, "_cancelChanges", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){var searchedClass=nil;
  1510. 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;
  1511. 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]);})]);})]);
  1512. return self;},
  1513. args: ["aString"],
  1514. source: unescape('search%3A%20aString%0A%09self%20cancelChanges%20ifTrue%3A%20%5B%7C%20searchedClass%20%7C%0A%09%09searchedClass%20%3A%3D%20Smalltalk%20current%20at%3A%20aString.%0A%09%09searchedClass%20isClass%0A%09%09%09ifTrue%3A%20%5Bself%20class%20openOn%3A%20searchedClass%5D%0A%09%09%09ifFalse%3A%20%5Bself%20searchReferencesOf%3A%20aString%5D%5D'),
  1515. messageSends: ["ifTrue:", "cancelChanges", "at:", "current", "ifTrue:ifFalse:", "isClass", "openOn:", "class", "searchReferencesOf:"],
  1516. referencedClasses: [smalltalk.Smalltalk]
  1517. }),
  1518. smalltalk.Browser);
  1519. smalltalk.addMethod(
  1520. unescape('_handleSourceAreaKeyDown_'),
  1521. smalltalk.method({
  1522. selector: unescape('handleSourceAreaKeyDown%3A'),
  1523. category: 'actions',
  1524. fn: function (anEvent){
  1525. var self=this;
  1526. if(anEvent.ctrlKey) {
  1527. if(anEvent.keyCode === 83) { //ctrl+s
  1528. self._compile();
  1529. anEvent.preventDefault();
  1530. return false;
  1531. }
  1532. }
  1533. ;
  1534. return self;},
  1535. args: ["anEvent"],
  1536. source: unescape('handleSourceAreaKeyDown%3A%20anEvent%0A%09%20%3Cif%28anEvent.ctrlKey%29%20%7B%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2083%29%20%7B%20//ctrl+s%0A%09%09%09self._compile%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%7D%0A%09%3E'),
  1537. messageSends: [],
  1538. referencedClasses: []
  1539. }),
  1540. smalltalk.Browser);
  1541. smalltalk.addMethod(
  1542. unescape('_commitPackage'),
  1543. smalltalk.method({
  1544. selector: unescape('commitPackage'),
  1545. category: 'actions',
  1546. fn: function (){
  1547. var self=this;
  1548. (($receiver = self['@selectedPackage']) != nil && $receiver != undefined) ? (function(){(function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send((smalltalk.Exporter || Exporter), "_new", []), "_exportPackage_", [self['@selectedPackage']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send((smalltalk.Ajax || Ajax), "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathJs", []), "__comma", [unescape("/")]), "__comma", [self['@selectedPackage']]), "__comma", [".js"])]));(function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send((smalltalk.StrippedExporter || StrippedExporter), "_new", []), "_exportPackage_", [self['@selectedPackage']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send((smalltalk.Ajax || Ajax), "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathJs", []), "__comma", [unescape("/")]), "__comma", [self['@selectedPackage']]), "__comma", [".deploy.js"])]));return (function($rec){smalltalk.send($rec, "_at_put_", ["type", "PUT"]);smalltalk.send($rec, "_at_put_", ["data", smalltalk.send(smalltalk.send((smalltalk.ChunkExporter || ChunkExporter), "_new", []), "_exportPackage_", [self['@selectedPackage']])]);smalltalk.send($rec, "_at_put_", ["error", (function(){return smalltalk.send(self, "_alert_", [unescape("Commit%20failed%21")]);})]);return smalltalk.send($rec, "_send", []);})(smalltalk.send((smalltalk.Ajax || Ajax), "_url_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_commitPathSt", []), "__comma", [unescape("/")]), "__comma", [self['@selectedPackage']]), "__comma", [".st"])]));})() : nil;
  1549. return self;},
  1550. args: [],
  1551. source: unescape('commitPackage%0A%20%20%20%20selectedPackage%20ifNotNil%3A%20%5B%0A%09%28Ajax%20url%3A%20self%20class%20commitPathJs%2C%20%27/%27%2C%20selectedPackage%2C%20%27.js%27%29%0A%09%20%20%20%20at%3A%20%27type%27%20put%3A%20%27PUT%27%3B%0A%09%20%20%20%20at%3A%20%27data%27%20put%3A%20%28Exporter%20new%20exportPackage%3A%20selectedPackage%29%3B%0A%09%20%20%20%20at%3A%20%27error%27%20put%3A%20%5Bself%20alert%3A%20%27Commit%20failed%21%27%5D%3B%0A%09%20%20%20%20send.%0A%09%28Ajax%20url%3A%20self%20class%20commitPathJs%2C%20%27/%27%2C%20selectedPackage%2C%20%27.deploy.js%27%29%0A%09%20%20%20%20at%3A%20%27type%27%20put%3A%20%27PUT%27%3B%0A%09%20%20%20%20at%3A%20%27data%27%20put%3A%20%28StrippedExporter%20new%20exportPackage%3A%20selectedPackage%29%3B%0A%09%20%20%20%20at%3A%20%27error%27%20put%3A%20%5Bself%20alert%3A%20%27Commit%20failed%21%27%5D%3B%0A%09%20%20%20%20send.%0A%09%28Ajax%20url%3A%20self%20class%20commitPathSt%2C%20%27/%27%2C%20selectedPackage%2C%20%27.st%27%29%0A%09%20%20%20%20at%3A%20%27type%27%20put%3A%20%27PUT%27%3B%0A%09%20%20%20%20at%3A%20%27data%27%20put%3A%20%28ChunkExporter%20new%20exportPackage%3A%20selectedPackage%29%3B%0A%09%20%20%20%20at%3A%20%27error%27%20put%3A%20%5Bself%20alert%3A%20%27Commit%20failed%21%27%5D%3B%0A%09%20%20%20%20send%5D'),
  1552. messageSends: ["ifNotNil:", "at:put:", "exportPackage:", "new", "alert:", "send", "url:", unescape("%2C"), "commitPathJs", "class", "commitPathSt"],
  1553. referencedClasses: [smalltalk.Exporter,smalltalk.Ajax,smalltalk.StrippedExporter,smalltalk.ChunkExporter]
  1554. }),
  1555. smalltalk.Browser);
  1556. smalltalk.addMethod(
  1557. unescape('_renamePackage'),
  1558. smalltalk.method({
  1559. selector: unescape('renamePackage'),
  1560. category: 'actions',
  1561. fn: function (){
  1562. var self=this;
  1563. var newName=nil;
  1564. var package=nil;
  1565. package=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [self['@selectedPackage']]);
  1566. newName=smalltalk.send(self, "_prompt_", [smalltalk.send("Rename package ", "__comma", [self['@selectedPackage']])]);
  1567. (($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", []);})]);
  1568. return self;},
  1569. args: [],
  1570. source: unescape('renamePackage%0A%0A%20%20%7C%20newName%20package%20%7C%0A%20%20package%20%3A%3D%20Smalltalk%20current%20packageAt%3A%20selectedPackage.%0A%20%20newName%20%3A%3D%20self%20prompt%3A%20%27Rename%20package%20%27%2C%20selectedPackage.%0A%20%20newName%20notEmpty%20ifTrue%3A%20%5B%0A%09Smalltalk%20current%20renamePackage%3A%20selectedPackage%20to%3A%20newName.%0A%09self%20updateCategoriesList%5D'),
  1571. messageSends: ["packageAt:", "current", "prompt:", unescape("%2C"), "ifTrue:", "notEmpty", "renamePackage:to:", "updateCategoriesList"],
  1572. referencedClasses: [smalltalk.Smalltalk]
  1573. }),
  1574. smalltalk.Browser);
  1575. smalltalk.addMethod(
  1576. unescape('_removePackage'),
  1577. smalltalk.method({
  1578. selector: unescape('removePackage'),
  1579. category: 'actions',
  1580. fn: function (){
  1581. var self=this;
  1582. var package=nil;
  1583. package=smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_packageAt_", [self['@selectedPackage']]);
  1584. (($receiver = smalltalk.send(self, "_confirm_", [smalltalk.send(smalltalk.send("Do you really want to remove the whole package ", "__comma", [smalltalk.send(package, "_name", [])]), "__comma", [unescape("%20with%20all%20its%20classes%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_removePackage_", [smalltalk.send(package, "_name", [])]);return smalltalk.send(self, "_updateCategoriesList", []);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){smalltalk.send(smalltalk.send((smalltalk.Smalltalk || Smalltalk), "_current", []), "_removePackage_", [smalltalk.send(package, "_name", [])]);return smalltalk.send(self, "_updateCategoriesList", []);})]);
  1585. return self;},
  1586. args: [],
  1587. source: unescape('removePackage%0A%0A%20%20%7C%20package%20%7C%0A%20%20package%20%3A%3D%20Smalltalk%20current%20packageAt%3A%20selectedPackage.%0A%20%20%28self%20confirm%3A%20%27Do%20you%20really%20want%20to%20remove%20the%20whole%20package%20%27%2C%20package%20name%2C%20%27%20with%20all%20its%20classes%3F%27%29%0A%09ifTrue%3A%20%5B%0A%09%20%20%20%20Smalltalk%20current%20removePackage%3A%20package%20name.%0A%09%20%20%20%20self%20updateCategoriesList%5D'),
  1588. messageSends: ["packageAt:", "current", "ifTrue:", "confirm:", unescape("%2C"), "name", "removePackage:", "updateCategoriesList"],
  1589. referencedClasses: [smalltalk.Smalltalk]
  1590. }),
  1591. smalltalk.Browser);
  1592. smalltalk.addMethod(
  1593. unescape('_initialize'),
  1594. smalltalk.method({
  1595. selector: unescape('initialize'),
  1596. category: 'initialization',
  1597. fn: function (){
  1598. var self=this;
  1599. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  1600. self['@selectedTab']="instance";
  1601. self['@unsavedChanges']=false;
  1602. return self;},
  1603. args: [],
  1604. source: unescape('initialize%0A%20%20%20%20super%20initialize.%0A%20%20%20%20selectedTab%20%3A%3D%20%23instance.%0A%20%20%20%20unsavedChanges%20%3A%3D%20false'),
  1605. messageSends: ["initialize"],
  1606. referencedClasses: []
  1607. }),
  1608. smalltalk.Browser);
  1609. smalltalk.addMethod(
  1610. unescape('_renderBoxOn_'),
  1611. smalltalk.method({
  1612. selector: unescape('renderBoxOn%3A'),
  1613. category: 'rendering',
  1614. fn: function (html){
  1615. var self=this;
  1616. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);smalltalk.send($rec, "_renderTabsOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1617. return self;},
  1618. args: ["html"],
  1619. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderTopPanelOn%3A%20html%3B%0A%09renderTabsOn%3A%20html%3B%0A%09renderBottomPanelOn%3A%20html'),
  1620. messageSends: ["renderTopPanelOn:", "renderTabsOn:", "renderBottomPanelOn:"],
  1621. referencedClasses: []
  1622. }),
  1623. smalltalk.Browser);
  1624. smalltalk.addMethod(
  1625. unescape('_renderTopPanelOn_'),
  1626. smalltalk.method({
  1627. selector: unescape('renderTopPanelOn%3A'),
  1628. category: 'rendering',
  1629. fn: function (html){
  1630. var self=this;
  1631. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){self['@packagesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser packages"]);self['@commitButton']=(function($rec){smalltalk.send($rec, "_class_", ["jt_commit"]);smalltalk.send($rec, "_title_", ["Commit classes in this package to disk"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_commitPackage", []);})]);return smalltalk.send($rec, "_with_", ["Commit package"]);})(smalltalk.send(html, "_button", []));self['@renameButton']=(function($rec){smalltalk.send($rec, "_class_", ["jt_rename"]);smalltalk.send($rec, "_title_", ["Rename this package"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_renamePackage", []);})]);return smalltalk.send($rec, "_with_", ["Rename package"]);})(smalltalk.send(html, "_button", []));self['@deleteButton']=(function($rec){smalltalk.send($rec, "_class_", ["jt_delete"]);smalltalk.send($rec, "_title_", ["Remove this package from the system"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removePackage", []);})]);return smalltalk.send($rec, "_with_", ["Remove package"]);})(smalltalk.send(html, "_button", []));self['@classesList']=smalltalk.send((smalltalk.ClassesList || ClassesList), "_on_", [self]);smalltalk.send(self['@classesList'], "_renderOn_", [html]);self['@protocolsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser protocols"]);self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser methods"]);(function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
  1632. return self;},
  1633. args: ["html"],
  1634. source: unescape('renderTopPanelOn%3A%20html%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27top%27%3B%20%0A%09with%3A%20%5B%0A%09%20%20%20%20packagesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20packages%27.%0A%09%20%20%20%20commitButton%20%3A%3D%20html%20button%20%0A%09%09class%3A%20%27jt_commit%27%3B%0A%09%09title%3A%20%27Commit%20classes%20in%20this%20package%20to%20disk%27%3B%0A%09%09onClick%3A%20%5Bself%20commitPackage%5D%3B%0A%09%09with%3A%20%27Commit%20package%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20renameButton%20%3A%3D%20html%20button%20%0A%09%09class%3A%20%27jt_rename%27%3B%0A%09%09title%3A%20%27Rename%20this%20package%27%3B%0A%09%09onClick%3A%20%5Bself%20renamePackage%5D%3B%0A%09%09with%3A%20%27Rename%20package%27.%0A%20%20%20%20%20%20%20%20%20%20%20%20deleteButton%20%3A%3D%20html%20button%20%0A%09%09class%3A%20%27jt_delete%27%3B%0A%09%09title%3A%20%27Remove%20this%20package%20from%20the%20system%27%3B%0A%09%09onClick%3A%20%5Bself%20removePackage%5D%3B%0A%09%09with%3A%20%27Remove%20package%27.%0A%09%20%20%20%20classesList%20%3A%3D%20ClassesList%20on%3A%20self.%0A%09%20%20%20%20classesList%20renderOn%3A%20html.%0A%09%20%20%20%20protocolsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20protocols%27.%0A%09%20%20%20%20methodsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20methods%27.%0A%09%20%20%20%20self%0A%09%09updateCategoriesList%3B%0A%09%09updateClassesList%3B%0A%09%09updateProtocolsList%3B%0A%09%09updateMethodsList.%0A%09%20%20%20%20html%20div%20class%3A%20%27jt_clear%27%5D'),
  1635. messageSends: ["class:", "with:", "ul", "title:", "onClick:", "commitPackage", "button", "renamePackage", "removePackage", "on:", "renderOn:", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList", "div"],
  1636. referencedClasses: []
  1637. }),
  1638. smalltalk.Browser);
  1639. smalltalk.addMethod(
  1640. unescape('_renderTabsOn_'),
  1641. smalltalk.method({
  1642. selector: unescape('renderTabsOn%3A'),
  1643. category: 'rendering',
  1644. fn: function (html){
  1645. var self=this;
  1646. self['@tabsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_tabs jt_browser"]);
  1647. smalltalk.send(self, "_updateTabsList", []);
  1648. return self;},
  1649. args: ["html"],
  1650. source: unescape('renderTabsOn%3A%20html%0A%20%20%20%20tabsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_tabs%20jt_browser%27.%0A%20%20%20%20self%20updateTabsList.'),
  1651. messageSends: ["class:", "ul", "updateTabsList"],
  1652. referencedClasses: []
  1653. }),
  1654. smalltalk.Browser);
  1655. smalltalk.addMethod(
  1656. unescape('_renderBottomPanelOn_'),
  1657. smalltalk.method({
  1658. selector: unescape('renderBottomPanelOn%3A'),
  1659. category: 'rendering',
  1660. fn: function (html){
  1661. var self=this;
  1662. (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", []));
  1663. return self;},
  1664. args: ["html"],
  1665. source: unescape('renderBottomPanelOn%3A%20html%0A%20%20%20%20html%20div%0A%09class%3A%20%27jt_sourceCode%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new.%0A%09%20%20%20%20sourceArea%20renderOn%3A%20html.%0A%20%20%20%20%20%20%20%20%20%20%20%20sourceArea%20onKeyDown%3A%20%5B%3Ae%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20self%20handleSourceAreaKeyDown%3A%20e%5D.%0A%09%20%20%20%20sourceArea%20onKeyUp%3A%20%5Bself%20updateStatus%5D%5D'),
  1666. messageSends: ["class:", "with:", "new", "renderOn:", "onKeyDown:", "handleSourceAreaKeyDown:", "onKeyUp:", "updateStatus", "div"],
  1667. referencedClasses: []
  1668. }),
  1669. smalltalk.Browser);
  1670. smalltalk.addMethod(
  1671. unescape('_renderButtonsOn_'),
  1672. smalltalk.method({
  1673. selector: unescape('renderButtonsOn%3A'),
  1674. category: 'rendering',
  1675. fn: function (html){
  1676. var self=this;
  1677. self['@saveButton']=smalltalk.send(html, "_button", []);
  1678. (function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_compile", []);})]);})(self['@saveButton']);
  1679. self['@methodButtons']=smalltalk.send(html, "_span", []);
  1680. self['@classButtons']=smalltalk.send(html, "_span", []);
  1681. (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", []));
  1682. smalltalk.send(self, "_updateSourceAndButtons", []);
  1683. return self;},
  1684. args: ["html"],
  1685. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20saveButton%20%3A%3D%20html%20button.%0A%20%20%20%20saveButton%20%0A%09with%3A%20%27Save%27%3B%0A%09onClick%3A%20%5Bself%20compile%5D.%0A%20%20%20%20methodButtons%20%3A%3D%20html%20span.%0A%20%20%20%20classButtons%20%3A%3D%20html%20span.%0A%20%20%20%20html%20div%20%0A%09class%3A%20%27right%27%3B%0A%09with%3A%20%5B%0A%09%09html%20button%0A%09%09%09with%3A%20%27DoIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20doIt%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27PrintIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20printIt%5D.%0A%09%09html%20button%20with%3A%20%27InspectIt%27%3B%0A%09%09%09onClick%3A%20%5BsourceArea%20inspectIt%5D%5D.%20%0A%20%20%20%20self%20updateSourceAndButtons'),
  1686. messageSends: ["button", "with:", "onClick:", "compile", "span", "class:", "doIt", "printIt", "inspectIt", "div", "updateSourceAndButtons"],
  1687. referencedClasses: []
  1688. }),
  1689. smalltalk.Browser);
  1690. smalltalk.addMethod(
  1691. unescape('_canBeClosed'),
  1692. smalltalk.method({
  1693. selector: unescape('canBeClosed'),
  1694. category: 'testing',
  1695. fn: function (){
  1696. var self=this;
  1697. return true;
  1698. return self;},
  1699. args: [],
  1700. source: unescape('canBeClosed%0A%09%5Etrue'),
  1701. messageSends: [],
  1702. referencedClasses: []
  1703. }),
  1704. smalltalk.Browser);
  1705. smalltalk.addMethod(
  1706. unescape('_updateCategoriesList'),
  1707. smalltalk.method({
  1708. selector: unescape('updateCategoriesList'),
  1709. category: 'updating',
  1710. fn: function (){
  1711. var self=this;
  1712. smalltalk.send(self['@packagesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_packages", []), "_do_", [(function(each){var li=nil;
  1713. var label=nil;
  1714. (($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);})]);})]);
  1715. return self;},
  1716. args: [],
  1717. source: unescape('updateCategoriesList%0A%20%20%20%20packagesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20packages%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20label%20%7C%0A%09%20%20%20%20each%20isEmpty%20%0A%09%09ifTrue%3A%20%5Blabel%20%3A%3D%20%27Unclassified%27%5D%0A%09%09ifFalse%3A%20%5Blabel%20%3A%3D%20each%5D.%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedPackage%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20label%3B%0A%09%09onClick%3A%20%5Bself%20selectCategory%3A%20each%5D%5D%5D'),
  1718. messageSends: ["contents:", "do:", "packages", "ifTrue:ifFalse:", "isEmpty", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectCategory:"],
  1719. referencedClasses: []
  1720. }),
  1721. smalltalk.Browser);
  1722. smalltalk.addMethod(
  1723. unescape('_updateClassesList'),
  1724. smalltalk.method({
  1725. selector: unescape('updateClassesList'),
  1726. category: 'updating',
  1727. fn: function (){
  1728. var self=this;
  1729. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_update", []);
  1730. smalltalk.send(self['@classesList'], "_updateNodes", []);
  1731. return self;},
  1732. args: [],
  1733. source: unescape('updateClassesList%0A%20%20%20%20TabManager%20current%20update.%0A%20%20%20%20classesList%20updateNodes.%0A%20%20%20%20%22classesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedClass%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%20name%3B%0A%09%09onClick%3A%20%5Bself%20selectClass%3A%20each%5D%5D%5D%22'),
  1734. messageSends: ["update", "current", "updateNodes"],
  1735. referencedClasses: [smalltalk.TabManager]
  1736. }),
  1737. smalltalk.Browser);
  1738. smalltalk.addMethod(
  1739. unescape('_updateProtocolsList'),
  1740. smalltalk.method({
  1741. selector: unescape('updateProtocolsList'),
  1742. category: 'updating',
  1743. fn: function (){
  1744. var self=this;
  1745. smalltalk.send(self['@protocolsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){var li=nil;
  1746. 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);})]);})]);
  1747. return self;},
  1748. args: [],
  1749. source: unescape('updateProtocolsList%0A%20%20%20%20protocolsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20protocols%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedProtocol%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%20%0A%09%09with%3A%20each%3B%0A%09%09onClick%3A%20%5Bself%20selectProtocol%3A%20each%5D%5D%5D'),
  1750. messageSends: ["contents:", "do:", "protocols", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectProtocol:"],
  1751. referencedClasses: []
  1752. }),
  1753. smalltalk.Browser);
  1754. smalltalk.addMethod(
  1755. unescape('_updateMethodsList'),
  1756. smalltalk.method({
  1757. selector: unescape('updateMethodsList'),
  1758. category: 'updating',
  1759. fn: function (){
  1760. var self=this;
  1761. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_methods", []), "_do_", [(function(each){var li=nil;
  1762. 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);})]);})]);
  1763. return self;},
  1764. args: [],
  1765. source: unescape('updateMethodsList%0A%20%20%20%20methodsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20methods%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedMethod%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%20selector%3B%0A%09%09onClick%3A%20%5Bself%20selectMethod%3A%20each%5D%5D%5D'),
  1766. messageSends: ["contents:", "do:", "methods", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "selector", "onClick:", "selectMethod:"],
  1767. referencedClasses: []
  1768. }),
  1769. smalltalk.Browser);
  1770. smalltalk.addMethod(
  1771. unescape('_updateTabsList'),
  1772. smalltalk.method({
  1773. selector: unescape('updateTabsList'),
  1774. category: 'updating',
  1775. fn: function (){
  1776. var self=this;
  1777. smalltalk.send(self['@tabsList'], "_contents_", [(function(html){var li=nil;
  1778. li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);(function($rec){smalltalk.send($rec, "_with_", [(function(){smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["ltab"]);(function($rec){smalltalk.send($rec, "_class_", ["mtab"]);return smalltalk.send($rec, "_with_", ["Instance"]);})(smalltalk.send(html, "_span", []));return smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["rtab"]);})]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["instance"]);})]);})(li);li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["class"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);(function($rec){smalltalk.send($rec, "_with_", [(function(){smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["ltab"]);(function($rec){smalltalk.send($rec, "_class_", ["mtab"]);return smalltalk.send($rec, "_with_", ["Class"]);})(smalltalk.send(html, "_span", []));return smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["rtab"]);})]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["class"]);})]);})(li);li=smalltalk.send(html, "_li", []);(($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]);return (function($rec){smalltalk.send($rec, "_with_", [(function(){smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["ltab"]);(function($rec){smalltalk.send($rec, "_class_", ["mtab"]);return smalltalk.send($rec, "_with_", ["Comment"]);})(smalltalk.send(html, "_span", []));return smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["rtab"]);})]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["comment"]);})]);})(li);})]);
  1779. return self;},
  1780. args: [],
  1781. source: unescape('updateTabsList%0A%20%20%20%20tabsList%20contents%3A%20%5B%3Ahtml%20%7C%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23instance%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%5B%0A%09%09html%20span%20class%3A%20%27ltab%27.%0A%09%09html%20span%20class%3A%20%27mtab%27%3B%20with%3A%20%27Instance%27.%0A%09%09html%20span%20class%3A%20%27rtab%27%5D%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23instance%5D.%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23class%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%5B%0A%09%09html%20span%20class%3A%20%27ltab%27.%0A%09%09html%20span%20class%3A%20%27mtab%27%3B%20with%3A%20%27Class%27.%0A%09%09html%20span%20class%3A%20%27rtab%27%5D%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23class%5D.%0A%09li%20%3A%3D%20html%20li.%0A%09selectedTab%20%3D%20%23comment%20ifTrue%3A%20%5Bli%20class%3A%20%27selected%27%5D.%0A%09li%0A%09%20%20%20%20with%3A%20%5B%0A%09%09html%20span%20class%3A%20%27ltab%27.%0A%09%09html%20span%20class%3A%20%27mtab%27%3B%20with%3A%20%27Comment%27.%0A%09%09html%20span%20class%3A%20%27rtab%27%5D%3B%0A%09%20%20%20%20onClick%3A%20%5Bself%20selectTab%3A%20%23comment%5D%5D'),
  1782. messageSends: ["contents:", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "span", "onClick:", "selectTab:"],
  1783. referencedClasses: []
  1784. }),
  1785. smalltalk.Browser);
  1786. smalltalk.addMethod(
  1787. unescape('_updateSourceAndButtons'),
  1788. smalltalk.method({
  1789. selector: unescape('updateSourceAndButtons'),
  1790. category: 'updating',
  1791. fn: function (){
  1792. var self=this;
  1793. smalltalk.send(self, "_disableSaveButton", []);
  1794. smalltalk.send(self['@classButtons'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_with_", ["Rename class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_renameClass", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_with_", ["Remove class"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removeClass", []);})]);})(smalltalk.send(html, "_button", []));return (function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_searchClassReferences", []);})]);})(smalltalk.send(html, "_button", []));})]);
  1795. smalltalk.send(self['@methodButtons'], "_contents_", [(function(html){(function($rec){smalltalk.send($rec, "_with_", ["Remove method"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removeMethod", []);})]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_setMethodProtocol_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["Method protocol"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", ["New..."]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));return (($receiver = smalltalk.send(self['@selectedMethod'], "_isNil", [])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return (function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_searchReferencesOf_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", [smalltalk.send(self['@selectedMethod'], "_selector", [])]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedMethod'], "_messageSends", []), "_sorted", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));})() : nil) : smalltalk.send($receiver, "_ifFalse_", [(function(){return (function($rec){smalltalk.send($rec, "_onChange_", [(function(e, select){return smalltalk.send(self, "_searchReferencesOf_", [smalltalk.send(select, "_val", [])]);})]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_with_", ["References"]);return smalltalk.send($rec, "_at_put_", ["disabled", "disabled"]);})(smalltalk.send(html, "_option", []));(function($rec){smalltalk.send($rec, "_class_", ["important"]);return smalltalk.send($rec, "_with_", [smalltalk.send(self['@selectedMethod'], "_selector", [])]);})(smalltalk.send(html, "_option", []));return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedMethod'], "_messageSends", []), "_sorted", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(html, "_option", []), "_with_", [each]);})]);})]);})(smalltalk.send(html, "_select", []));})]);})]);
  1796. (($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", []);})]);
  1797. smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(self, "_source", [])]);
  1798. return self;},
  1799. args: [],
  1800. source: unescape('updateSourceAndButtons%0A%09self%20disableSaveButton.%0A%09classButtons%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20button%0A%09%09%09with%3A%20%27Rename%20class%27%3B%0A%09%09%09onClick%3A%20%5Bself%20renameClass%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27Remove%20class%27%3B%0A%09%09%09onClick%3A%20%5Bself%20removeClass%5D.%0A%09%09html%20button%0A%09%09%09with%3A%20%27References%27%3B%0A%09%09%09onClick%3A%20%5Bself%20searchClassReferences%5D%5D.%0A%09methodButtons%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20button%0A%09%09%09with%3A%20%27Remove%20method%27%3B%0A%09%09%09onClick%3A%20%5Bself%20removeMethod%5D.%0A%09%09html%20select%20%0A%09%09%09onChange%3A%20%5B%3Ae%20%3Aselect%20%7C%20self%20setMethodProtocol%3A%20select%20val%5D%3B%0A%09%09%09with%3A%20%5B%0A%09%09%09%09html%20option%0A%09%09%09%09%09with%3A%20%27Method%20protocol%27%3B%0A%09%09%09%09%09at%3A%20%27disabled%27%20put%3A%20%27disabled%27.%0A%09%09%09%09html%20option%0A%09%09%09%09%09class%3A%20%27important%27%3B%0A%09%09%09%09%09with%3A%20%27New...%27.%0A%09%09%09%09self%20protocols%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%09%09%09html%20option%20with%3A%20each%5D%5D.%0A%09%09selectedMethod%20isNil%20ifFalse%3A%20%5B%0A%09%09%09html%20select%20%0A%09%09%09%09onChange%3A%20%5B%3Ae%20%3Aselect%20%7C%20self%20searchReferencesOf%3A%20select%20val%5D%3B%0A%09%09%09%09with%3A%20%5B%0A%09%09%09%09%09html%20option%0A%09%09%09%09%09%09with%3A%20%27References%27%3B%0A%09%09%09%09%09%09at%3A%20%27disabled%27%20put%3A%20%27disabled%27.%0A%09%09%09%09%09html%20option%0A%09%09%09%09%09%09class%3A%20%27important%27%3B%0A%09%09%09%09%09%09with%3A%20selectedMethod%20selector.%0A%09%09%09%09%09selectedMethod%20messageSends%20sorted%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%09%09%09%09html%20option%20with%3A%20each%5D%5D%5D%5D.%0A%09selectedMethod%20isNil%0A%09%09ifTrue%3A%20%5B%0A%09%09%09self%20hideMethodButtons.%0A%09%09%09%09%28selectedClass%20isNil%20or%3A%20%5BselectedProtocol%20notNil%5D%29%0A%09%09%09%09%09ifTrue%3A%20%5Bself%20hideClassButtons%5D%0A%09%09%09%09%09ifFalse%3A%20%5Bself%20showClassButtons%5D%5D%0A%09%09ifFalse%3A%20%5B%0A%09%09%09self%20hideClassButtons.%0A%09%09%09self%20showMethodButtons%5D.%0A%09sourceArea%20val%3A%20self%20source'),
  1801. messageSends: ["disableSaveButton", "contents:", "with:", "onClick:", "renameClass", "button", "removeClass", "searchClassReferences", "removeMethod", "onChange:", "setMethodProtocol:", "val", "at:put:", "option", "class:", "do:", "protocols", "select", "ifFalse:", "isNil", "searchReferencesOf:", "selector", "sorted", "messageSends", "ifTrue:ifFalse:", "hideMethodButtons", "or:", "notNil", "hideClassButtons", "showClassButtons", "showMethodButtons", "val:", "source"],
  1802. referencedClasses: []
  1803. }),
  1804. smalltalk.Browser);
  1805. smalltalk.addMethod(
  1806. unescape('_updateStatus'),
  1807. smalltalk.method({
  1808. selector: unescape('updateStatus'),
  1809. category: 'updating',
  1810. fn: function (){
  1811. var self=this;
  1812. (($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;})]);
  1813. return self;},
  1814. args: [],
  1815. source: unescape('updateStatus%0A%09sourceArea%20val%20%3D%20self%20source%0A%09%09ifTrue%3A%20%5B%0A%09%09%09saveButton%20ifNotNil%3A%20%5B%0A%09%09%09%09saveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D.%0A%09%09%09%09unsavedChanges%20%3A%3D%20false%5D%0A%09%09ifFalse%3A%20%5B%0A%09%09%09saveButton%20ifNotNil%3A%20%5B%0A%09%09%09%09saveButton%20removeAt%3A%20%27disabled%27%5D.%0A%09%09%09unsavedChanges%20%3A%3D%20true%5D'),
  1816. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "val", "source", "ifNotNil:", "at:put:", "removeAt:"],
  1817. referencedClasses: []
  1818. }),
  1819. smalltalk.Browser);
  1820. smalltalk.addMethod(
  1821. unescape('_resetClassesList'),
  1822. smalltalk.method({
  1823. selector: unescape('resetClassesList'),
  1824. category: 'updating',
  1825. fn: function (){
  1826. var self=this;
  1827. smalltalk.send(self['@classesList'], "_resetNodes", []);
  1828. return self;},
  1829. args: [],
  1830. source: unescape('resetClassesList%0A%09classesList%20resetNodes'),
  1831. messageSends: ["resetNodes"],
  1832. referencedClasses: []
  1833. }),
  1834. smalltalk.Browser);
  1835. smalltalk.addMethod(
  1836. unescape('_commitPathJs'),
  1837. smalltalk.method({
  1838. selector: unescape('commitPathJs'),
  1839. category: 'accessing',
  1840. fn: function (){
  1841. var self=this;
  1842. return "js";
  1843. return self;},
  1844. args: [],
  1845. source: unescape('commitPathJs%0A%09%5E%27js%27'),
  1846. messageSends: [],
  1847. referencedClasses: []
  1848. }),
  1849. smalltalk.Browser.klass);
  1850. smalltalk.addMethod(
  1851. unescape('_commitPathSt'),
  1852. smalltalk.method({
  1853. selector: unescape('commitPathSt'),
  1854. category: 'accessing',
  1855. fn: function (){
  1856. var self=this;
  1857. return "st";
  1858. return self;},
  1859. args: [],
  1860. source: unescape('commitPathSt%0A%09%5E%27st%27'),
  1861. messageSends: [],
  1862. referencedClasses: []
  1863. }),
  1864. smalltalk.Browser.klass);
  1865. smalltalk.addMethod(
  1866. unescape('_openOn_'),
  1867. smalltalk.method({
  1868. selector: unescape('openOn%3A'),
  1869. category: 'convenience',
  1870. fn: function (aClass){
  1871. var self=this;
  1872. 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", []));
  1873. return self;},
  1874. args: ["aClass"],
  1875. source: unescape('openOn%3A%20aClass%0A%20%20%20%20%5Eself%20new%0A%09open%3B%0A%09selectCategory%3A%20aClass%20category%3B%0A%09selectClass%3A%20aClass'),
  1876. messageSends: ["open", "selectCategory:", "category", "selectClass:", "new"],
  1877. referencedClasses: []
  1878. }),
  1879. smalltalk.Browser.klass);
  1880. smalltalk.addMethod(
  1881. unescape('_open'),
  1882. smalltalk.method({
  1883. selector: unescape('open'),
  1884. category: 'convenience',
  1885. fn: function (){
  1886. var self=this;
  1887. smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  1888. return self;},
  1889. args: [],
  1890. source: unescape('open%0A%20%20%20%20self%20new%20open'),
  1891. messageSends: ["open", "new"],
  1892. referencedClasses: []
  1893. }),
  1894. smalltalk.Browser.klass);
  1895. smalltalk.addClass('Inspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'diveButton', 'sourceArea'], 'IDE');
  1896. smalltalk.addMethod(
  1897. unescape('_label'),
  1898. smalltalk.method({
  1899. selector: unescape('label'),
  1900. category: 'accessing',
  1901. fn: function (){
  1902. var self=this;
  1903. return (($receiver = self['@label']) == nil || $receiver == undefined) ? (function(){return unescape("Inspector%20%28nil%29");})() : $receiver;
  1904. return self;},
  1905. args: [],
  1906. source: unescape('label%0A%09%5Elabel%20ifNil%3A%20%5B%27Inspector%20%28nil%29%27%5D'),
  1907. messageSends: ["ifNil:"],
  1908. referencedClasses: []
  1909. }),
  1910. smalltalk.Inspector);
  1911. smalltalk.addMethod(
  1912. unescape('_variables'),
  1913. smalltalk.method({
  1914. selector: unescape('variables'),
  1915. category: 'accessing',
  1916. fn: function (){
  1917. var self=this;
  1918. return self['@variables'];
  1919. return self;},
  1920. args: [],
  1921. source: unescape('variables%0A%09%5Evariables'),
  1922. messageSends: [],
  1923. referencedClasses: []
  1924. }),
  1925. smalltalk.Inspector);
  1926. smalltalk.addMethod(
  1927. unescape('_setVariables_'),
  1928. smalltalk.method({
  1929. selector: unescape('setVariables%3A'),
  1930. category: 'accessing',
  1931. fn: function (aCollection){
  1932. var self=this;
  1933. self['@variables']=aCollection;
  1934. return self;},
  1935. args: ["aCollection"],
  1936. source: unescape('setVariables%3A%20aCollection%0A%09variables%20%3A%3D%20aCollection'),
  1937. messageSends: [],
  1938. referencedClasses: []
  1939. }),
  1940. smalltalk.Inspector);
  1941. smalltalk.addMethod(
  1942. unescape('_setLabel_'),
  1943. smalltalk.method({
  1944. selector: unescape('setLabel%3A'),
  1945. category: 'accessing',
  1946. fn: function (aString){
  1947. var self=this;
  1948. self['@label']=aString;
  1949. return self;},
  1950. args: ["aString"],
  1951. source: unescape('setLabel%3A%20aString%0A%09label%20%3A%3D%20aString'),
  1952. messageSends: [],
  1953. referencedClasses: []
  1954. }),
  1955. smalltalk.Inspector);
  1956. smalltalk.addMethod(
  1957. unescape('_selectedVariable'),
  1958. smalltalk.method({
  1959. selector: unescape('selectedVariable'),
  1960. category: 'accessing',
  1961. fn: function (){
  1962. var self=this;
  1963. return self['@selectedVariable'];
  1964. return self;},
  1965. args: [],
  1966. source: unescape('selectedVariable%0A%09%5EselectedVariable'),
  1967. messageSends: [],
  1968. referencedClasses: []
  1969. }),
  1970. smalltalk.Inspector);
  1971. smalltalk.addMethod(
  1972. unescape('_selectedVariable_'),
  1973. smalltalk.method({
  1974. selector: unescape('selectedVariable%3A'),
  1975. category: 'accessing',
  1976. fn: function (aString){
  1977. var self=this;
  1978. self['@selectedVariable']=aString;
  1979. return self;},
  1980. args: ["aString"],
  1981. source: unescape('selectedVariable%3A%20aString%0A%09selectedVariable%20%3A%3D%20aString'),
  1982. messageSends: [],
  1983. referencedClasses: []
  1984. }),
  1985. smalltalk.Inspector);
  1986. smalltalk.addMethod(
  1987. unescape('_sourceArea'),
  1988. smalltalk.method({
  1989. selector: unescape('sourceArea'),
  1990. category: 'accessing',
  1991. fn: function (){
  1992. var self=this;
  1993. return self['@sourceArea'];
  1994. return self;},
  1995. args: [],
  1996. source: unescape('sourceArea%0A%09%5EsourceArea'),
  1997. messageSends: [],
  1998. referencedClasses: []
  1999. }),
  2000. smalltalk.Inspector);
  2001. smalltalk.addMethod(
  2002. unescape('_inspect_'),
  2003. smalltalk.method({
  2004. selector: unescape('inspect%3A'),
  2005. category: 'actions',
  2006. fn: function (anObject){
  2007. var self=this;
  2008. self['@object']=anObject;
  2009. self['@variables']=[];
  2010. smalltalk.send(self['@object'], "_inspectOn_", [self]);
  2011. return self;},
  2012. args: ["anObject"],
  2013. source: unescape('inspect%3A%20anObject%0A%09object%20%3A%3D%20anObject.%0A%09variables%20%3A%3D%20%23%28%29.%0A%09object%20inspectOn%3A%20self'),
  2014. messageSends: ["inspectOn:"],
  2015. referencedClasses: []
  2016. }),
  2017. smalltalk.Inspector);
  2018. smalltalk.addMethod(
  2019. unescape('_dive'),
  2020. smalltalk.method({
  2021. selector: unescape('dive'),
  2022. category: 'actions',
  2023. fn: function (){
  2024. var self=this;
  2025. smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_inspect", []);
  2026. return self;},
  2027. args: [],
  2028. source: unescape('dive%0A%09%28self%20variables%20at%3A%20self%20selectedVariable%29%20inspect'),
  2029. messageSends: ["inspect", "at:", "variables", "selectedVariable"],
  2030. referencedClasses: []
  2031. }),
  2032. smalltalk.Inspector);
  2033. smalltalk.addMethod(
  2034. unescape('_refresh'),
  2035. smalltalk.method({
  2036. selector: unescape('refresh'),
  2037. category: 'actions',
  2038. fn: function (){
  2039. var self=this;
  2040. (function($rec){smalltalk.send($rec, "_inspect_", [self['@object']]);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
  2041. return self;},
  2042. args: [],
  2043. source: unescape('refresh%0A%09self%20%0A%09%09inspect%3A%20object%3B%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea'),
  2044. messageSends: ["inspect:", "updateVariablesList", "updateValueTextarea"],
  2045. referencedClasses: []
  2046. }),
  2047. smalltalk.Inspector);
  2048. smalltalk.addMethod(
  2049. unescape('_renderBoxOn_'),
  2050. smalltalk.method({
  2051. selector: unescape('renderBoxOn%3A'),
  2052. category: 'rendering',
  2053. fn: function (html){
  2054. var self=this;
  2055. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  2056. return self;},
  2057. args: ["html"],
  2058. source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderTopPanelOn%3A%20html%3B%0A%09%09renderBottomPanelOn%3A%20html'),
  2059. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  2060. referencedClasses: []
  2061. }),
  2062. smalltalk.Inspector);
  2063. smalltalk.addMethod(
  2064. unescape('_renderTopPanelOn_'),
  2065. smalltalk.method({
  2066. selector: unescape('renderTopPanelOn%3A'),
  2067. category: 'rendering',
  2068. fn: function (html){
  2069. var self=this;
  2070. (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", []));
  2071. (function($rec){smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
  2072. return self;},
  2073. args: ["html"],
  2074. source: unescape('renderTopPanelOn%3A%20html%0A%09html%20div%20%0A%09%09class%3A%20%27top%27%3B%20%0A%09%09with%3A%20%5B%0A%09%09%09variablesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20variables%27.%0A%09%09%09valueTextarea%20%3A%3D%20html%20textarea%20class%3A%20%27jt_column%20value%27%3B%20at%3A%20%27readonly%27%20put%3A%20%27readonly%27.%0A%09%09%09html%20div%20class%3A%20%27jt_tabs%20inspector%27%3B%20with%3A%20%5B%0A%09%09%09%09html%20button%0A%09%09%09%09%09class%3A%20%27jt_button%20inspector%20refresh%27%3B%0A%09%09%09%09%09with%3A%20%27Refresh%27%3B%0A%09%09%09%09%09onClick%3A%20%5Bself%20refresh%5D.%0A%09%09%09%09diveButton%20%3A%3D%20html%20button%20%0A%09%09%09%09%09class%3A%20%27jt_button%20inspector%20dive%27%3B%0A%09%09%09%09%09with%3A%20%27Dive%27%3B%20%0A%09%09%09%09%09onClick%3A%20%5Bself%20dive%5D%5D.%0A%09%09%09html%20div%20class%3A%20%27jt_clear%27%5D.%0A%09self%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea.'),
  2075. messageSends: ["class:", "with:", "ul", "at:put:", "textarea", "onClick:", "refresh", "button", "dive", "div", "updateVariablesList", "updateValueTextarea"],
  2076. referencedClasses: []
  2077. }),
  2078. smalltalk.Inspector);
  2079. smalltalk.addMethod(
  2080. unescape('_renderBottomPanelOn_'),
  2081. smalltalk.method({
  2082. selector: unescape('renderBottomPanelOn%3A'),
  2083. category: 'rendering',
  2084. fn: function (html){
  2085. var self=this;
  2086. (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", []));
  2087. return self;},
  2088. args: ["html"],
  2089. source: unescape('renderBottomPanelOn%3A%20html%0A%20%20%20%20html%20div%0A%09class%3A%20%27jt_sourceCode%27%3B%0A%09with%3A%20%5B%0A%09%20%20%20%20sourceArea%20%3A%3D%20SourceArea%20new%0A%09%09receiver%3A%20object%3B%0A%09%09onDoIt%3A%20%5Bself%20refresh%5D%3B%0A%09%09yourself.%0A%20%20%20%20%20%20%20%20%20%20%20%20sourceArea%20renderOn%3A%20html%5D'),
  2090. messageSends: ["class:", "with:", "receiver:", "onDoIt:", "refresh", "yourself", "new", "renderOn:", "div"],
  2091. referencedClasses: []
  2092. }),
  2093. smalltalk.Inspector);
  2094. smalltalk.addMethod(
  2095. unescape('_renderButtonsOn_'),
  2096. smalltalk.method({
  2097. selector: unescape('renderButtonsOn%3A'),
  2098. category: 'rendering',
  2099. fn: function (html){
  2100. var self=this;
  2101. (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", []));
  2102. (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", []));
  2103. (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", []));
  2104. smalltalk.send(self, "_updateButtons", []);
  2105. return self;},
  2106. args: ["html"],
  2107. source: unescape('renderButtonsOn%3A%20html%0A%09html%20button%20%0A%09%09with%3A%20%27DoIt%27%3B%0A%09%09onClick%3A%20%5Bself%20sourceArea%20doIt%5D.%0A%09html%20button%20%0A%09%09with%3A%20%27PrintIt%27%3B%0A%09%09onClick%3A%20%5Bself%20sourceArea%20printIt%5D.%0A%09html%20button%20%0A%09%09with%3A%20%27InspectIt%27%3B%0A%09%09onClick%3A%20%5Bself%20sourceArea%20inspectIt%5D.%0A%09self%20updateButtons'),
  2108. messageSends: ["with:", "onClick:", "doIt", "sourceArea", "button", "printIt", "inspectIt", "updateButtons"],
  2109. referencedClasses: []
  2110. }),
  2111. smalltalk.Inspector);
  2112. smalltalk.addMethod(
  2113. unescape('_canBeClosed'),
  2114. smalltalk.method({
  2115. selector: unescape('canBeClosed'),
  2116. category: 'testing',
  2117. fn: function (){
  2118. var self=this;
  2119. return true;
  2120. return self;},
  2121. args: [],
  2122. source: unescape('canBeClosed%0A%09%5Etrue'),
  2123. messageSends: [],
  2124. referencedClasses: []
  2125. }),
  2126. smalltalk.Inspector);
  2127. smalltalk.addMethod(
  2128. unescape('_updateVariablesList'),
  2129. smalltalk.method({
  2130. selector: unescape('updateVariablesList'),
  2131. category: 'updating',
  2132. fn: function (){
  2133. var self=this;
  2134. smalltalk.send(self['@variablesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_keys", []), "_do_", [(function(each){var li=nil;
  2135. 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"]);})]);})]);})]);
  2136. return self;},
  2137. args: [],
  2138. source: unescape('updateVariablesList%0A%09variablesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20variables%20keys%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%09%09li%20%3A%3D%20html%20li.%0A%09%09%09li%0A%09%09%09%09with%3A%20each%3B%0A%09%09%09%09onClick%3A%20%5Bself%20selectVariable%3A%20each%5D.%0A%09%09%09self%20selectedVariable%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09%09%09li%20class%3A%20%27selected%27%5D%5D%5D'),
  2139. messageSends: ["contents:", "do:", "keys", "variables", "li", "with:", "onClick:", "selectVariable:", "ifTrue:", unescape("%3D"), "selectedVariable", "class:"],
  2140. referencedClasses: []
  2141. }),
  2142. smalltalk.Inspector);
  2143. smalltalk.addMethod(
  2144. unescape('_selectVariable_'),
  2145. smalltalk.method({
  2146. selector: unescape('selectVariable%3A'),
  2147. category: 'updating',
  2148. fn: function (aString){
  2149. var self=this;
  2150. smalltalk.send(self, "_selectedVariable_", [aString]);
  2151. (function($rec){smalltalk.send($rec, "_updateVariablesList", []);smalltalk.send($rec, "_updateValueTextarea", []);return smalltalk.send($rec, "_updateButtons", []);})(self);
  2152. return self;},
  2153. args: ["aString"],
  2154. source: unescape('selectVariable%3A%20aString%0A%09self%20selectedVariable%3A%20aString.%0A%09self%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea%3B%0A%09%09updateButtons'),
  2155. messageSends: ["selectedVariable:", "updateVariablesList", "updateValueTextarea", "updateButtons"],
  2156. referencedClasses: []
  2157. }),
  2158. smalltalk.Inspector);
  2159. smalltalk.addMethod(
  2160. unescape('_updateValueTextarea'),
  2161. smalltalk.method({
  2162. selector: unescape('updateValueTextarea'),
  2163. category: 'updating',
  2164. fn: function (){
  2165. var self=this;
  2166. 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", []);})])]);
  2167. return self;},
  2168. args: [],
  2169. source: unescape('updateValueTextarea%0A%09valueTextarea%20asJQuery%20val%3A%20%28self%20selectedVariable%20isNil%0A%09%09ifTrue%3A%20%5B%27%27%5D%0A%09%09ifFalse%3A%20%5B%28self%20variables%20at%3A%20self%20selectedVariable%29%20printString%5D%29'),
  2170. messageSends: ["val:", "asJQuery", "ifTrue:ifFalse:", "isNil", "selectedVariable", "printString", "at:", "variables"],
  2171. referencedClasses: []
  2172. }),
  2173. smalltalk.Inspector);
  2174. smalltalk.addMethod(
  2175. unescape('_updateButtons'),
  2176. smalltalk.method({
  2177. selector: unescape('updateButtons'),
  2178. category: 'updating',
  2179. fn: function (){
  2180. var self=this;
  2181. (($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"]);})]);
  2182. return self;},
  2183. args: [],
  2184. source: unescape('updateButtons%0A%09%28self%20selectedVariable%20notNil%20and%3A%20%5B%28self%20variables%20at%3A%20self%20selectedVariable%29%20notNil%5D%29%0A%09%09ifFalse%3A%20%5BdiveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D%20%0A%09%09ifTrue%3A%20%5BdiveButton%20removeAt%3A%20%27disabled%27%5D'),
  2185. messageSends: ["ifFalse:ifTrue:", "and:", "notNil", "selectedVariable", "at:", "variables", "at:put:", "removeAt:"],
  2186. referencedClasses: []
  2187. }),
  2188. smalltalk.Inspector);
  2189. smalltalk.addMethod(
  2190. unescape('_on_'),
  2191. smalltalk.method({
  2192. selector: unescape('on%3A'),
  2193. category: 'instance creation',
  2194. fn: function (anObject){
  2195. var self=this;
  2196. return (function($rec){smalltalk.send($rec, "_inspect_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  2197. return self;},
  2198. args: ["anObject"],
  2199. source: unescape('on%3A%20anObject%0A%09%5Eself%20new%0A%09%09inspect%3A%20anObject%3B%0A%09%09yourself'),
  2200. messageSends: ["inspect:", "yourself", "new"],
  2201. referencedClasses: []
  2202. }),
  2203. smalltalk.Inspector.klass);
  2204. smalltalk.addClass('ReferencesBrowser', smalltalk.TabWidget, ['implementors', 'senders', 'implementorsList', 'input', 'timer', 'selector', 'sendersList', 'referencedClasses', 'referencedClassesList'], 'IDE');
  2205. smalltalk.addMethod(
  2206. unescape('_implementors'),
  2207. smalltalk.method({
  2208. selector: unescape('implementors'),
  2209. category: 'accessing',
  2210. fn: function (){
  2211. var self=this;
  2212. return (($receiver = self['@implementors']) == nil || $receiver == undefined) ? (function(){return self['@implementors']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  2213. return self;},
  2214. args: [],
  2215. source: unescape('implementors%0A%09%5Eimplementors%20ifNil%3A%20%5Bimplementors%20%3A%3D%20Array%20new%5D'),
  2216. messageSends: ["ifNil:", "new"],
  2217. referencedClasses: [smalltalk.Array]
  2218. }),
  2219. smalltalk.ReferencesBrowser);
  2220. smalltalk.addMethod(
  2221. unescape('_label'),
  2222. smalltalk.method({
  2223. selector: unescape('label'),
  2224. category: 'accessing',
  2225. fn: function (){
  2226. var self=this;
  2227. return unescape("%5BReferences%5D");
  2228. return self;},
  2229. args: [],
  2230. source: unescape('label%0A%09%5E%27%5BReferences%5D%27'),
  2231. messageSends: [],
  2232. referencedClasses: []
  2233. }),
  2234. smalltalk.ReferencesBrowser);
  2235. smalltalk.addMethod(
  2236. unescape('_selector'),
  2237. smalltalk.method({
  2238. selector: unescape('selector'),
  2239. category: 'accessing',
  2240. fn: function (){
  2241. var self=this;
  2242. return self['@selector'];
  2243. return self;},
  2244. args: [],
  2245. source: unescape('selector%0A%09%5Eselector'),
  2246. messageSends: [],
  2247. referencedClasses: []
  2248. }),
  2249. smalltalk.ReferencesBrowser);
  2250. smalltalk.addMethod(
  2251. unescape('_senders'),
  2252. smalltalk.method({
  2253. selector: unescape('senders'),
  2254. category: 'accessing',
  2255. fn: function (){
  2256. var self=this;
  2257. return (($receiver = self['@senders']) == nil || $receiver == undefined) ? (function(){return self['@senders']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  2258. return self;},
  2259. args: [],
  2260. source: unescape('senders%0A%09%5Esenders%20ifNil%3A%20%5Bsenders%20%3A%3D%20Array%20new%5D'),
  2261. messageSends: ["ifNil:", "new"],
  2262. referencedClasses: [smalltalk.Array]
  2263. }),
  2264. smalltalk.ReferencesBrowser);
  2265. smalltalk.addMethod(
  2266. unescape('_classesAndMetaclasses'),
  2267. smalltalk.method({
  2268. selector: unescape('classesAndMetaclasses'),
  2269. category: 'accessing',
  2270. fn: function (){
  2271. var self=this;
  2272. 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", []);})])]);
  2273. return self;},
  2274. args: [],
  2275. source: unescape('classesAndMetaclasses%0A%09%5ESmalltalk%20current%20classes%2C%20%28Smalltalk%20current%20classes%20collect%3A%20%5B%3Aeach%20%7C%20each%20class%5D%29'),
  2276. messageSends: [unescape("%2C"), "classes", "current", "collect:", "class"],
  2277. referencedClasses: [smalltalk.Smalltalk]
  2278. }),
  2279. smalltalk.ReferencesBrowser);
  2280. smalltalk.addMethod(
  2281. unescape('_referencedClasses'),
  2282. smalltalk.method({
  2283. selector: unescape('referencedClasses'),
  2284. category: 'accessing',
  2285. fn: function (){
  2286. var self=this;
  2287. return (($receiver = self['@referencedClasses']) == nil || $receiver == undefined) ? (function(){return self['@referencedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  2288. return self;},
  2289. args: [],
  2290. source: unescape('referencedClasses%0A%09%5EreferencedClasses%20ifNil%3A%20%5BreferencedClasses%20%3A%3D%20Array%20new%5D'),
  2291. messageSends: ["ifNil:", "new"],
  2292. referencedClasses: [smalltalk.Array]
  2293. }),
  2294. smalltalk.ReferencesBrowser);
  2295. smalltalk.addMethod(
  2296. unescape('_openBrowserOn_'),
  2297. smalltalk.method({
  2298. selector: unescape('openBrowserOn%3A'),
  2299. category: 'actions',
  2300. fn: function (aMethod){
  2301. var self=this;
  2302. var browser=nil;
  2303. 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", []);})])]);
  2304. (($receiver = smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(browser, "_selectTab_", ["class"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(browser, "_selectTab_", ["class"]);})]);
  2305. (function($rec){smalltalk.send($rec, "_selectProtocol_", [smalltalk.send(aMethod, "_category", [])]);return smalltalk.send($rec, "_selectMethod_", [aMethod]);})(browser);
  2306. return self;},
  2307. args: ["aMethod"],
  2308. source: unescape('openBrowserOn%3A%20aMethod%0A%20%20%20%20%20%20%20%7C%20browser%20%7C%0A%20%20%20%20%20%20%20browser%20%3A%3D%20Browser%20openOn%3A%20%28aMethod%20methodClass%20isMetaclass%20%0A%09%09ifTrue%3A%20%5BaMethod%20methodClass%20instanceClass%5D%20ifFalse%3A%20%5BaMethod%20methodClass%5D%29.%0A%20%20%20%20%20%20%20aMethod%20methodClass%20isMetaclass%20ifTrue%3A%20%5Bbrowser%20selectTab%3A%20%23class%5D.%0A%20%20%20%20%20%20%20browser%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectProtocol%3A%20aMethod%20category%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectMethod%3A%20aMethod'),
  2309. messageSends: ["openOn:", "ifTrue:ifFalse:", "isMetaclass", "methodClass", "instanceClass", "ifTrue:", "selectTab:", "selectProtocol:", "category", "selectMethod:"],
  2310. referencedClasses: [smalltalk.Browser]
  2311. }),
  2312. smalltalk.ReferencesBrowser);
  2313. smalltalk.addMethod(
  2314. unescape('_searchReferencesFor_'),
  2315. smalltalk.method({
  2316. selector: unescape('searchReferencesFor%3A'),
  2317. category: 'actions',
  2318. fn: function (aString){
  2319. var self=this;
  2320. self['@selector']=aString;
  2321. self['@implementors']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2322. self['@senders']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2323. self['@referencedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2324. (($receiver = smalltalk.send(self['@selector'], "_match_", [unescape("%5E%5BA-Z%5D")])).klass === smalltalk.Boolean) ? (! $receiver ? (function(){return smalltalk.send(self, "_searchSelectorReferencesFor_", [self['@selector']]);})() : (function(){return smalltalk.send(self, "_searchReferencedClassesFor_", [self['@selector']]);})()) : smalltalk.send($receiver, "_ifFalse_ifTrue_", [(function(){return smalltalk.send(self, "_searchSelectorReferencesFor_", [self['@selector']]);}), (function(){return smalltalk.send(self, "_searchReferencedClassesFor_", [self['@selector']]);})]);
  2325. return self;},
  2326. args: ["aString"],
  2327. source: unescape('searchReferencesFor%3A%20aString%0A%09selector%20%3A%3D%20aString.%0A%09implementors%20%3A%3D%20Array%20new.%0A%09senders%20%3A%3D%20Array%20new.%0A%09referencedClasses%20%3A%3D%20Array%20new.%0A%09%28selector%20match%3A%20%27%5E%5BA-Z%5D%27%29%20%0A%09%09ifFalse%3A%20%5Bself%20searchSelectorReferencesFor%3A%20selector%5D%0A%09%09ifTrue%3A%20%5Bself%20searchReferencedClassesFor%3A%20selector%5D'),
  2328. messageSends: ["new", "ifFalse:ifTrue:", "match:", "searchSelectorReferencesFor:", "searchReferencedClassesFor:"],
  2329. referencedClasses: [smalltalk.Array]
  2330. }),
  2331. smalltalk.ReferencesBrowser);
  2332. smalltalk.addMethod(
  2333. unescape('_search_'),
  2334. smalltalk.method({
  2335. selector: unescape('search%3A'),
  2336. category: 'actions',
  2337. fn: function (aString){
  2338. var self=this;
  2339. (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);smalltalk.send($rec, "_updateImplementorsList", []);smalltalk.send($rec, "_updateSendersList", []);return smalltalk.send($rec, "_updateReferencedClassesList", []);})(self);
  2340. return self;},
  2341. args: ["aString"],
  2342. source: unescape('search%3A%20aString%0A%09self%20%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09updateImplementorsList%3B%0A%09%09updateSendersList%3B%0A%09%09updateReferencedClassesList'),
  2343. messageSends: ["searchReferencesFor:", "updateImplementorsList", "updateSendersList", "updateReferencedClassesList"],
  2344. referencedClasses: []
  2345. }),
  2346. smalltalk.ReferencesBrowser);
  2347. smalltalk.addMethod(
  2348. unescape('_searchReferencedClassesFor_'),
  2349. smalltalk.method({
  2350. selector: unescape('searchReferencedClassesFor%3A'),
  2351. category: 'actions',
  2352. fn: function (aString){
  2353. var self=this;
  2354. smalltalk.send(smalltalk.send(self, "_classesAndMetaclasses", []), "_do_", [(function(each){return smalltalk.send(smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_values", []), "_do_", [(function(value){return (($receiver = smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(value, "_referencedClasses", []), "_select_", [(function(each){return smalltalk.send(each, "_notNil", []);})]), "_collect_", [(function(each){return smalltalk.send(each, "_name", []);})]), "_includes_", [self['@selector']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_add_", [value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_referencedClasses", []), "_add_", [value]);})]);})]);})]);
  2355. return self;},
  2356. args: ["aString"],
  2357. source: unescape('searchReferencedClassesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%09each%20methodDictionary%20values%20do%3A%20%5B%3Avalue%20%7C%0A%09%09%09%28%28%28value%20referencedClasses%20select%3A%20%5B%3Aeach%20%7C%20each%20notNil%5D%29collect%3A%20%5B%3Aeach%20%7C%20each%20name%5D%29%20includes%3A%20selector%29%20ifTrue%3A%20%5B%0A%09%09%09%09self%20referencedClasses%20add%3A%20value%5D%5D%5D'),
  2358. messageSends: ["do:", "classesAndMetaclasses", "values", "methodDictionary", "ifTrue:", "includes:", "collect:", "select:", "referencedClasses", "notNil", "name", "add:"],
  2359. referencedClasses: []
  2360. }),
  2361. smalltalk.ReferencesBrowser);
  2362. smalltalk.addMethod(
  2363. unescape('_searchSelectorReferencesFor_'),
  2364. smalltalk.method({
  2365. selector: unescape('searchSelectorReferencesFor%3A'),
  2366. category: 'actions',
  2367. fn: function (aString){
  2368. var self=this;
  2369. smalltalk.send(smalltalk.send(self, "_classesAndMetaclasses", []), "_do_", [(function(each){smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keysAndValuesDo_", [(function(key, value){return (($receiver = smalltalk.send(key, "__eq", [self['@selector']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_implementors", []), "_add_", [value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_implementors", []), "_add_", [value]);})]);})]);return smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keysAndValuesDo_", [(function(key, value){return (($receiver = smalltalk.send(smalltalk.send(value, "_messageSends", []), "_includes_", [self['@selector']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_senders", []), "_add_", [value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_senders", []), "_add_", [value]);})]);})]);})]);
  2370. return self;},
  2371. args: ["aString"],
  2372. source: unescape('searchSelectorReferencesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09key%20%3D%20selector%20ifTrue%3A%20%5Bself%20implementors%20add%3A%20value%5D%5D.%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09%28value%20messageSends%20includes%3A%20selector%29%20ifTrue%3A%20%5B%0A%09%09%09%09self%20senders%20add%3A%20value%5D%5D%5D'),
  2373. messageSends: ["do:", "classesAndMetaclasses", "keysAndValuesDo:", "methodDictionary", "ifTrue:", unescape("%3D"), "add:", "implementors", "includes:", "messageSends", "senders"],
  2374. referencedClasses: []
  2375. }),
  2376. smalltalk.ReferencesBrowser);
  2377. smalltalk.addMethod(
  2378. unescape('_initialize'),
  2379. smalltalk.method({
  2380. selector: unescape('initialize'),
  2381. category: 'initialization',
  2382. fn: function (){
  2383. var self=this;
  2384. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  2385. self['@selector']="";
  2386. return self;},
  2387. args: [],
  2388. source: unescape('initialize%0A%09super%20initialize.%0A%09selector%20%3A%3D%20%27%27'),
  2389. messageSends: ["initialize"],
  2390. referencedClasses: []
  2391. }),
  2392. smalltalk.ReferencesBrowser);
  2393. smalltalk.addMethod(
  2394. unescape('_setInputEvents'),
  2395. smalltalk.method({
  2396. selector: unescape('setInputEvents'),
  2397. category: 'private',
  2398. fn: function (){
  2399. var self=this;
  2400. (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']);
  2401. return self;},
  2402. args: [],
  2403. source: unescape('setInputEvents%0A%09input%0A%09%09onKeyUp%3A%20%5Btimer%20%3A%3D%20%5Bself%20search%3A%20input%20asJQuery%20val%5D%20valueWithTimeout%3A%20100%5D%3B%0A%09%09onKeyDown%3A%20%5Btimer%20ifNotNil%3A%20%5Btimer%20clearTimeout%5D%5D'),
  2404. messageSends: ["onKeyUp:", "valueWithTimeout:", "search:", "val", "asJQuery", "onKeyDown:", "ifNotNil:", "clearTimeout"],
  2405. referencedClasses: []
  2406. }),
  2407. smalltalk.ReferencesBrowser);
  2408. smalltalk.addMethod(
  2409. unescape('_renderBoxOn_'),
  2410. smalltalk.method({
  2411. selector: unescape('renderBoxOn%3A'),
  2412. category: 'rendering',
  2413. fn: function (html){
  2414. var self=this;
  2415. (function($rec){smalltalk.send($rec, "_renderInputOn_", [html]);smalltalk.send($rec, "_renderImplementorsOn_", [html]);smalltalk.send($rec, "_renderSendersOn_", [html]);return smalltalk.send($rec, "_renderReferencedClassesOn_", [html]);})(self);
  2416. return self;},
  2417. args: ["html"],
  2418. source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderInputOn%3A%20html%3B%0A%09%09renderImplementorsOn%3A%20html%3B%0A%09%09renderSendersOn%3A%20html%3B%0A%09%09renderReferencedClassesOn%3A%20html'),
  2419. messageSends: ["renderInputOn:", "renderImplementorsOn:", "renderSendersOn:", "renderReferencedClassesOn:"],
  2420. referencedClasses: []
  2421. }),
  2422. smalltalk.ReferencesBrowser);
  2423. smalltalk.addMethod(
  2424. unescape('_renderInputOn_'),
  2425. smalltalk.method({
  2426. selector: unescape('renderInputOn%3A'),
  2427. category: 'rendering',
  2428. fn: function (html){
  2429. var self=this;
  2430. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  2431. smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val_", [self['@selector']]);
  2432. smalltalk.send(self, "_setInputEvents", []);
  2433. return self;},
  2434. args: ["html"],
  2435. source: unescape('renderInputOn%3A%20html%0A%09input%20%3A%3D%20html%20input%20%0A%09%09class%3A%20%27implementors%27%3B%0A%09%09yourself.%0A%09input%20asJQuery%20val%3A%20selector.%0A%09self%20setInputEvents'),
  2436. messageSends: ["class:", "yourself", "input", "val:", "asJQuery", "setInputEvents"],
  2437. referencedClasses: []
  2438. }),
  2439. smalltalk.ReferencesBrowser);
  2440. smalltalk.addMethod(
  2441. unescape('_renderImplementorsOn_'),
  2442. smalltalk.method({
  2443. selector: unescape('renderImplementorsOn%3A'),
  2444. category: 'rendering',
  2445. fn: function (html){
  2446. var self=this;
  2447. self['@implementorsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column implementors"]);
  2448. smalltalk.send(self, "_updateImplementorsList", []);
  2449. return self;},
  2450. args: ["html"],
  2451. source: unescape('renderImplementorsOn%3A%20html%0A%09implementorsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20implementors%27.%0A%09self%20updateImplementorsList'),
  2452. messageSends: ["class:", "ul", "updateImplementorsList"],
  2453. referencedClasses: []
  2454. }),
  2455. smalltalk.ReferencesBrowser);
  2456. smalltalk.addMethod(
  2457. unescape('_renderSendersOn_'),
  2458. smalltalk.method({
  2459. selector: unescape('renderSendersOn%3A'),
  2460. category: 'rendering',
  2461. fn: function (html){
  2462. var self=this;
  2463. self['@sendersList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column senders"]);
  2464. smalltalk.send(self, "_updateSendersList", []);
  2465. return self;},
  2466. args: ["html"],
  2467. source: unescape('renderSendersOn%3A%20html%0A%09sendersList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20senders%27.%0A%09self%20updateSendersList'),
  2468. messageSends: ["class:", "ul", "updateSendersList"],
  2469. referencedClasses: []
  2470. }),
  2471. smalltalk.ReferencesBrowser);
  2472. smalltalk.addMethod(
  2473. unescape('_renderReferencedClassesOn_'),
  2474. smalltalk.method({
  2475. selector: unescape('renderReferencedClassesOn%3A'),
  2476. category: 'rendering',
  2477. fn: function (html){
  2478. var self=this;
  2479. self['@referencedClassesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column referenced_classes"]);
  2480. smalltalk.send(self, "_updateReferencedClassesList", []);
  2481. return self;},
  2482. args: ["html"],
  2483. source: unescape('renderReferencedClassesOn%3A%20html%0A%09referencedClassesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20referenced_classes%27.%0A%09self%20updateReferencedClassesList'),
  2484. messageSends: ["class:", "ul", "updateReferencedClassesList"],
  2485. referencedClasses: []
  2486. }),
  2487. smalltalk.ReferencesBrowser);
  2488. smalltalk.addMethod(
  2489. unescape('_canBeClosed'),
  2490. smalltalk.method({
  2491. selector: unescape('canBeClosed'),
  2492. category: 'testing',
  2493. fn: function (){
  2494. var self=this;
  2495. return true;
  2496. return self;},
  2497. args: [],
  2498. source: unescape('canBeClosed%0A%09%5Etrue'),
  2499. messageSends: [],
  2500. referencedClasses: []
  2501. }),
  2502. smalltalk.ReferencesBrowser);
  2503. smalltalk.addMethod(
  2504. unescape('_updateImplementorsList'),
  2505. smalltalk.method({
  2506. selector: unescape('updateImplementorsList'),
  2507. category: 'updating',
  2508. fn: function (){
  2509. var self=this;
  2510. 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;
  2511. 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);})]);})]);
  2512. return self;},
  2513. args: [],
  2514. source: unescape('updateImplementorsList%0A%20%20%20%20implementorsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Implementors%20%28%27%2C%20self%20implementors%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20implementors%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20li%0A%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20self%20selector%29%3B%0A%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2515. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "implementors", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2516. referencedClasses: []
  2517. }),
  2518. smalltalk.ReferencesBrowser);
  2519. smalltalk.addMethod(
  2520. unescape('_updateSendersList'),
  2521. smalltalk.method({
  2522. selector: unescape('updateSendersList'),
  2523. category: 'updating',
  2524. fn: function (){
  2525. var self=this;
  2526. 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", []));})]);})]);
  2527. return self;},
  2528. args: [],
  2529. source: unescape('updateSendersList%0A%09sendersList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Senders%20%28%27%2C%20self%20senders%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20senders%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%0A%09%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%29%3B%0A%09%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2530. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "senders", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2531. referencedClasses: []
  2532. }),
  2533. smalltalk.ReferencesBrowser);
  2534. smalltalk.addMethod(
  2535. unescape('_updateReferencedClassesList'),
  2536. smalltalk.method({
  2537. selector: unescape('updateReferencedClassesList'),
  2538. category: 'updating',
  2539. fn: function (){
  2540. var self=this;
  2541. 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", []));})]);})]);
  2542. return self;},
  2543. args: [],
  2544. source: unescape('updateReferencedClassesList%0A%09referencedClassesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09html%20li%0A%09%09class%3A%20%27column_label%27%3B%20%0A%09%09with%3A%20%27Class%20references%20%28%27%2C%20self%20referencedClasses%20size%20asString%2C%20%27%29%27%3B%0A%09%09style%3A%20%27font-weight%3A%20bold%27.%0A%09self%20referencedClasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%0A%09%09%09with%3A%20%28each%20methodClass%20asString%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%29%3B%0A%09%09%09onClick%3A%20%5Bself%20openBrowserOn%3A%20each%5D%5D%5D'),
  2545. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "referencedClasses", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2546. referencedClasses: []
  2547. }),
  2548. smalltalk.ReferencesBrowser);
  2549. smalltalk.addMethod(
  2550. unescape('_search_'),
  2551. smalltalk.method({
  2552. selector: unescape('search%3A'),
  2553. category: 'instance creation',
  2554. fn: function (aString){
  2555. var self=this;
  2556. return (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(self, "_new", []));
  2557. return self;},
  2558. args: ["aString"],
  2559. source: unescape('search%3A%20aString%0A%09%5Eself%20new%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09open'),
  2560. messageSends: ["searchReferencesFor:", "open", "new"],
  2561. referencedClasses: []
  2562. }),
  2563. smalltalk.ReferencesBrowser.klass);
  2564. smalltalk.addClass('SourceArea', smalltalk.Widget, ['editor', 'div', 'receiver', 'onDoIt'], 'IDE');
  2565. smalltalk.addMethod(
  2566. unescape('_val'),
  2567. smalltalk.method({
  2568. selector: unescape('val'),
  2569. category: 'accessing',
  2570. fn: function (){
  2571. var self=this;
  2572. return smalltalk.send(self['@editor'], "_getValue", []);
  2573. return self;},
  2574. args: [],
  2575. source: unescape('val%0A%20%20%20%20%5Eeditor%20getValue'),
  2576. messageSends: ["getValue"],
  2577. referencedClasses: []
  2578. }),
  2579. smalltalk.SourceArea);
  2580. smalltalk.addMethod(
  2581. unescape('_val_'),
  2582. smalltalk.method({
  2583. selector: unescape('val%3A'),
  2584. category: 'accessing',
  2585. fn: function (aString){
  2586. var self=this;
  2587. smalltalk.send(self['@editor'], "_setValue_", [aString]);
  2588. return self;},
  2589. args: ["aString"],
  2590. source: unescape('val%3A%20aString%0A%20%20%20%20editor%20setValue%3A%20aString'),
  2591. messageSends: ["setValue:"],
  2592. referencedClasses: []
  2593. }),
  2594. smalltalk.SourceArea);
  2595. smalltalk.addMethod(
  2596. unescape('_currentLine'),
  2597. smalltalk.method({
  2598. selector: unescape('currentLine'),
  2599. category: 'accessing',
  2600. fn: function (){
  2601. var self=this;
  2602. return smalltalk.send(self['@editor'], "_getLine_", [smalltalk.send(smalltalk.send(self['@editor'], "_getCursor", []), "_line", [])]);
  2603. return self;},
  2604. args: [],
  2605. source: unescape('currentLine%0A%20%20%20%20%5Eeditor%20getLine%3A%20%28editor%20getCursor%20line%29'),
  2606. messageSends: ["getLine:", "line", "getCursor"],
  2607. referencedClasses: []
  2608. }),
  2609. smalltalk.SourceArea);
  2610. smalltalk.addMethod(
  2611. unescape('_selection'),
  2612. smalltalk.method({
  2613. selector: unescape('selection'),
  2614. category: 'accessing',
  2615. fn: function (){
  2616. var self=this;
  2617. return smalltalk.send(self['@editor'], "_getSelection", []);
  2618. return self;},
  2619. args: [],
  2620. source: unescape('selection%0A%09%5Eeditor%20getSelection'),
  2621. messageSends: ["getSelection"],
  2622. referencedClasses: []
  2623. }),
  2624. smalltalk.SourceArea);
  2625. smalltalk.addMethod(
  2626. unescape('_selectionEnd'),
  2627. smalltalk.method({
  2628. selector: unescape('selectionEnd'),
  2629. category: 'accessing',
  2630. fn: function (){
  2631. var self=this;
  2632. return smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionEnd", []);
  2633. return self;},
  2634. args: [],
  2635. source: unescape('selectionEnd%0A%20%20%20%5Etextarea%20element%20selectionEnd'),
  2636. messageSends: ["selectionEnd", "element"],
  2637. referencedClasses: []
  2638. }),
  2639. smalltalk.SourceArea);
  2640. smalltalk.addMethod(
  2641. unescape('_selectionStart'),
  2642. smalltalk.method({
  2643. selector: unescape('selectionStart'),
  2644. category: 'accessing',
  2645. fn: function (){
  2646. var self=this;
  2647. return smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionStart", []);
  2648. return self;},
  2649. args: [],
  2650. source: unescape('selectionStart%0A%20%20%20%5Etextarea%20element%20selectionStart'),
  2651. messageSends: ["selectionStart", "element"],
  2652. referencedClasses: []
  2653. }),
  2654. smalltalk.SourceArea);
  2655. smalltalk.addMethod(
  2656. unescape('_selectionStart_'),
  2657. smalltalk.method({
  2658. selector: unescape('selectionStart%3A'),
  2659. category: 'accessing',
  2660. fn: function (anInteger){
  2661. var self=this;
  2662. smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionStart_", [anInteger]);
  2663. return self;},
  2664. args: ["anInteger"],
  2665. source: unescape('selectionStart%3A%20anInteger%0A%20%20%20textarea%20element%20selectionStart%3A%20anInteger'),
  2666. messageSends: ["selectionStart:", "element"],
  2667. referencedClasses: []
  2668. }),
  2669. smalltalk.SourceArea);
  2670. smalltalk.addMethod(
  2671. unescape('_selectionEnd_'),
  2672. smalltalk.method({
  2673. selector: unescape('selectionEnd%3A'),
  2674. category: 'accessing',
  2675. fn: function (anInteger){
  2676. var self=this;
  2677. smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionEnd_", [anInteger]);
  2678. return self;},
  2679. args: ["anInteger"],
  2680. source: unescape('selectionEnd%3A%20anInteger%0A%20%20%20textarea%20element%20selectionEnd%3A%20anInteger'),
  2681. messageSends: ["selectionEnd:", "element"],
  2682. referencedClasses: []
  2683. }),
  2684. smalltalk.SourceArea);
  2685. smalltalk.addMethod(
  2686. unescape('_setEditorOn_'),
  2687. smalltalk.method({
  2688. selector: unescape('setEditorOn%3A'),
  2689. category: 'accessing',
  2690. fn: function (aTextarea){
  2691. var self=this;
  2692. self['@editor'] = CodeMirror.fromTextArea(aTextarea, {
  2693. theme: 'jtalk',
  2694. lineNumbers: true,
  2695. enterMode: 'classic',
  2696. matchBrackets: true,
  2697. electricChars: false,
  2698. });
  2699. return self;},
  2700. args: ["aTextarea"],
  2701. source: unescape('setEditorOn%3A%20aTextarea%0A%09%3Cself%5B%27@editor%27%5D%20%3D%20CodeMirror.fromTextArea%28aTextarea%2C%20%7B%0A%09%09theme%3A%20%27jtalk%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20lineNumbers%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20enterMode%3A%20%27classic%27%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20matchBrackets%3A%20true%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20electricChars%3A%20false%2C%0A%09%7D%29%3E'),
  2702. messageSends: [],
  2703. referencedClasses: []
  2704. }),
  2705. smalltalk.SourceArea);
  2706. smalltalk.addMethod(
  2707. unescape('_editor'),
  2708. smalltalk.method({
  2709. selector: unescape('editor'),
  2710. category: 'accessing',
  2711. fn: function (){
  2712. var self=this;
  2713. return self['@editor'];
  2714. return self;},
  2715. args: [],
  2716. source: unescape('editor%0A%09%5Eeditor'),
  2717. messageSends: [],
  2718. referencedClasses: []
  2719. }),
  2720. smalltalk.SourceArea);
  2721. smalltalk.addMethod(
  2722. unescape('_receiver'),
  2723. smalltalk.method({
  2724. selector: unescape('receiver'),
  2725. category: 'accessing',
  2726. fn: function (){
  2727. var self=this;
  2728. return (($receiver = self['@receiver']) == nil || $receiver == undefined) ? (function(){return smalltalk.send((smalltalk.DoIt || DoIt), "_new", []);})() : $receiver;
  2729. return self;},
  2730. args: [],
  2731. source: unescape('receiver%0A%09%5Ereceiver%20ifNil%3A%20%5BDoIt%20new%5D'),
  2732. messageSends: ["ifNil:", "new"],
  2733. referencedClasses: [smalltalk.DoIt]
  2734. }),
  2735. smalltalk.SourceArea);
  2736. smalltalk.addMethod(
  2737. unescape('_receiver_'),
  2738. smalltalk.method({
  2739. selector: unescape('receiver%3A'),
  2740. category: 'accessing',
  2741. fn: function (anObject){
  2742. var self=this;
  2743. self['@receiver']=anObject;
  2744. return self;},
  2745. args: ["anObject"],
  2746. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  2747. messageSends: [],
  2748. referencedClasses: []
  2749. }),
  2750. smalltalk.SourceArea);
  2751. smalltalk.addMethod(
  2752. unescape('_onDoIt_'),
  2753. smalltalk.method({
  2754. selector: unescape('onDoIt%3A'),
  2755. category: 'accessing',
  2756. fn: function (aBlock){
  2757. var self=this;
  2758. self['@onDoIt']=aBlock;
  2759. return self;},
  2760. args: ["aBlock"],
  2761. source: unescape('onDoIt%3A%20aBlock%0A%09onDoIt%20%3A%3D%20aBlock'),
  2762. messageSends: [],
  2763. referencedClasses: []
  2764. }),
  2765. smalltalk.SourceArea);
  2766. smalltalk.addMethod(
  2767. unescape('_onDoIt'),
  2768. smalltalk.method({
  2769. selector: unescape('onDoIt'),
  2770. category: 'accessing',
  2771. fn: function (){
  2772. var self=this;
  2773. return self['@onDoIt'];
  2774. return self;},
  2775. args: [],
  2776. source: unescape('onDoIt%0A%09%5EonDoIt'),
  2777. messageSends: [],
  2778. referencedClasses: []
  2779. }),
  2780. smalltalk.SourceArea);
  2781. smalltalk.addMethod(
  2782. unescape('_currentLineOrSelection'),
  2783. smalltalk.method({
  2784. selector: unescape('currentLineOrSelection'),
  2785. category: 'accessing',
  2786. fn: function (){
  2787. var self=this;
  2788. 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", []);})]);
  2789. return self;},
  2790. args: [],
  2791. source: unescape('currentLineOrSelection%0A%20%20%20%20%5Eeditor%20somethingSelected%0A%09ifFalse%3A%20%5Bself%20currentLine%5D%0A%09ifTrue%3A%20%5Bself%20selection%5D'),
  2792. messageSends: ["ifFalse:ifTrue:", "somethingSelected", "currentLine", "selection"],
  2793. referencedClasses: []
  2794. }),
  2795. smalltalk.SourceArea);
  2796. smalltalk.addMethod(
  2797. unescape('_clear'),
  2798. smalltalk.method({
  2799. selector: unescape('clear'),
  2800. category: 'actions',
  2801. fn: function (){
  2802. var self=this;
  2803. smalltalk.send(self, "_val_", [""]);
  2804. return self;},
  2805. args: [],
  2806. source: unescape('clear%0A%20%20%20%20%20%20self%20val%3A%20%27%27'),
  2807. messageSends: ["val:"],
  2808. referencedClasses: []
  2809. }),
  2810. smalltalk.SourceArea);
  2811. smalltalk.addMethod(
  2812. unescape('_doIt'),
  2813. smalltalk.method({
  2814. selector: unescape('doIt'),
  2815. category: 'actions',
  2816. fn: function (){
  2817. var self=this;
  2818. var result=nil;
  2819. result=smalltalk.send(self, "_eval_", [smalltalk.send(self, "_currentLineOrSelection", [])]);
  2820. (($receiver = smalltalk.send(self, "_onDoIt", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_onDoIt", []), "_value", []);})() : nil;
  2821. return result;
  2822. return self;},
  2823. args: [],
  2824. source: unescape('doIt%0A%20%20%20%20%7C%20result%20%7C%0A%20%20%20%20result%20%3A%3D%20self%20eval%3A%20self%20currentLineOrSelection.%0A%20%20%20%20self%20onDoIt%20ifNotNil%3A%20%5Bself%20onDoIt%20value%5D.%0A%20%20%20%20%5Eresult'),
  2825. messageSends: ["eval:", "currentLineOrSelection", "ifNotNil:", "onDoIt", "value"],
  2826. referencedClasses: []
  2827. }),
  2828. smalltalk.SourceArea);
  2829. smalltalk.addMethod(
  2830. unescape('_eval_'),
  2831. smalltalk.method({
  2832. selector: unescape('eval%3A'),
  2833. category: 'actions',
  2834. fn: function (aString){
  2835. var self=this;
  2836. try{var compiler=nil;
  2837. compiler=smalltalk.send((smalltalk.Compiler || Compiler), "_new", []);
  2838. smalltalk.send((function(){return smalltalk.send(compiler, "_parseExpression_", [aString]);}), "_on_do_", [(smalltalk.Error || Error), (function(ex){return (function(){throw({name: 'stReturn', selector: '_eval_', fn: function(){return smalltalk.send(self, "_alert_", [smalltalk.send(ex, "_messageText", [])])}})})();})]);
  2839. (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", []), []])}})})();
  2840. return self;
  2841. } catch(e) {if(e.name === 'stReturn' && e.selector === '_eval_'){return e.fn()} throw(e)}},
  2842. args: ["aString"],
  2843. source: unescape('eval%3A%20aString%0A%09%7C%20compiler%20%20%7C%0A%09compiler%20%3A%3D%20Compiler%20new.%0A%09%5Bcompiler%20parseExpression%3A%20aString%5D%20on%3A%20Error%20do%3A%20%5B%3Aex%20%7C%0A%09%09%5Eself%20alert%3A%20ex%20messageText%5D.%0A%09%5E%28compiler%20load%3A%20%27doIt%20%5E%5B%27%2C%20aString%2C%20%27%5D%20value%27%20forClass%3A%20DoIt%29%20fn%20applyTo%3A%20self%20receiver%20arguments%3A%20%23%28%29'),
  2844. messageSends: ["new", "on:do:", "parseExpression:", "alert:", "messageText", "applyTo:arguments:", "fn", "load:forClass:", unescape("%2C"), "receiver"],
  2845. referencedClasses: [smalltalk.Compiler,smalltalk.Error,smalltalk.DoIt]
  2846. }),
  2847. smalltalk.SourceArea);
  2848. smalltalk.addMethod(
  2849. unescape('_handleKeyDown_'),
  2850. smalltalk.method({
  2851. selector: unescape('handleKeyDown%3A'),
  2852. category: 'actions',
  2853. fn: function (anEvent){
  2854. var self=this;
  2855. if(anEvent.ctrlKey) {
  2856. if(anEvent.keyCode === 80) { //ctrl+p
  2857. self._printIt();
  2858. anEvent.preventDefault();
  2859. return false;
  2860. }
  2861. if(anEvent.keyCode === 68) { //ctrl+d
  2862. self._doIt();
  2863. anEvent.preventDefault();
  2864. return false;
  2865. }
  2866. if(anEvent.keyCode === 73) { //ctrl+i
  2867. self._inspectIt();
  2868. anEvent.preventDefault();
  2869. return false;
  2870. }
  2871. };
  2872. return self;},
  2873. args: ["anEvent"],
  2874. source: unescape('handleKeyDown%3A%20anEvent%0A%20%20%20%20%3Cif%28anEvent.ctrlKey%29%20%7B%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2080%29%20%7B%20//ctrl+p%0A%09%09%09self._printIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2068%29%20%7B%20//ctrl+d%0A%09%09%09self._doIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%09if%28anEvent.keyCode%20%3D%3D%3D%2073%29%20%7B%20//ctrl+i%0A%09%09%09self._inspectIt%28%29%3B%0A%09%09%09anEvent.preventDefault%28%29%3B%0A%09%09%09return%20false%3B%0A%09%09%7D%0A%09%7D%3E'),
  2875. messageSends: [],
  2876. referencedClasses: []
  2877. }),
  2878. smalltalk.SourceArea);
  2879. smalltalk.addMethod(
  2880. unescape('_inspectIt'),
  2881. smalltalk.method({
  2882. selector: unescape('inspectIt'),
  2883. category: 'actions',
  2884. fn: function (){
  2885. var self=this;
  2886. smalltalk.send(smalltalk.send(self, "_doIt", []), "_inspect", []);
  2887. return self;},
  2888. args: [],
  2889. source: unescape('inspectIt%0A%20%20%20%20self%20doIt%20inspect'),
  2890. messageSends: ["inspect", "doIt"],
  2891. referencedClasses: []
  2892. }),
  2893. smalltalk.SourceArea);
  2894. smalltalk.addMethod(
  2895. unescape('_print_'),
  2896. smalltalk.method({
  2897. selector: unescape('print%3A'),
  2898. category: 'actions',
  2899. fn: function (aString){
  2900. var self=this;
  2901. var start=nil;
  2902. var stop=nil;
  2903. start=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  2904. stop=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  2905. smalltalk.send(start, "_at_put_", ["line", smalltalk.send(smalltalk.send(self['@editor'], "_getCursor_", [false]), "_line", [])]);
  2906. smalltalk.send(start, "_at_put_", ["ch", smalltalk.send(smalltalk.send(self['@editor'], "_getCursor_", [false]), "_ch", [])]);
  2907. smalltalk.send(stop, "_at_put_", ["line", smalltalk.send(start, "_at_", ["line"])]);
  2908. 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)])]);
  2909. smalltalk.send(self['@editor'], "_replaceSelection_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@editor'], "_getSelection", []), "__comma", [" "]), "__comma", [aString]), "__comma", [" "])]);
  2910. smalltalk.send(self['@editor'], "_setCursor_", [smalltalk.send(self['@editor'], "_getCursor_", [true])]);
  2911. smalltalk.send(self['@editor'], "_setSelection_end_", [stop, start]);
  2912. return self;},
  2913. args: ["aString"],
  2914. source: unescape('print%3A%20aString%0A%09%7C%20start%20stop%20%7C%0A%09start%20%3A%3D%20Dictionary%20new.%0A%09stop%20%3A%3D%20Dictionary%20new.%0A%09start%20at%3A%20%27line%27%20put%3A%20%28editor%20getCursor%3A%20false%29%20line.%0A%09start%20at%3A%20%27ch%27%20put%3A%20%28editor%20getCursor%3A%20false%29%20ch.%0A%09stop%20at%3A%20%27line%27%20put%3A%20%28start%20at%3A%20%27line%27%29.%0A%09stop%20at%3A%20%27ch%27%20put%3A%20%28%28start%20at%3A%20%27ch%27%29%20+%20aString%20size%20+%202%29.%0A%09editor%20replaceSelection%3A%20%28editor%20getSelection%2C%20%27%20%27%2C%20aString%2C%20%27%20%27%29.%0A%09editor%20setCursor%3A%20%28editor%20getCursor%3A%20true%29.%0A%09editor%20setSelection%3A%20stop%20end%3A%20start'),
  2915. messageSends: ["new", "at:put:", "line", "getCursor:", "ch", "at:", unescape("+"), "size", "replaceSelection:", unescape("%2C"), "getSelection", "setCursor:", "setSelection:end:"],
  2916. referencedClasses: [smalltalk.Dictionary]
  2917. }),
  2918. smalltalk.SourceArea);
  2919. smalltalk.addMethod(
  2920. unescape('_printIt'),
  2921. smalltalk.method({
  2922. selector: unescape('printIt'),
  2923. category: 'actions',
  2924. fn: function (){
  2925. var self=this;
  2926. smalltalk.send(self, "_print_", [smalltalk.send(smalltalk.send(self, "_doIt", []), "_printString", [])]);
  2927. return self;},
  2928. args: [],
  2929. source: unescape('printIt%0A%20%20%20%20self%20print%3A%20self%20doIt%20printString'),
  2930. messageSends: ["print:", "printString", "doIt"],
  2931. referencedClasses: []
  2932. }),
  2933. smalltalk.SourceArea);
  2934. smalltalk.addMethod(
  2935. unescape('_fileIn'),
  2936. smalltalk.method({
  2937. selector: unescape('fileIn'),
  2938. category: 'actions',
  2939. fn: function (){
  2940. var self=this;
  2941. smalltalk.send(smalltalk.send((smalltalk.Importer || Importer), "_new", []), "_import_", [smalltalk.send(smalltalk.send(self, "_currentLineOrSelection", []), "_readStream", [])]);
  2942. return self;},
  2943. args: [],
  2944. source: unescape('fileIn%0A%20%20%20%20Importer%20new%20import%3A%20self%20currentLineOrSelection%20readStream'),
  2945. messageSends: ["import:", "new", "readStream", "currentLineOrSelection"],
  2946. referencedClasses: [smalltalk.Importer]
  2947. }),
  2948. smalltalk.SourceArea);
  2949. smalltalk.addMethod(
  2950. unescape('_onKeyUp_'),
  2951. smalltalk.method({
  2952. selector: unescape('onKeyUp%3A'),
  2953. category: 'events',
  2954. fn: function (aBlock){
  2955. var self=this;
  2956. smalltalk.send(self['@div'], "_onKeyUp_", [aBlock]);
  2957. return self;},
  2958. args: ["aBlock"],
  2959. source: unescape('onKeyUp%3A%20aBlock%0A%09div%20onKeyUp%3A%20aBlock'),
  2960. messageSends: ["onKeyUp:"],
  2961. referencedClasses: []
  2962. }),
  2963. smalltalk.SourceArea);
  2964. smalltalk.addMethod(
  2965. unescape('_onKeyDown_'),
  2966. smalltalk.method({
  2967. selector: unescape('onKeyDown%3A'),
  2968. category: 'events',
  2969. fn: function (aBlock){
  2970. var self=this;
  2971. smalltalk.send(self['@div'], "_onKeyDown_", [aBlock]);
  2972. return self;},
  2973. args: ["aBlock"],
  2974. source: unescape('onKeyDown%3A%20aBlock%0A%09div%20onKeyDown%3A%20aBlock'),
  2975. messageSends: ["onKeyDown:"],
  2976. referencedClasses: []
  2977. }),
  2978. smalltalk.SourceArea);
  2979. smalltalk.addMethod(
  2980. unescape('_renderOn_'),
  2981. smalltalk.method({
  2982. selector: unescape('renderOn%3A'),
  2983. category: 'rendering',
  2984. fn: function (html){
  2985. var self=this;
  2986. var textarea=nil;
  2987. self['@div']=smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["source"]);
  2988. smalltalk.send(self['@div'], "_with_", [(function(){return textarea=smalltalk.send(html, "_textarea", []);})]);
  2989. smalltalk.send(self, "_setEditorOn_", [smalltalk.send(textarea, "_element", [])]);
  2990. smalltalk.send(self['@div'], "_onKeyDown_", [(function(e){return smalltalk.send(self, "_handleKeyDown_", [e]);})]);
  2991. return self;},
  2992. args: ["html"],
  2993. source: unescape('renderOn%3A%20html%0A%20%20%20%20%7C%20textarea%20%7C%0A%20%20%20%20div%20%3A%3D%20html%20div%20class%3A%20%27source%27.%0A%20%20%20%20div%20with%3A%20%5Btextarea%20%3A%3D%20html%20textarea%5D.%0A%20%20%20%20self%20setEditorOn%3A%20textarea%20element.%0A%20%20%20%20div%20onKeyDown%3A%20%5B%3Ae%20%7C%20self%20handleKeyDown%3A%20e%5D'),
  2994. messageSends: ["class:", "div", "with:", "textarea", "setEditorOn:", "element", "onKeyDown:", "handleKeyDown:"],
  2995. referencedClasses: []
  2996. }),
  2997. smalltalk.SourceArea);
  2998. smalltalk.addClass('ClassesList', smalltalk.Widget, ['browser', 'ul', 'nodes'], 'IDE');
  2999. smalltalk.addMethod(
  3000. unescape('_category'),
  3001. smalltalk.method({
  3002. selector: unescape('category'),
  3003. category: 'accessing',
  3004. fn: function (){
  3005. var self=this;
  3006. return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedPackage", []);
  3007. return self;},
  3008. args: [],
  3009. source: unescape('category%0A%09%5Eself%20browser%20selectedPackage'),
  3010. messageSends: ["selectedPackage", "browser"],
  3011. referencedClasses: []
  3012. }),
  3013. smalltalk.ClassesList);
  3014. smalltalk.addMethod(
  3015. unescape('_nodes'),
  3016. smalltalk.method({
  3017. selector: unescape('nodes'),
  3018. category: 'accessing',
  3019. fn: function (){
  3020. var self=this;
  3021. (($receiver = self['@nodes']) == nil || $receiver == undefined) ? (function(){return self['@nodes']=smalltalk.send(self, "_getNodes", []);})() : $receiver;
  3022. return self['@nodes'];
  3023. return self;},
  3024. args: [],
  3025. source: unescape('nodes%0A%09nodes%20ifNil%3A%20%5Bnodes%20%3A%3D%20self%20getNodes%5D.%0A%09%5Enodes'),
  3026. messageSends: ["ifNil:", "getNodes"],
  3027. referencedClasses: []
  3028. }),
  3029. smalltalk.ClassesList);
  3030. smalltalk.addMethod(
  3031. unescape('_browser'),
  3032. smalltalk.method({
  3033. selector: unescape('browser'),
  3034. category: 'accessing',
  3035. fn: function (){
  3036. var self=this;
  3037. return self['@browser'];
  3038. return self;},
  3039. args: [],
  3040. source: unescape('browser%0A%09%5Ebrowser'),
  3041. messageSends: [],
  3042. referencedClasses: []
  3043. }),
  3044. smalltalk.ClassesList);
  3045. smalltalk.addMethod(
  3046. unescape('_browser_'),
  3047. smalltalk.method({
  3048. selector: unescape('browser%3A'),
  3049. category: 'accessing',
  3050. fn: function (aBrowser){
  3051. var self=this;
  3052. self['@browser']=aBrowser;
  3053. return self;},
  3054. args: ["aBrowser"],
  3055. source: unescape('browser%3A%20aBrowser%0A%09browser%20%3A%3D%20aBrowser'),
  3056. messageSends: [],
  3057. referencedClasses: []
  3058. }),
  3059. smalltalk.ClassesList);
  3060. smalltalk.addMethod(
  3061. unescape('_getNodes'),
  3062. smalltalk.method({
  3063. selector: unescape('getNodes'),
  3064. category: 'accessing',
  3065. fn: function (){
  3066. var self=this;
  3067. var classes=nil;
  3068. var children=nil;
  3069. var others=nil;
  3070. classes=smalltalk.send(smalltalk.send(self, "_browser", []), "_classes", []);
  3071. children=[];
  3072. others=[];
  3073. 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]);})]);})]);
  3074. return smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send((smalltalk.ClassesListNode || ClassesListNode), "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, (0)]);})]);
  3075. return self;},
  3076. args: [],
  3077. source: unescape('getNodes%0A%09%7C%20classes%20children%20others%20%7C%0A%09classes%20%3A%3D%20self%20browser%20classes.%0A%09children%20%3A%3D%20%23%28%29.%0A%09others%20%3A%3D%20%23%28%29.%0A%09classes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%28classes%20includes%3A%20each%20superclass%29%0A%09%09%09ifFalse%3A%20%5Bchildren%20add%3A%20each%5D%0A%09%09%09ifTrue%3A%20%5Bothers%20add%3A%20each%5D%5D.%0A%09%5Echildren%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09ClassesListNode%20on%3A%20each%20browser%3A%20self%20browser%20classes%3A%20others%20level%3A%200%5D'),
  3078. messageSends: ["classes", "browser", "do:", "ifFalse:ifTrue:", "includes:", "superclass", "add:", "collect:", "on:browser:classes:level:"],
  3079. referencedClasses: []
  3080. }),
  3081. smalltalk.ClassesList);
  3082. smalltalk.addMethod(
  3083. unescape('_resetNodes'),
  3084. smalltalk.method({
  3085. selector: unescape('resetNodes'),
  3086. category: 'accessing',
  3087. fn: function (){
  3088. var self=this;
  3089. self['@nodes']=nil;
  3090. return self;},
  3091. args: [],
  3092. source: unescape('resetNodes%0A%09nodes%20%3A%3D%20nil'),
  3093. messageSends: [],
  3094. referencedClasses: []
  3095. }),
  3096. smalltalk.ClassesList);
  3097. smalltalk.addMethod(
  3098. unescape('_renderOn_'),
  3099. smalltalk.method({
  3100. selector: unescape('renderOn%3A'),
  3101. category: 'rendering',
  3102. fn: function (html){
  3103. var self=this;
  3104. self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column browser classes"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
  3105. smalltalk.send(self, "_updateNodes", []);
  3106. return self;},
  3107. args: ["html"],
  3108. source: unescape('renderOn%3A%20html%0A%09ul%20%3A%3D%20html%20ul%0A%09%09class%3A%20%27jt_column%20browser%20classes%27%3B%0A%09%09yourself.%0A%09self%20updateNodes'),
  3109. messageSends: ["class:", "yourself", "ul", "updateNodes"],
  3110. referencedClasses: []
  3111. }),
  3112. smalltalk.ClassesList);
  3113. smalltalk.addMethod(
  3114. unescape('_updateNodes'),
  3115. smalltalk.method({
  3116. selector: unescape('updateNodes'),
  3117. category: 'rendering',
  3118. fn: function (){
  3119. var self=this;
  3120. smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);})]);
  3121. return self;},
  3122. args: [],
  3123. source: unescape('updateNodes%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20nodes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%09each%20renderOn%3A%20html%5D%5D'),
  3124. messageSends: ["contents:", "do:", "nodes", "renderOn:"],
  3125. referencedClasses: []
  3126. }),
  3127. smalltalk.ClassesList);
  3128. smalltalk.addMethod(
  3129. unescape('_on_'),
  3130. smalltalk.method({
  3131. selector: unescape('on%3A'),
  3132. category: 'instance creation',
  3133. fn: function (aBrowser){
  3134. var self=this;
  3135. return (function($rec){smalltalk.send($rec, "_browser_", [aBrowser]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  3136. return self;},
  3137. args: ["aBrowser"],
  3138. source: unescape('on%3A%20aBrowser%0A%09%5Eself%20new%20%0A%09%09browser%3A%20aBrowser%3B%20%0A%09%09yourself'),
  3139. messageSends: ["browser:", "yourself", "new"],
  3140. referencedClasses: []
  3141. }),
  3142. smalltalk.ClassesList.klass);
  3143. smalltalk.addClass('ClassesListNode', smalltalk.Widget, ['browser', 'theClass', 'level', 'nodes'], 'IDE');
  3144. smalltalk.addMethod(
  3145. unescape('_renderOn_'),
  3146. smalltalk.method({
  3147. selector: unescape('renderOn%3A'),
  3148. category: '',
  3149. fn: function (html){
  3150. var self=this;
  3151. var li=nil;
  3152. var cssClass=nil;
  3153. cssClass="";
  3154. li=smalltalk.send(smalltalk.send(html, "_li", []), "_onClick_", [(function(){return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectClass_", [smalltalk.send(self, "_theClass", [])]);})]);
  3155. smalltalk.send(smalltalk.send(li, "_asJQuery", []), "_contents_", [smalltalk.send(self, "_label", [])]);
  3156. (($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"]);})]);
  3157. (($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"]);})]);
  3158. smalltalk.send(li, "_class_", [cssClass]);
  3159. smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);
  3160. return self;},
  3161. args: ["html"],
  3162. source: unescape('renderOn%3A%20html%0A%09%7C%20li%20cssClass%20%7C%0A%09cssClass%20%3A%3D%20%27%27.%0A%09li%20%3A%3D%20html%20li%20%0A%09%09onClick%3A%20%5Bself%20browser%20selectClass%3A%20self%20theClass%5D.%20%0A%09li%20asJQuery%20contents%3A%20self%20label.%0A%0A%09self%20browser%20selectedClass%20%3D%20self%20theClass%20ifTrue%3A%20%20%5B%0A%09%09cssClass%20%3A%3D%20cssClass%2C%20%27%20selected%27%5D.%0A%0A%09self%20theClass%20comment%20isEmpty%20ifFalse%3A%20%5B%0A%09%09cssClass%20%3A%3D%20cssClass%2C%20%27%20commented%27%5D.%0A%0A%09li%20class%3A%20cssClass.%0A%0A%09self%20nodes%20do%3A%20%5B%3Aeach%20%7C%0A%09%09each%20renderOn%3A%20html%5D'),
  3163. messageSends: ["onClick:", "li", "selectClass:", "browser", "theClass", "contents:", "asJQuery", "label", "ifTrue:", unescape("%3D"), "selectedClass", unescape("%2C"), "ifFalse:", "isEmpty", "comment", "class:", "do:", "nodes", "renderOn:"],
  3164. referencedClasses: []
  3165. }),
  3166. smalltalk.ClassesListNode);
  3167. smalltalk.addMethod(
  3168. unescape('_nodes'),
  3169. smalltalk.method({
  3170. selector: unescape('nodes'),
  3171. category: 'accessing',
  3172. fn: function (){
  3173. var self=this;
  3174. return self['@nodes'];
  3175. return self;},
  3176. args: [],
  3177. source: unescape('nodes%0A%09%5Enodes'),
  3178. messageSends: [],
  3179. referencedClasses: []
  3180. }),
  3181. smalltalk.ClassesListNode);
  3182. smalltalk.addMethod(
  3183. unescape('_theClass'),
  3184. smalltalk.method({
  3185. selector: unescape('theClass'),
  3186. category: 'accessing',
  3187. fn: function (){
  3188. var self=this;
  3189. return self['@theClass'];
  3190. return self;},
  3191. args: [],
  3192. source: unescape('theClass%0A%09%5EtheClass'),
  3193. messageSends: [],
  3194. referencedClasses: []
  3195. }),
  3196. smalltalk.ClassesListNode);
  3197. smalltalk.addMethod(
  3198. unescape('_theClass_'),
  3199. smalltalk.method({
  3200. selector: unescape('theClass%3A'),
  3201. category: 'accessing',
  3202. fn: function (aClass){
  3203. var self=this;
  3204. self['@theClass']=aClass;
  3205. return self;},
  3206. args: ["aClass"],
  3207. source: unescape('theClass%3A%20aClass%0A%09theClass%20%3A%3D%20aClass'),
  3208. messageSends: [],
  3209. referencedClasses: []
  3210. }),
  3211. smalltalk.ClassesListNode);
  3212. smalltalk.addMethod(
  3213. unescape('_browser'),
  3214. smalltalk.method({
  3215. selector: unescape('browser'),
  3216. category: 'accessing',
  3217. fn: function (){
  3218. var self=this;
  3219. return self['@browser'];
  3220. return self;},
  3221. args: [],
  3222. source: unescape('browser%0A%09%5Ebrowser'),
  3223. messageSends: [],
  3224. referencedClasses: []
  3225. }),
  3226. smalltalk.ClassesListNode);
  3227. smalltalk.addMethod(
  3228. unescape('_browser_'),
  3229. smalltalk.method({
  3230. selector: unescape('browser%3A'),
  3231. category: 'accessing',
  3232. fn: function (aBrowser){
  3233. var self=this;
  3234. self['@browser']=aBrowser;
  3235. return self;},
  3236. args: ["aBrowser"],
  3237. source: unescape('browser%3A%20aBrowser%0A%09browser%20%3A%3D%20aBrowser'),
  3238. messageSends: [],
  3239. referencedClasses: []
  3240. }),
  3241. smalltalk.ClassesListNode);
  3242. smalltalk.addMethod(
  3243. unescape('_level'),
  3244. smalltalk.method({
  3245. selector: unescape('level'),
  3246. category: 'accessing',
  3247. fn: function (){
  3248. var self=this;
  3249. return self['@level'];
  3250. return self;},
  3251. args: [],
  3252. source: unescape('level%0A%09%5Elevel'),
  3253. messageSends: [],
  3254. referencedClasses: []
  3255. }),
  3256. smalltalk.ClassesListNode);
  3257. smalltalk.addMethod(
  3258. unescape('_level_'),
  3259. smalltalk.method({
  3260. selector: unescape('level%3A'),
  3261. category: 'accessing',
  3262. fn: function (anInteger){
  3263. var self=this;
  3264. self['@level']=anInteger;
  3265. return self;},
  3266. args: ["anInteger"],
  3267. source: unescape('level%3A%20anInteger%0A%09level%20%3A%3D%20anInteger'),
  3268. messageSends: [],
  3269. referencedClasses: []
  3270. }),
  3271. smalltalk.ClassesListNode);
  3272. smalltalk.addMethod(
  3273. unescape('_label'),
  3274. smalltalk.method({
  3275. selector: unescape('label'),
  3276. category: 'accessing',
  3277. fn: function (){
  3278. var self=this;
  3279. var str=nil;
  3280. str=smalltalk.send(smalltalk.send((smalltalk.String || String), "_new", []), "_writeStream", []);
  3281. smalltalk.send(smalltalk.send(self, "_level", []), "_timesRepeat_", [(function(){return smalltalk.send(str, "_nextPutAll_", [unescape("%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B")]);})]);
  3282. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", [])]);
  3283. return smalltalk.send(str, "_contents", []);
  3284. return self;},
  3285. args: [],
  3286. source: unescape('label%0A%09%7C%20str%20%7C%0A%09str%20%3A%3D%20String%20new%20writeStream.%0A%09self%20level%20timesRepeat%3A%20%5B%0A%09%09str%20nextPutAll%3A%20%27%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%27%5D.%0A%09str%20nextPutAll%3A%20self%20theClass%20name.%0A%09%5Estr%20contents'),
  3287. messageSends: ["writeStream", "new", "timesRepeat:", "level", "nextPutAll:", "name", "theClass", "contents"],
  3288. referencedClasses: [smalltalk.String]
  3289. }),
  3290. smalltalk.ClassesListNode);
  3291. smalltalk.addMethod(
  3292. unescape('_getNodesFrom_'),
  3293. smalltalk.method({
  3294. selector: unescape('getNodesFrom%3A'),
  3295. category: 'accessing',
  3296. fn: function (aCollection){
  3297. var self=this;
  3298. var children=nil;
  3299. var others=nil;
  3300. children=[];
  3301. others=[];
  3302. 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]);})]);})]);
  3303. 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)])]);})]);
  3304. return self;},
  3305. args: ["aCollection"],
  3306. source: unescape('getNodesFrom%3A%20aCollection%0A%09%7C%20children%20others%20%7C%0A%09children%20%3A%3D%20%23%28%29.%0A%09others%20%3A%3D%20%23%28%29.%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%0A%09%09%28each%20superclass%20%3D%20self%20theClass%29%0A%09%09%09ifTrue%3A%20%5Bchildren%20add%3A%20each%5D%0A%09%09%09ifFalse%3A%20%5Bothers%20add%3A%20each%5D%5D.%0A%09nodes%3A%3D%20children%20collect%3A%20%5B%3Aeach%20%7C%0A%09%09ClassesListNode%20on%3A%20each%20browser%3A%20self%20browser%20classes%3A%20others%20level%3A%20self%20level%20+%201%5D'),
  3307. messageSends: ["do:", "ifTrue:ifFalse:", unescape("%3D"), "superclass", "theClass", "add:", "collect:", "on:browser:classes:level:", "browser", unescape("+"), "level"],
  3308. referencedClasses: [smalltalk.ClassesListNode]
  3309. }),
  3310. smalltalk.ClassesListNode);
  3311. smalltalk.addMethod(
  3312. unescape('_on_browser_classes_level_'),
  3313. smalltalk.method({
  3314. selector: unescape('on%3Abrowser%3Aclasses%3Alevel%3A'),
  3315. category: 'instance creation',
  3316. fn: function (aClass, aBrowser, aCollection, anInteger){
  3317. var self=this;
  3318. 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", []));
  3319. return self;},
  3320. args: ["aClass", "aBrowser", "aCollection", "anInteger"],
  3321. source: unescape('on%3A%20aClass%20browser%3A%20aBrowser%20classes%3A%20aCollection%20level%3A%20anInteger%0A%09%5Eself%20new%0A%09%09theClass%3A%20aClass%3B%0A%09%09browser%3A%20aBrowser%3B%0A%09%09level%3A%20anInteger%3B%0A%09%09getNodesFrom%3A%20aCollection%3B%0A%09%09yourself'),
  3322. messageSends: ["theClass:", "browser:", "level:", "getNodesFrom:", "yourself", "new"],
  3323. referencedClasses: []
  3324. }),
  3325. smalltalk.ClassesListNode.klass);
  3326. smalltalk.addClass('Debugger', smalltalk.TabWidget, ['error', 'selectedContext', 'sourceArea', 'ul', 'ul2', 'inspector', 'saveButton', 'unsavedChanges', 'selectedVariable', 'selectedVariableName', 'inspectButton'], 'IDE');
  3327. smalltalk.addMethod(
  3328. unescape('_error'),
  3329. smalltalk.method({
  3330. selector: unescape('error'),
  3331. category: 'accessing',
  3332. fn: function (){
  3333. var self=this;
  3334. return self['@error'];
  3335. return self;},
  3336. args: [],
  3337. source: unescape('error%0A%09%5Eerror'),
  3338. messageSends: [],
  3339. referencedClasses: []
  3340. }),
  3341. smalltalk.Debugger);
  3342. smalltalk.addMethod(
  3343. unescape('_error_'),
  3344. smalltalk.method({
  3345. selector: unescape('error%3A'),
  3346. category: 'accessing',
  3347. fn: function (anError){
  3348. var self=this;
  3349. self['@error']=anError;
  3350. return self;},
  3351. args: ["anError"],
  3352. source: unescape('error%3A%20anError%0A%09error%20%3A%3D%20anError'),
  3353. messageSends: [],
  3354. referencedClasses: []
  3355. }),
  3356. smalltalk.Debugger);
  3357. smalltalk.addMethod(
  3358. unescape('_label'),
  3359. smalltalk.method({
  3360. selector: unescape('label'),
  3361. category: 'accessing',
  3362. fn: function (){
  3363. var self=this;
  3364. return unescape("%5BDebugger%5D");
  3365. return self;},
  3366. args: [],
  3367. source: unescape('label%0A%09%5E%27%5BDebugger%5D%27'),
  3368. messageSends: [],
  3369. referencedClasses: []
  3370. }),
  3371. smalltalk.Debugger);
  3372. smalltalk.addMethod(
  3373. unescape('_source'),
  3374. smalltalk.method({
  3375. selector: unescape('source'),
  3376. category: 'accessing',
  3377. fn: function (){
  3378. var self=this;
  3379. 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", []);})();
  3380. return self;},
  3381. args: [],
  3382. source: unescape('source%0A%09%5Eself%20method%20%0A%09%09ifNil%3A%20%5B%27Method%20doesn%27%27t%20exist%21%27%5D%0A%09%09ifNotNil%3A%20%5Bself%20method%20source%5D'),
  3383. messageSends: ["ifNil:ifNotNil:", "method", "source"],
  3384. referencedClasses: []
  3385. }),
  3386. smalltalk.Debugger);
  3387. smalltalk.addMethod(
  3388. unescape('_method'),
  3389. smalltalk.method({
  3390. selector: unescape('method'),
  3391. category: 'accessing',
  3392. fn: function (){
  3393. var self=this;
  3394. return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_class", []), "_methodAt_", [smalltalk.send(self['@selectedContext'], "_selector", [])]);
  3395. return self;},
  3396. args: [],
  3397. source: unescape('method%0A%09%5EselectedContext%20receiver%20class%20methodAt%3A%20selectedContext%20selector'),
  3398. messageSends: ["methodAt:", "class", "receiver", "selector"],
  3399. referencedClasses: []
  3400. }),
  3401. smalltalk.Debugger);
  3402. smalltalk.addMethod(
  3403. unescape('_arguments'),
  3404. smalltalk.method({
  3405. selector: unescape('arguments'),
  3406. category: 'accessing',
  3407. fn: function (){
  3408. var self=this;
  3409. 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", []);})();
  3410. return self;},
  3411. args: [],
  3412. source: unescape('arguments%0A%09%5Eself%20method%20%0A%09%09ifNil%3A%20%5BselectedContext%20temps%20collect%3A%20%5B%3Aeach%20%7C%20nil%5D%5D%0A%09%09ifNotNil%3A%20%5Bself%20method%20arguments%5D'),
  3413. messageSends: ["ifNil:ifNotNil:", "method", "collect:", "temps", "arguments"],
  3414. referencedClasses: []
  3415. }),
  3416. smalltalk.Debugger);
  3417. smalltalk.addMethod(
  3418. unescape('_receiver'),
  3419. smalltalk.method({
  3420. selector: unescape('receiver'),
  3421. category: 'accessing',
  3422. fn: function (){
  3423. var self=this;
  3424. return smalltalk.send(self['@selectedContext'], "_receiver", []);
  3425. return self;},
  3426. args: [],
  3427. source: unescape('receiver%0A%09%5EselectedContext%20receiver'),
  3428. messageSends: ["receiver"],
  3429. referencedClasses: []
  3430. }),
  3431. smalltalk.Debugger);
  3432. smalltalk.addMethod(
  3433. unescape('_selectContext_'),
  3434. smalltalk.method({
  3435. selector: unescape('selectContext%3A'),
  3436. category: 'actions',
  3437. fn: function (aContext){
  3438. var self=this;
  3439. self['@selectedContext']=aContext;
  3440. self['@selectedVariable']=nil;
  3441. self['@selectedVariableName']=nil;
  3442. (function($rec){smalltalk.send($rec, "_updateContextsList", []);smalltalk.send($rec, "_updateSourceArea", []);smalltalk.send($rec, "_updateInspector", []);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateStatus", []);})(self);
  3443. return self;},
  3444. args: ["aContext"],
  3445. source: unescape('selectContext%3A%20aContext%0A%09selectedContext%20%3A%3D%20aContext.%0A%09selectedVariable%20%3A%3D%20nil.%0A%09selectedVariableName%20%3A%3D%20nil.%0A%09self%20%0A%09%09updateContextsList%3B%0A%09%09updateSourceArea%3B%0A%09%09updateInspector%3B%0A%09%09updateVariablesList%3B%0A%09%09updateStatus'),
  3446. messageSends: ["updateContextsList", "updateSourceArea", "updateInspector", "updateVariablesList", "updateStatus"],
  3447. referencedClasses: []
  3448. }),
  3449. smalltalk.Debugger);
  3450. smalltalk.addMethod(
  3451. unescape('_proceed'),
  3452. smalltalk.method({
  3453. selector: unescape('proceed'),
  3454. category: 'actions',
  3455. fn: function (){
  3456. var self=this;
  3457. smalltalk.send(self, "_close", []);
  3458. smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_perform_withArguments_", [smalltalk.send(self['@selectedContext'], "_selector", []), smalltalk.send(self['@selectedContext'], "_temps", [])]);
  3459. return self;},
  3460. args: [],
  3461. source: unescape('proceed%0A%09self%20close.%0A%09selectedContext%20receiver%20perform%3A%20selectedContext%20selector%20withArguments%3A%20selectedContext%20temps'),
  3462. messageSends: ["close", "perform:withArguments:", "receiver", "selector", "temps"],
  3463. referencedClasses: []
  3464. }),
  3465. smalltalk.Debugger);
  3466. smalltalk.addMethod(
  3467. unescape('_save'),
  3468. smalltalk.method({
  3469. selector: unescape('save'),
  3470. category: 'actions',
  3471. fn: function (){
  3472. var self=this;
  3473. var protocol=nil;
  3474. protocol=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_class", []), "_methodDictionary", []), "_at_", [smalltalk.send(self['@selectedContext'], "_selector", [])]), "_category", []);
  3475. smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_class", []), "_compile_category_", [smalltalk.send(self['@sourceArea'], "_val", []), protocol]);
  3476. smalltalk.send(self, "_updateStatus", []);
  3477. return self;},
  3478. args: [],
  3479. source: unescape('save%0A%09%7C%20protocol%20%7C%0A%09protocol%20%3A%3D%20%28selectedContext%20receiver%20class%20methodDictionary%20at%3A%20selectedContext%20selector%29%20category.%0A%09selectedContext%20receiver%20class%20compile%3A%20sourceArea%20val%20category%3A%20protocol.%0A%09self%20updateStatus'),
  3480. messageSends: ["category", "at:", "methodDictionary", "class", "receiver", "selector", "compile:category:", "val", "updateStatus"],
  3481. referencedClasses: []
  3482. }),
  3483. smalltalk.Debugger);
  3484. smalltalk.addMethod(
  3485. unescape('_selectVariable_named_'),
  3486. smalltalk.method({
  3487. selector: unescape('selectVariable%3Anamed%3A'),
  3488. category: 'actions',
  3489. fn: function (anObject, aString){
  3490. var self=this;
  3491. self['@selectedVariable']=anObject;
  3492. self['@selectedVariableName']=aString;
  3493. smalltalk.send(self['@inspector'], "_contents_", [(function(html){return smalltalk.send(html, "_with_", [smalltalk.send(anObject, "_printString", [])]);})]);
  3494. smalltalk.send(self, "_updateVariablesList", []);
  3495. return self;},
  3496. args: ["anObject", "aString"],
  3497. source: unescape('selectVariable%3A%20anObject%20named%3A%20aString%0A%09selectedVariable%20%3A%3D%20anObject.%0A%09selectedVariableName%20%3A%3D%20aString.%0A%09inspector%20contents%3A%20%5B%3Ahtml%20%7C%20html%20with%3A%20anObject%20printString%5D.%0A%09self%20updateVariablesList'),
  3498. messageSends: ["contents:", "with:", "printString", "updateVariablesList"],
  3499. referencedClasses: []
  3500. }),
  3501. smalltalk.Debugger);
  3502. smalltalk.addMethod(
  3503. unescape('_inspectSelectedVariable'),
  3504. smalltalk.method({
  3505. selector: unescape('inspectSelectedVariable'),
  3506. category: 'actions',
  3507. fn: function (){
  3508. var self=this;
  3509. smalltalk.send(self['@selectedVariable'], "_inspect", []);
  3510. return self;},
  3511. args: [],
  3512. source: unescape('inspectSelectedVariable%0A%09selectedVariable%20inspect'),
  3513. messageSends: ["inspect"],
  3514. referencedClasses: []
  3515. }),
  3516. smalltalk.Debugger);
  3517. smalltalk.addMethod(
  3518. unescape('_initialize'),
  3519. smalltalk.method({
  3520. selector: unescape('initialize'),
  3521. category: 'initialization',
  3522. fn: function (){
  3523. var self=this;
  3524. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  3525. smalltalk.send(self['@unsavedChanges'], "__eq", [false]);
  3526. return self;},
  3527. args: [],
  3528. source: unescape('initialize%0A%09super%20initialize.%0A%09unsavedChanges%20%3D%20false'),
  3529. messageSends: ["initialize", unescape("%3D")],
  3530. referencedClasses: []
  3531. }),
  3532. smalltalk.Debugger);
  3533. smalltalk.addMethod(
  3534. unescape('_renderTopPanelOn_'),
  3535. smalltalk.method({
  3536. selector: unescape('renderTopPanelOn%3A'),
  3537. category: 'rendering',
  3538. fn: function (html){
  3539. var self=this;
  3540. self['@selectedContext']=smalltalk.send(smalltalk.send(self, "_error", []), "_context", []);
  3541. (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", []));
  3542. return self;},
  3543. args: ["html"],
  3544. source: unescape('renderTopPanelOn%3A%20html%0A%09selectedContext%20%3A%3D%20self%20error%20context.%0A%09html%20div%20%0A%09%09class%3A%20%27top%27%3B%20%0A%09%09with%3A%20%5B%0A%09%09%09html%20div%20%0A%09%09%09%09class%3A%20%27label%27%3B%0A%09%09%09%09with%3A%20self%20error%20messageText.%0A%09%09%09ul%20%3A%3D%20html%20ul%20%0A%09%09%09%09class%3A%20%27jt_column%20debugger%20contexts%27%3B%0A%09%09%09%09with%3A%20%5Bself%20renderContext%3A%20self%20error%20context%20on%3A%20html%5D%5D'),
  3545. messageSends: ["context", "error", "class:", "with:", "messageText", "div", "renderContext:on:", "ul"],
  3546. referencedClasses: []
  3547. }),
  3548. smalltalk.Debugger);
  3549. smalltalk.addMethod(
  3550. unescape('_renderContext_on_'),
  3551. smalltalk.method({
  3552. selector: unescape('renderContext%3Aon%3A'),
  3553. category: 'rendering',
  3554. fn: function (aContext, html){
  3555. var self=this;
  3556. var li=nil;
  3557. li=smalltalk.send(html, "_li", []);
  3558. (($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"]);})]);
  3559. (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aContext, "_asString", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectContext_", [aContext]);})]);})(li);
  3560. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(aContext, "_home", []), html]);})() : nil;
  3561. return self;},
  3562. args: ["aContext", "html"],
  3563. source: unescape('renderContext%3A%20aContext%20on%3A%20html%0A%09%7C%20li%20%7C%0A%09li%20%3A%3D%20html%20li.%0A%09selectedContext%20%3D%20aContext%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09li%20%0A%09%09with%3A%20aContext%20asString%3B%0A%09%09onClick%3A%20%5Bself%20selectContext%3A%20aContext%5D.%0A%09aContext%20home%20ifNotNil%3A%20%5Bself%20renderContext%3A%20aContext%20home%20on%3A%20html%5D'),
  3564. messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "asString", "onClick:", "selectContext:", "ifNotNil:", "home", "renderContext:on:"],
  3565. referencedClasses: []
  3566. }),
  3567. smalltalk.Debugger);
  3568. smalltalk.addMethod(
  3569. unescape('_renderBottomPanelOn_'),
  3570. smalltalk.method({
  3571. selector: unescape('renderBottomPanelOn%3A'),
  3572. category: 'rendering',
  3573. fn: function (html){
  3574. var self=this;
  3575. (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", []));
  3576. self['@ul2']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column debugger variables"]);
  3577. self['@inspector']=smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_column debugger inspector"]);
  3578. smalltalk.send(self['@sourceArea'], "_onKeyUp_", [(function(){return smalltalk.send(self, "_updateStatus", []);})]);
  3579. return self;},
  3580. args: ["html"],
  3581. source: unescape('renderBottomPanelOn%3A%20html%0A%09html%20div%0A%09%09class%3A%20%27jt_sourceCode%20debugger%27%3B%0A%09%09with%3A%20%5B%0A%09%09%09sourceArea%20%3A%3D%20SourceArea%20new.%0A%09%09%09sourceArea%20renderOn%3A%20html%5D.%0A%09ul2%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20debugger%20variables%27.%0A%09inspector%20%3A%3D%20html%20div%20class%3A%20%27jt_column%20debugger%20inspector%27.%0A%09sourceArea%0A%09%09onKeyUp%3A%20%5Bself%20updateStatus%5D'),
  3582. messageSends: ["class:", "with:", "new", "renderOn:", "div", "ul", "onKeyUp:", "updateStatus"],
  3583. referencedClasses: [smalltalk.SourceArea]
  3584. }),
  3585. smalltalk.Debugger);
  3586. smalltalk.addMethod(
  3587. unescape('_renderButtonsOn_'),
  3588. smalltalk.method({
  3589. selector: unescape('renderButtonsOn%3A'),
  3590. category: 'rendering',
  3591. fn: function (html){
  3592. var self=this;
  3593. self['@saveButton']=(function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_save", []);})]);})(smalltalk.send(html, "_button", []));
  3594. (function($rec){smalltalk.send($rec, "_with_", ["DoIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_doIt", []);})]);})(smalltalk.send(html, "_button", []));
  3595. (function($rec){smalltalk.send($rec, "_with_", ["PrintIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_printIt", []);})]);})(smalltalk.send(html, "_button", []));
  3596. (function($rec){smalltalk.send($rec, "_with_", ["InspectIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_inspectIt", []);})]);})(smalltalk.send(html, "_button", []));
  3597. (function($rec){smalltalk.send($rec, "_with_", ["Proceed"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_proceed", []);})]);})(smalltalk.send(html, "_button", []));
  3598. (function($rec){smalltalk.send($rec, "_with_", ["Abandon"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_button", []));
  3599. 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", []));
  3600. (function($rec){smalltalk.send($rec, "_updateSourceArea", []);smalltalk.send($rec, "_updateStatus", []);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateInspector", []);})(self);
  3601. return self;},
  3602. args: ["html"],
  3603. source: unescape('renderButtonsOn%3A%20html%0A%09saveButton%20%3A%3D%20html%20button%0A%09%09with%3A%20%27Save%27%3B%0A%09%09onClick%3A%20%5Bself%20save%5D.%0A%09html%20button%0A%09%09with%3A%20%27DoIt%27%3B%0A%09%09onClick%3A%20%5BsourceArea%20doIt%5D.%0A%09html%20button%0A%09%09with%3A%20%27PrintIt%27%3B%0A%09%09onClick%3A%20%5BsourceArea%20printIt%5D.%0A%09html%20button%0A%09%09with%3A%20%27InspectIt%27%3B%0A%09%09onClick%3A%20%5BsourceArea%20inspectIt%5D.%0A%09html%20button%20%0A%09%09with%3A%20%27Proceed%27%3B%0A%09%09onClick%3A%20%5Bself%20proceed%5D.%0A%09html%20button%0A%09%09with%3A%20%27Abandon%27%3B%0A%09%09onClick%3A%20%5Bself%20close%5D.%0A%09inspectButton%20%3A%3D%20html%20button%0A%09%09class%3A%20%27jt_button%20debugger%20inspect%27%3B%0A%09%09with%3A%20%27Inspect%27%3B%0A%09%09onClick%3A%20%5Bself%20inspectSelectedVariable%5D.%0A%09%20self%20%0A%09%09updateSourceArea%3B%0A%09%09updateStatus%3B%0A%09%09updateVariablesList%3B%0A%09%09updateInspector'),
  3604. messageSends: ["with:", "onClick:", "save", "button", "doIt", "printIt", "inspectIt", "proceed", "close", "class:", "inspectSelectedVariable", "updateSourceArea", "updateStatus", "updateVariablesList", "updateInspector"],
  3605. referencedClasses: []
  3606. }),
  3607. smalltalk.Debugger);
  3608. smalltalk.addMethod(
  3609. unescape('_renderBoxOn_'),
  3610. smalltalk.method({
  3611. selector: unescape('renderBoxOn%3A'),
  3612. category: 'rendering',
  3613. fn: function (html){
  3614. var self=this;
  3615. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  3616. return self;},
  3617. args: ["html"],
  3618. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderTopPanelOn%3A%20html%3B%0A%09renderBottomPanelOn%3A%20html'),
  3619. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  3620. referencedClasses: []
  3621. }),
  3622. smalltalk.Debugger);
  3623. smalltalk.addMethod(
  3624. unescape('_canBeClosed'),
  3625. smalltalk.method({
  3626. selector: unescape('canBeClosed'),
  3627. category: 'testing',
  3628. fn: function (){
  3629. var self=this;
  3630. return true;
  3631. return self;},
  3632. args: [],
  3633. source: unescape('canBeClosed%0A%20%20%20%20%5Etrue'),
  3634. messageSends: [],
  3635. referencedClasses: []
  3636. }),
  3637. smalltalk.Debugger);
  3638. smalltalk.addMethod(
  3639. unescape('_updateContextsList'),
  3640. smalltalk.method({
  3641. selector: unescape('updateContextsList'),
  3642. category: 'updating',
  3643. fn: function (){
  3644. var self=this;
  3645. smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(smalltalk.send(self, "_error", []), "_context", []), html]);})]);
  3646. return self;},
  3647. args: [],
  3648. source: unescape('updateContextsList%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20renderContext%3A%20self%20error%20context%20on%3A%20html%5D'),
  3649. messageSends: ["contents:", "renderContext:on:", "context", "error"],
  3650. referencedClasses: []
  3651. }),
  3652. smalltalk.Debugger);
  3653. smalltalk.addMethod(
  3654. unescape('_updateSourceArea'),
  3655. smalltalk.method({
  3656. selector: unescape('updateSourceArea'),
  3657. category: 'updating',
  3658. fn: function (){
  3659. var self=this;
  3660. smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(self, "_source", [])]);
  3661. return self;},
  3662. args: [],
  3663. source: unescape('updateSourceArea%0A%09%20sourceArea%20val%3A%20self%20source'),
  3664. messageSends: ["val:", "source"],
  3665. referencedClasses: []
  3666. }),
  3667. smalltalk.Debugger);
  3668. smalltalk.addMethod(
  3669. unescape('_updateStatus'),
  3670. smalltalk.method({
  3671. selector: unescape('updateStatus'),
  3672. category: 'updating',
  3673. fn: function (){
  3674. var self=this;
  3675. (($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;})]);
  3676. return self;},
  3677. args: [],
  3678. source: unescape('updateStatus%0A%09sourceArea%20val%20%3D%20self%20source%0A%09%09ifTrue%3A%20%5B%0A%09%09%09saveButton%20ifNotNil%3A%20%5B%0A%09%09%09%09saveButton%20at%3A%20%27disabled%27%20put%3A%20true%5D.%0A%09%09%09unsavedChanges%20%3A%3D%20false%5D%0A%09%09ifFalse%3A%20%5B%0A%09%09%09saveButton%20ifNotNil%3A%20%5B%0A%09%09%09%09saveButton%20removeAt%3A%20%27disabled%27%5D.%0A%09%09%09unsavedChanges%20%3A%3D%20true%5D'),
  3679. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "val", "source", "ifNotNil:", "at:put:", "removeAt:"],
  3680. referencedClasses: []
  3681. }),
  3682. smalltalk.Debugger);
  3683. smalltalk.addMethod(
  3684. unescape('_updateInspector'),
  3685. smalltalk.method({
  3686. selector: unescape('updateInspector'),
  3687. category: 'updating',
  3688. fn: function (){
  3689. var self=this;
  3690. smalltalk.send(self['@inspector'], "_contents_", [(function(html){return nil;})]);
  3691. return self;},
  3692. args: [],
  3693. source: unescape('updateInspector%0A%09inspector%20contents%3A%20%5B%3Ahtml%20%7C%5D'),
  3694. messageSends: ["contents:"],
  3695. referencedClasses: []
  3696. }),
  3697. smalltalk.Debugger);
  3698. smalltalk.addMethod(
  3699. unescape('_updateVariablesList'),
  3700. smalltalk.method({
  3701. selector: unescape('updateVariablesList'),
  3702. category: 'updating',
  3703. fn: function (){
  3704. var self=this;
  3705. smalltalk.send(self['@ul2'], "_contents_", [(function(html){var li=nil;
  3706. 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;
  3707. 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;
  3708. 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"]);})]);})]);})]);
  3709. (($receiver = self['@selectedVariable']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(self['@inspectButton'], "_at_put_", ["disabled", true]);})() : (function(){return smalltalk.send(self['@inspectButton'], "_removeAt_", ["disabled"]);})();
  3710. return self;},
  3711. args: [],
  3712. source: unescape('updateVariablesList%0A%09ul2%20contents%3A%20%5B%3Ahtml%20%7C%20%7C%20li%20%7C%0A%09%09li%20%3A%3D%20html%20li%20%0A%09%09%09with%3A%20%27self%27%3B%0A%09%09%09onClick%3A%20%5Bself%20selectVariable%3A%20self%20receiver%20named%3A%20%27self%27%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectedVariableName%20%3D%20%27self%27%20ifTrue%3A%20%5B%0A%09%09%09li%20class%3A%20%27selected%27%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20self%20arguments%20withIndexDo%3A%20%5B%3Aeach%20%3Aindex%20%7C%20%7C%20param%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20param%20%3A%3D%20selectedContext%20temps%20at%3A%20index.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20li%20%3A%3D%20html%20li%20%0A%09%09%09%09with%3A%20each%3B%0A%09%09%09%09onClick%3A%20%5Bself%20selectVariable%3A%20param%20named%3A%20each%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectedVariableName%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09%09%09li%20class%3A%20%27selected%27%5D%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20self%20receiver%20class%20allInstanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%20%7C%20ivar%20%7C%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ivar%20%3A%3D%20self%20receiver%20instVarAt%3A%20each.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20li%20%3A%3D%20html%20li%20%0A%09%09%09%09with%3A%20each%3B%0A%09%09%09%09onClick%3A%20%5Bself%20selectVariable%3A%20ivar%20named%3A%20each%5D.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20selectedVariableName%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09%09%09li%20class%3A%20%27selected%27%5D%5D%5D.%0A%09selectedVariable%20ifNil%3A%20%5BinspectButton%20at%3A%20%27disabled%27%20put%3A%20true%5D%20ifNotNil%3A%20%5BinspectButton%20removeAt%3A%20%27disabled%27%5D'),
  3713. messageSends: ["contents:", "with:", "onClick:", "selectVariable:named:", "receiver", "li", "ifTrue:", unescape("%3D"), "class:", "withIndexDo:", "arguments", "at:", "temps", "do:", "allInstanceVariableNames", "class", "instVarAt:", "ifNil:ifNotNil:", "at:put:", "removeAt:"],
  3714. referencedClasses: []
  3715. }),
  3716. smalltalk.Debugger);
  3717. smalltalk.addClass('DebugErrorHandler', smalltalk.ErrorHandler, [], 'IDE');
  3718. smalltalk.addMethod(
  3719. unescape('_handleError_'),
  3720. smalltalk.method({
  3721. selector: unescape('handleError%3A'),
  3722. category: 'error handling',
  3723. fn: function (anError){
  3724. var self=this;
  3725. 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]);})]);
  3726. return self;},
  3727. args: ["anError"],
  3728. source: unescape('handleError%3A%20anError%0A%09%5BDebugger%20new%0A%09%09error%3A%20anError%3B%0A%09%09open%5D%20on%3A%20Error%20do%3A%20%5B%3Aerror%20%7C%0A%09%09%09ErrorHandler%20new%20handleError%3A%20error%5D'),
  3729. messageSends: ["on:do:", "error:", "open", "new", "handleError:"],
  3730. referencedClasses: [smalltalk.Debugger,smalltalk.Error,smalltalk.ErrorHandler]
  3731. }),
  3732. smalltalk.DebugErrorHandler);
  3733. smalltalk.addMethod(
  3734. unescape('_initialize'),
  3735. smalltalk.method({
  3736. selector: unescape('initialize'),
  3737. category: 'initialization',
  3738. fn: function (){
  3739. var self=this;
  3740. smalltalk.send(self, "_register", []);
  3741. return self;},
  3742. args: [],
  3743. source: unescape('initialize%0A%09self%20register'),
  3744. messageSends: ["register"],
  3745. referencedClasses: []
  3746. }),
  3747. smalltalk.DebugErrorHandler.klass);
  3748. smalltalk.addClass('ProgressBar', smalltalk.TabWidget, ['percent', 'progressDiv', 'div'], 'IDE');
  3749. smalltalk.addMethod(
  3750. unescape('_percent'),
  3751. smalltalk.method({
  3752. selector: unescape('percent'),
  3753. category: 'accessing',
  3754. fn: function (){
  3755. var self=this;
  3756. return (($receiver = self['@percent']) == nil || $receiver == undefined) ? (function(){return (0);})() : $receiver;
  3757. return self;},
  3758. args: [],
  3759. source: unescape('percent%0A%09%5Epercent%20ifNil%3A%20%5B0%5D'),
  3760. messageSends: ["ifNil:"],
  3761. referencedClasses: []
  3762. }),
  3763. smalltalk.ProgressBar);
  3764. smalltalk.addMethod(
  3765. unescape('_percent_'),
  3766. smalltalk.method({
  3767. selector: unescape('percent%3A'),
  3768. category: 'accessing',
  3769. fn: function (aNumber){
  3770. var self=this;
  3771. self['@percent']=aNumber;
  3772. return self;},
  3773. args: ["aNumber"],
  3774. source: unescape('percent%3A%20aNumber%0A%09percent%20%3A%3D%20aNumber'),
  3775. messageSends: [],
  3776. referencedClasses: []
  3777. }),
  3778. smalltalk.ProgressBar);
  3779. smalltalk.addMethod(
  3780. unescape('_renderOn_'),
  3781. smalltalk.method({
  3782. selector: unescape('renderOn%3A'),
  3783. category: 'rendering',
  3784. fn: function (html){
  3785. var self=this;
  3786. self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["progress_bar"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []));
  3787. smalltalk.send(self, "_renderProgressBar", []);
  3788. return self;},
  3789. args: ["html"],
  3790. source: unescape('renderOn%3A%20html%20%0A%09div%20%3A%3D%20html%20div%20%0A%09%09class%3A%20%27progress_bar%27%3B%0A%09%09yourself.%0A%09self%20renderProgressBar'),
  3791. messageSends: ["class:", "yourself", "div", "renderProgressBar"],
  3792. referencedClasses: []
  3793. }),
  3794. smalltalk.ProgressBar);
  3795. smalltalk.addMethod(
  3796. unescape('_renderProgressBar'),
  3797. smalltalk.method({
  3798. selector: unescape('renderProgressBar'),
  3799. category: 'rendering',
  3800. fn: function (){
  3801. var self=this;
  3802. 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", []));})]);
  3803. return self;},
  3804. args: [],
  3805. source: unescape('renderProgressBar%0A%09div%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20div%20%0A%09%09%09class%3A%20%27progress%27%3B%0A%09%09%09style%3A%20%27width%3A%27%2C%20self%20percent%20asString%2C%20%27%25%27%5D'),
  3806. messageSends: ["contents:", "class:", "style:", unescape("%2C"), "asString", "percent", "div"],
  3807. referencedClasses: []
  3808. }),
  3809. smalltalk.ProgressBar);
  3810. smalltalk.addMethod(
  3811. unescape('_updatePercent_'),
  3812. smalltalk.method({
  3813. selector: unescape('updatePercent%3A'),
  3814. category: 'updating',
  3815. fn: function (aNumber){
  3816. var self=this;
  3817. smalltalk.send(self, "_percent_", [aNumber]);
  3818. smalltalk.send(self, "_renderProgressBar", []);
  3819. return self;},
  3820. args: ["aNumber"],
  3821. source: unescape('updatePercent%3A%20aNumber%0A%09self%20percent%3A%20aNumber.%0A%09self%20renderProgressBar'),
  3822. messageSends: ["percent:", "renderProgressBar"],
  3823. referencedClasses: []
  3824. }),
  3825. smalltalk.ProgressBar);
  3826. smalltalk.addClass('TestRunner', smalltalk.TabWidget, ['selectedCategories', 'packagesList', 'selectedClasses', 'classesList', 'selectedMethods', 'progressBar', 'methodsList', 'result', 'statusDiv'], 'IDE');
  3827. smalltalk.addMethod(
  3828. unescape('_label'),
  3829. smalltalk.method({
  3830. selector: unescape('label'),
  3831. category: 'accessing',
  3832. fn: function (){
  3833. var self=this;
  3834. return "SUnit";
  3835. return self;},
  3836. args: [],
  3837. source: unescape('label%0A%20%20%20%20%5E%27SUnit%27'),
  3838. messageSends: [],
  3839. referencedClasses: []
  3840. }),
  3841. smalltalk.TestRunner);
  3842. smalltalk.addMethod(
  3843. unescape('_packages'),
  3844. smalltalk.method({
  3845. selector: unescape('packages'),
  3846. category: 'accessing',
  3847. fn: function (){
  3848. var self=this;
  3849. var packages=nil;
  3850. packages=smalltalk.send((smalltalk.Array || Array), "_new", []);
  3851. 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", [])]);})]);})]);
  3852. return smalltalk.send(packages, "_sort", []);
  3853. return self;},
  3854. args: [],
  3855. source: unescape('packages%0A%20%20%20%20%7C%20packages%20%7C%0A%20%20%20%20packages%20%3A%3D%20Array%20new.%0A%20%20%20%20self%20allClasses%20do%3A%20%5B%3Aeach%20%7C%0A%09%28packages%20includes%3A%20each%20category%29%20ifFalse%3A%20%5B%0A%09%20%20%20%20packages%20add%3A%20each%20category%5D%5D.%0A%20%20%20%20%5Epackages%20sort'),
  3856. messageSends: ["new", "do:", "allClasses", "ifFalse:", "includes:", "category", "add:", "sort"],
  3857. referencedClasses: [smalltalk.Array]
  3858. }),
  3859. smalltalk.TestRunner);
  3860. smalltalk.addMethod(
  3861. unescape('_classes'),
  3862. smalltalk.method({
  3863. selector: unescape('classes'),
  3864. category: 'accessing',
  3865. fn: function (){
  3866. var self=this;
  3867. 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", [])]);})]);
  3868. return self;},
  3869. args: [],
  3870. source: unescape('classes%0A%20%20%20%20%5E%28self%20allClasses%20%0A%09select%3A%20%5B%3Aeach%20%7C%20self%20selectedCategories%20includes%3A%20each%20category%5D%29%0A%09sort%3A%20%5B%3Aa%20%3Ab%20%7C%20a%20name%20%3E%20b%20name%5D'),
  3871. messageSends: ["sort:", "select:", "allClasses", "includes:", "selectedCategories", "category", unescape("%3E"), "name"],
  3872. referencedClasses: []
  3873. }),
  3874. smalltalk.TestRunner);
  3875. smalltalk.addMethod(
  3876. unescape('_selectedCategories'),
  3877. smalltalk.method({
  3878. selector: unescape('selectedCategories'),
  3879. category: 'accessing',
  3880. fn: function (){
  3881. var self=this;
  3882. return (($receiver = self['@selectedCategories']) == nil || $receiver == undefined) ? (function(){return self['@selectedCategories']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  3883. return self;},
  3884. args: [],
  3885. source: unescape('selectedCategories%0A%09%5EselectedCategories%20ifNil%3A%20%5BselectedCategories%20%3A%3D%20Array%20new%5D'),
  3886. messageSends: ["ifNil:", "new"],
  3887. referencedClasses: [smalltalk.Array]
  3888. }),
  3889. smalltalk.TestRunner);
  3890. smalltalk.addMethod(
  3891. unescape('_allClasses'),
  3892. smalltalk.method({
  3893. selector: unescape('allClasses'),
  3894. category: 'accessing',
  3895. fn: function (){
  3896. var self=this;
  3897. return smalltalk.send((smalltalk.TestCase || TestCase), "_allSubclasses", []);
  3898. return self;},
  3899. args: [],
  3900. source: unescape('allClasses%0A%09%5ETestCase%20allSubclasses'),
  3901. messageSends: ["allSubclasses"],
  3902. referencedClasses: []
  3903. }),
  3904. smalltalk.TestRunner);
  3905. smalltalk.addMethod(
  3906. unescape('_selectedClasses'),
  3907. smalltalk.method({
  3908. selector: unescape('selectedClasses'),
  3909. category: 'accessing',
  3910. fn: function (){
  3911. var self=this;
  3912. return (($receiver = self['@selectedClasses']) == nil || $receiver == undefined) ? (function(){return self['@selectedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  3913. return self;},
  3914. args: [],
  3915. source: unescape('selectedClasses%0A%09%5EselectedClasses%20%20ifNil%3A%20%5BselectedClasses%20%3A%3D%20Array%20new%5D'),
  3916. messageSends: ["ifNil:", "new"],
  3917. referencedClasses: [smalltalk.Array]
  3918. }),
  3919. smalltalk.TestRunner);
  3920. smalltalk.addMethod(
  3921. unescape('_progressBar'),
  3922. smalltalk.method({
  3923. selector: unescape('progressBar'),
  3924. category: 'accessing',
  3925. fn: function (){
  3926. var self=this;
  3927. return (($receiver = self['@progressBar']) == nil || $receiver == undefined) ? (function(){return self['@progressBar']=smalltalk.send((smalltalk.ProgressBar || ProgressBar), "_new", []);})() : $receiver;
  3928. return self;},
  3929. args: [],
  3930. source: unescape('progressBar%0A%09%5EprogressBar%20ifNil%3A%20%5BprogressBar%20%3A%3D%20ProgressBar%20new%5D'),
  3931. messageSends: ["ifNil:", "new"],
  3932. referencedClasses: [smalltalk.ProgressBar]
  3933. }),
  3934. smalltalk.TestRunner);
  3935. smalltalk.addMethod(
  3936. unescape('_statusInfo'),
  3937. smalltalk.method({
  3938. selector: unescape('statusInfo'),
  3939. category: 'accessing',
  3940. fn: function (){
  3941. var self=this;
  3942. 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", [])]);
  3943. return self;},
  3944. args: [],
  3945. source: unescape('statusInfo%0A%09%5Eself%20printTotal%2C%20self%20printPasses%2C%20self%20printErrors%2C%20self%20printFailures'),
  3946. messageSends: [unescape("%2C"), "printTotal", "printPasses", "printErrors", "printFailures"],
  3947. referencedClasses: []
  3948. }),
  3949. smalltalk.TestRunner);
  3950. smalltalk.addMethod(
  3951. unescape('_result'),
  3952. smalltalk.method({
  3953. selector: unescape('result'),
  3954. category: 'accessing',
  3955. fn: function (){
  3956. var self=this;
  3957. return self['@result'];
  3958. return self;},
  3959. args: [],
  3960. source: unescape('result%0A%09%5Eresult'),
  3961. messageSends: [],
  3962. referencedClasses: []
  3963. }),
  3964. smalltalk.TestRunner);
  3965. smalltalk.addMethod(
  3966. unescape('_testCases'),
  3967. smalltalk.method({
  3968. selector: unescape('testCases'),
  3969. category: 'accessing',
  3970. fn: function (){
  3971. var self=this;
  3972. var testCases=nil;
  3973. testCases=[];
  3974. smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_do_", [(function(each){return smalltalk.send(testCases, "_addAll_", [smalltalk.send(each, "_buildSuite", [])]);})]);
  3975. return testCases;
  3976. return self;},
  3977. args: [],
  3978. source: unescape('testCases%0A%09%7C%20testCases%20%7C%0A%09testCases%20%3A%3D%20%23%28%29.%0A%09self%20selectedClasses%20do%3A%20%5B%3Aeach%20%7C%20testCases%20addAll%3A%20each%20buildSuite%5D.%0A%09%5EtestCases'),
  3979. messageSends: ["do:", "selectedClasses", "addAll:", "buildSuite"],
  3980. referencedClasses: []
  3981. }),
  3982. smalltalk.TestRunner);
  3983. smalltalk.addMethod(
  3984. unescape('_selectAllCategories'),
  3985. smalltalk.method({
  3986. selector: unescape('selectAllCategories'),
  3987. category: 'actions',
  3988. fn: function (){
  3989. var self=this;
  3990. 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]);})]);})]);
  3991. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  3992. return self;},
  3993. args: [],
  3994. source: unescape('selectAllCategories%0A%09self%20packages%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09%28selectedCategories%20includes%3A%20each%29%20ifFalse%3A%20%5B%0A%09%09%09self%20selectedCategories%20add%3A%20each%5D%5D.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList'),
  3995. messageSends: ["do:", "packages", "ifFalse:", "includes:", "add:", "selectedCategories", "updateCategoriesList", "updateClassesList"],
  3996. referencedClasses: []
  3997. }),
  3998. smalltalk.TestRunner);
  3999. smalltalk.addMethod(
  4000. unescape('_toggleCategory_'),
  4001. smalltalk.method({
  4002. selector: unescape('toggleCategory%3A'),
  4003. category: 'actions',
  4004. fn: function (aCategory){
  4005. var self=this;
  4006. (($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]);})]);
  4007. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  4008. return self;},
  4009. args: ["aCategory"],
  4010. source: unescape('toggleCategory%3A%20aCategory%0A%09%28self%20isSelectedCategory%3A%20aCategory%29%20%0A%09%09ifFalse%3A%20%5BselectedCategories%20add%3A%20aCategory%5D%0A%09%09ifTrue%3A%20%5BselectedCategories%20remove%3A%20aCategory%5D.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList'),
  4011. messageSends: ["ifFalse:ifTrue:", "isSelectedCategory:", "add:", "remove:", "updateCategoriesList", "updateClassesList"],
  4012. referencedClasses: []
  4013. }),
  4014. smalltalk.TestRunner);
  4015. smalltalk.addMethod(
  4016. unescape('_toggleClass_'),
  4017. smalltalk.method({
  4018. selector: unescape('toggleClass%3A'),
  4019. category: 'actions',
  4020. fn: function (aClass){
  4021. var self=this;
  4022. (($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]);})]);
  4023. smalltalk.send(self, "_updateClassesList", []);
  4024. return self;},
  4025. args: ["aClass"],
  4026. source: unescape('toggleClass%3A%20aClass%0A%09%28self%20isSelectedClass%3A%20aClass%29%20%0A%09%09ifFalse%3A%20%5BselectedClasses%20add%3A%20aClass%5D%0A%09%09ifTrue%3A%20%5BselectedClasses%20remove%3A%20aClass%5D.%0A%09self%20%0A%09%20%20%20%20updateClassesList'),
  4027. messageSends: ["ifFalse:ifTrue:", "isSelectedClass:", "add:", "remove:", "updateClassesList"],
  4028. referencedClasses: []
  4029. }),
  4030. smalltalk.TestRunner);
  4031. smalltalk.addMethod(
  4032. unescape('_selectAllClasses'),
  4033. smalltalk.method({
  4034. selector: unescape('selectAllClasses'),
  4035. category: 'actions',
  4036. fn: function (){
  4037. var self=this;
  4038. 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]);})]);})]);
  4039. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  4040. return self;},
  4041. args: [],
  4042. source: unescape('selectAllClasses%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09%28selectedClasses%20includes%3A%20each%29%20ifFalse%3A%20%5B%0A%09%09%09self%20selectedClasses%20add%3A%20each%5D%5D.%0A%09self%20%0A%09%20%20%20%20updateCategoriesList%3B%0A%09%20%20%20%20updateClassesList'),
  4043. messageSends: ["do:", "classes", "ifFalse:", "includes:", "add:", "selectedClasses", "updateCategoriesList", "updateClassesList"],
  4044. referencedClasses: []
  4045. }),
  4046. smalltalk.TestRunner);
  4047. smalltalk.addMethod(
  4048. unescape('_run_'),
  4049. smalltalk.method({
  4050. selector: unescape('run%3A'),
  4051. category: 'actions',
  4052. fn: function (aCollection){
  4053. var self=this;
  4054. self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []);
  4055. (function($rec){smalltalk.send($rec, "_updateStatusDiv", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);
  4056. smalltalk.send(smalltalk.send(self, "_progressBar", []), "_updatePercent_", [(0)]);
  4057. smalltalk.send(self['@result'], "_total_", [smalltalk.send(aCollection, "_size", [])]);
  4058. 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)]);})]);
  4059. return self;},
  4060. args: ["aCollection"],
  4061. source: unescape('run%3A%20aCollection%0A%09result%20%3A%3D%20TestResult%20new.%0A%09self%20%0A%09%09updateStatusDiv%3B%0A%09%09updateMethodsList.%0A%09self%20progressBar%20updatePercent%3A%200.%0A%09result%20total%3A%20aCollection%20size.%0A%09aCollection%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09%5Beach%20runCaseFor%3A%20result.%0A%09%09self%20progressBar%20updatePercent%3A%20result%20runs%20/%20result%20total%20*%20100.%0A%09%09self%20updateStatusDiv.%0A%09%09self%20updateMethodsList%5D%20valueWithTimeout%3A%20100%5D.'),
  4062. messageSends: ["new", "updateStatusDiv", "updateMethodsList", "updatePercent:", "progressBar", "total:", "size", "do:", "valueWithTimeout:", "runCaseFor:", unescape("*"), unescape("/"), "runs", "total"],
  4063. referencedClasses: []
  4064. }),
  4065. smalltalk.TestRunner);
  4066. smalltalk.addMethod(
  4067. unescape('_performFailure_'),
  4068. smalltalk.method({
  4069. selector: unescape('performFailure%3A'),
  4070. category: 'actions',
  4071. fn: function (aTestCase){
  4072. var self=this;
  4073. smalltalk.send(aTestCase, "_perform_", [smalltalk.send(aTestCase, "_selector", [])]);
  4074. return self;},
  4075. args: ["aTestCase"],
  4076. source: unescape('performFailure%3A%20aTestCase%0A%09aTestCase%20perform%3A%20aTestCase%20selector'),
  4077. messageSends: ["perform:", "selector"],
  4078. referencedClasses: []
  4079. }),
  4080. smalltalk.TestRunner);
  4081. smalltalk.addMethod(
  4082. unescape('_initialize'),
  4083. smalltalk.method({
  4084. selector: unescape('initialize'),
  4085. category: 'initialization',
  4086. fn: function (){
  4087. var self=this;
  4088. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  4089. self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []);
  4090. return self;},
  4091. args: [],
  4092. source: unescape('initialize%0A%09super%20initialize.%0A%09result%20%3A%3D%20TestResult%20new'),
  4093. messageSends: ["initialize", "new"],
  4094. referencedClasses: []
  4095. }),
  4096. smalltalk.TestRunner);
  4097. smalltalk.addMethod(
  4098. unescape('_printErrors'),
  4099. smalltalk.method({
  4100. selector: unescape('printErrors'),
  4101. category: 'printing',
  4102. fn: function (){
  4103. var self=this;
  4104. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", []), "_asString", []), "__comma", [unescape("%20errors%2C%20")]);
  4105. return self;},
  4106. args: [],
  4107. source: unescape('printErrors%0A%09%5Eself%20result%20errors%20size%20asString%20%2C%20%27%20errors%2C%20%27'),
  4108. messageSends: [unescape("%2C"), "asString", "size", "errors", "result"],
  4109. referencedClasses: []
  4110. }),
  4111. smalltalk.TestRunner);
  4112. smalltalk.addMethod(
  4113. unescape('_printFailures'),
  4114. smalltalk.method({
  4115. selector: unescape('printFailures'),
  4116. category: 'printing',
  4117. fn: function (){
  4118. var self=this;
  4119. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []), "_asString", []), "__comma", [" failures"]);
  4120. return self;},
  4121. args: [],
  4122. source: unescape('printFailures%0A%09%5Eself%20result%20failures%20size%20asString%2C%20%27%20failures%27'),
  4123. messageSends: [unescape("%2C"), "asString", "size", "failures", "result"],
  4124. referencedClasses: []
  4125. }),
  4126. smalltalk.TestRunner);
  4127. smalltalk.addMethod(
  4128. unescape('_printPasses'),
  4129. smalltalk.method({
  4130. selector: unescape('printPasses'),
  4131. category: 'printing',
  4132. fn: function (){
  4133. var self=this;
  4134. 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")]);
  4135. return self;},
  4136. args: [],
  4137. source: unescape('printPasses%0A%09%5E%28self%20result%20total%20-%20self%20result%20errors%20size%20-%20self%20result%20failures%20size%29%20asString%20%2C%20%27%20passes%2C%20%27'),
  4138. messageSends: [unescape("%2C"), "asString", unescape("-"), "total", "result", "size", "errors", "failures"],
  4139. referencedClasses: []
  4140. }),
  4141. smalltalk.TestRunner);
  4142. smalltalk.addMethod(
  4143. unescape('_printTotal'),
  4144. smalltalk.method({
  4145. selector: unescape('printTotal'),
  4146. category: 'printing',
  4147. fn: function (){
  4148. var self=this;
  4149. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_total", []), "_asString", []), "__comma", [unescape("%20runs%2C%20")]);
  4150. return self;},
  4151. args: [],
  4152. source: unescape('printTotal%0A%09%5Eself%20result%20total%20asString%2C%20%27%20runs%2C%20%27'),
  4153. messageSends: [unescape("%2C"), "asString", "total", "result"],
  4154. referencedClasses: []
  4155. }),
  4156. smalltalk.TestRunner);
  4157. smalltalk.addMethod(
  4158. unescape('_renderBoxOn_'),
  4159. smalltalk.method({
  4160. selector: unescape('renderBoxOn%3A'),
  4161. category: 'rendering',
  4162. fn: function (html){
  4163. var self=this;
  4164. (function($rec){smalltalk.send($rec, "_renderCategoriesOn_", [html]);smalltalk.send($rec, "_renderClassesOn_", [html]);return smalltalk.send($rec, "_renderResultsOn_", [html]);})(self);
  4165. return self;},
  4166. args: ["html"],
  4167. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderCategoriesOn%3A%20html%3B%0A%09renderClassesOn%3A%20html%3B%0A%09renderResultsOn%3A%20html'),
  4168. messageSends: ["renderCategoriesOn:", "renderClassesOn:", "renderResultsOn:"],
  4169. referencedClasses: []
  4170. }),
  4171. smalltalk.TestRunner);
  4172. smalltalk.addMethod(
  4173. unescape('_renderButtonsOn_'),
  4174. smalltalk.method({
  4175. selector: unescape('renderButtonsOn%3A'),
  4176. category: 'rendering',
  4177. fn: function (html){
  4178. var self=this;
  4179. (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", []));
  4180. return self;},
  4181. args: ["html"],
  4182. source: unescape('renderButtonsOn%3A%20html%0A%20%20%20%20html%20button%0A%09with%3A%20%27Run%20selected%27%3B%0A%09onClick%3A%20%5Bself%20run%3A%20self%20testCases%5D'),
  4183. messageSends: ["with:", "onClick:", "run:", "testCases", "button"],
  4184. referencedClasses: []
  4185. }),
  4186. smalltalk.TestRunner);
  4187. smalltalk.addMethod(
  4188. unescape('_renderCategoriesOn_'),
  4189. smalltalk.method({
  4190. selector: unescape('renderCategoriesOn%3A'),
  4191. category: 'rendering',
  4192. fn: function (html){
  4193. var self=this;
  4194. self['@packagesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit packages"]);
  4195. smalltalk.send(self, "_updateCategoriesList", []);
  4196. return self;},
  4197. args: ["html"],
  4198. source: unescape('renderCategoriesOn%3A%20html%0A%09packagesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20packages%27.%0A%09self%20updateCategoriesList'),
  4199. messageSends: ["class:", "ul", "updateCategoriesList"],
  4200. referencedClasses: []
  4201. }),
  4202. smalltalk.TestRunner);
  4203. smalltalk.addMethod(
  4204. unescape('_renderClassesOn_'),
  4205. smalltalk.method({
  4206. selector: unescape('renderClassesOn%3A'),
  4207. category: 'rendering',
  4208. fn: function (html){
  4209. var self=this;
  4210. self['@classesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit classes"]);
  4211. smalltalk.send(self, "_updateClassesList", []);
  4212. return self;},
  4213. args: ["html"],
  4214. source: unescape('renderClassesOn%3A%20html%0A%09classesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20classes%27.%0A%09self%20updateClassesList'),
  4215. messageSends: ["class:", "ul", "updateClassesList"],
  4216. referencedClasses: []
  4217. }),
  4218. smalltalk.TestRunner);
  4219. smalltalk.addMethod(
  4220. unescape('_renderResultsOn_'),
  4221. smalltalk.method({
  4222. selector: unescape('renderResultsOn%3A'),
  4223. category: 'rendering',
  4224. fn: function (html){
  4225. var self=this;
  4226. self['@statusDiv']=smalltalk.send(html, "_div", []);
  4227. smalltalk.send(html, "_with_", [smalltalk.send(self, "_progressBar", [])]);
  4228. self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit results"]);
  4229. smalltalk.send(self, "_updateMethodsList", []);
  4230. smalltalk.send(self, "_updateStatusDiv", []);
  4231. return self;},
  4232. args: ["html"],
  4233. source: unescape('renderResultsOn%3A%20html%0A%09statusDiv%20%3A%3D%20html%20div.%0A%09html%20with%3A%20self%20progressBar.%0A%09methodsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20results%27.%0A%09self%20updateMethodsList.%0A%09self%20updateStatusDiv'),
  4234. messageSends: ["div", "with:", "progressBar", "class:", "ul", "updateMethodsList", "updateStatusDiv"],
  4235. referencedClasses: []
  4236. }),
  4237. smalltalk.TestRunner);
  4238. smalltalk.addMethod(
  4239. unescape('_renderFailuresOn_'),
  4240. smalltalk.method({
  4241. selector: unescape('renderFailuresOn%3A'),
  4242. category: 'rendering',
  4243. fn: function (html){
  4244. var self=this;
  4245. 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", []));})]);
  4246. return self;},
  4247. args: ["html"],
  4248. source: unescape('renderFailuresOn%3A%20html%0A%09self%20result%20failures%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%20%0A%09%09%09class%3A%20%27failures%27%3B%0A%09%09%09with%3A%20each%20class%20name%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20onClick%3A%20%5Bself%20performFailure%3A%20each%5D%5D'),
  4249. messageSends: ["do:", "failures", "result", "class:", "with:", unescape("%2C"), "name", "class", "selector", "onClick:", "performFailure:", "li"],
  4250. referencedClasses: []
  4251. }),
  4252. smalltalk.TestRunner);
  4253. smalltalk.addMethod(
  4254. unescape('_renderErrorsOn_'),
  4255. smalltalk.method({
  4256. selector: unescape('renderErrorsOn%3A'),
  4257. category: 'rendering',
  4258. fn: function (html){
  4259. var self=this;
  4260. 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", []));})]);
  4261. return self;},
  4262. args: ["html"],
  4263. source: unescape('renderErrorsOn%3A%20html%0A%09self%20result%20errors%20do%3A%20%5B%3Aeach%20%7C%0A%09%09html%20li%20%0A%09%09%09class%3A%20%27errors%27%3B%0A%09%09%09with%3A%20each%20class%20name%2C%20%27%20%3E%3E%20%27%2C%20each%20selector%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20onClick%3A%20%5Bself%20performFailure%3A%20each%5D%5D'),
  4264. messageSends: ["do:", "errors", "result", "class:", "with:", unescape("%2C"), "name", "class", "selector", "onClick:", "performFailure:", "li"],
  4265. referencedClasses: []
  4266. }),
  4267. smalltalk.TestRunner);
  4268. smalltalk.addMethod(
  4269. unescape('_isSelectedClass_'),
  4270. smalltalk.method({
  4271. selector: unescape('isSelectedClass%3A'),
  4272. category: 'testing',
  4273. fn: function (aClass){
  4274. var self=this;
  4275. return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_includes_", [aClass]);
  4276. return self;},
  4277. args: ["aClass"],
  4278. source: unescape('isSelectedClass%3A%20aClass%0A%09%5E%28self%20selectedClasses%20includes%3A%20aClass%29'),
  4279. messageSends: ["includes:", "selectedClasses"],
  4280. referencedClasses: []
  4281. }),
  4282. smalltalk.TestRunner);
  4283. smalltalk.addMethod(
  4284. unescape('_isSelectedCategory_'),
  4285. smalltalk.method({
  4286. selector: unescape('isSelectedCategory%3A'),
  4287. category: 'testing',
  4288. fn: function (aCategory){
  4289. var self=this;
  4290. return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_includes_", [aCategory]);
  4291. return self;},
  4292. args: ["aCategory"],
  4293. source: unescape('isSelectedCategory%3A%20aCategory%0A%09%5E%28self%20selectedCategories%20includes%3A%20aCategory%29'),
  4294. messageSends: ["includes:", "selectedCategories"],
  4295. referencedClasses: []
  4296. }),
  4297. smalltalk.TestRunner);
  4298. smalltalk.addMethod(
  4299. unescape('_updateCategoriesList'),
  4300. smalltalk.method({
  4301. selector: unescape('updateCategoriesList'),
  4302. category: 'updating',
  4303. fn: function (){
  4304. var self=this;
  4305. 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;
  4306. 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);})]);})]);
  4307. return self;},
  4308. args: [],
  4309. source: unescape('updateCategoriesList%0A%20%20%20%20packagesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%20%20%20%20html%20li%20%0A%09%09class%3A%20%27all%27%3B%0A%09%09with%3A%20%27All%27%3B%0A%09%09onClick%3A%20%5Bself%20selectAllCategories%5D.%0A%09self%20packages%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20%28self%20selectedCategories%20includes%3A%20each%29%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%3B%0A%09%09onClick%3A%20%5Bself%20toggleCategory%3A%20each%5D%5D%5D'),
  4310. messageSends: ["contents:", "class:", "with:", "onClick:", "selectAllCategories", "li", "do:", "packages", "ifTrue:", "includes:", "selectedCategories", "toggleCategory:"],
  4311. referencedClasses: []
  4312. }),
  4313. smalltalk.TestRunner);
  4314. smalltalk.addMethod(
  4315. unescape('_updateClassesList'),
  4316. smalltalk.method({
  4317. selector: unescape('updateClassesList'),
  4318. category: 'updating',
  4319. fn: function (){
  4320. var self=this;
  4321. 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;
  4322. 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);})]);})]);
  4323. return self;},
  4324. args: [],
  4325. source: unescape('updateClassesList%0A%20%20%20%20classesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%28self%20selectedCategories%20isEmpty%29%20ifFalse%3A%20%5B%0A%09%09html%20li%0A%09%09%09class%3A%20%27all%27%3B%0A%09%09%09with%3A%20%27All%27%3B%0A%09%09%09onClick%3A%20%5Bself%20selectAllClasses%5D%5D.%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%09li%20%3A%3D%20html%20li.%0A%09%09%28self%20selectedClasses%20includes%3A%20each%29%20ifTrue%3A%20%5B%0A%09%09%09li%20class%3A%20%27selected%27%5D.%0A%09%09li%0A%09%09%09with%3A%20each%20name%3B%0A%09%09%09onClick%3A%20%5Bself%20toggleClass%3A%20each%5D%5D%5D'),
  4326. messageSends: ["contents:", "ifFalse:", "isEmpty", "selectedCategories", "class:", "with:", "onClick:", "selectAllClasses", "li", "do:", "classes", "ifTrue:", "includes:", "selectedClasses", "name", "toggleClass:"],
  4327. referencedClasses: []
  4328. }),
  4329. smalltalk.TestRunner);
  4330. smalltalk.addMethod(
  4331. unescape('_updateMethodsList'),
  4332. smalltalk.method({
  4333. selector: unescape('updateMethodsList'),
  4334. category: 'updating',
  4335. fn: function (){
  4336. var self=this;
  4337. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){smalltalk.send(self, "_renderErrorsOn_", [html]);return smalltalk.send(self, "_renderFailuresOn_", [html]);})]);
  4338. return self;},
  4339. args: [],
  4340. source: unescape('updateMethodsList%0A%09methodsList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20renderErrorsOn%3A%20html.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20self%20renderFailuresOn%3A%20html%5D'),
  4341. messageSends: ["contents:", "renderErrorsOn:", "renderFailuresOn:"],
  4342. referencedClasses: []
  4343. }),
  4344. smalltalk.TestRunner);
  4345. smalltalk.addMethod(
  4346. unescape('_updateStatusDiv'),
  4347. smalltalk.method({
  4348. selector: unescape('updateStatusDiv'),
  4349. category: 'updating',
  4350. fn: function (){
  4351. var self=this;
  4352. smalltalk.send(self['@statusDiv'], "_class_", [smalltalk.send("sunit status ", "__comma", [smalltalk.send(self['@result'], "_status", [])])]);
  4353. smalltalk.send(self['@statusDiv'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(html, "_span", []), "_with_", [smalltalk.send(self, "_statusInfo", [])]);})]);
  4354. return self;},
  4355. args: [],
  4356. source: unescape('updateStatusDiv%0A%09statusDiv%20class%3A%20%27sunit%20status%20%27%2C%20result%20status.%0A%09statusDiv%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09html%20span%20with%3A%20self%20statusInfo%5D'),
  4357. messageSends: ["class:", unescape("%2C"), "status", "contents:", "with:", "span", "statusInfo"],
  4358. referencedClasses: []
  4359. }),
  4360. smalltalk.TestRunner);
  4361. smalltalk.addMethod(
  4362. unescape('_inspect'),
  4363. smalltalk.method({
  4364. selector: unescape('inspect'),
  4365. category: '*IDE',
  4366. fn: function (){
  4367. var self=this;
  4368. (function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send((smalltalk.Inspector || Inspector), "_new", []));
  4369. return self;},
  4370. args: [],
  4371. source: unescape('inspect%0A%09Inspector%20new%20%0A%09%09inspect%3A%20self%3B%0A%09%09open'),
  4372. messageSends: ["inspect:", "open", "new"],
  4373. referencedClasses: [smalltalk.Inspector]
  4374. }),
  4375. smalltalk.Object);
  4376. smalltalk.addMethod(
  4377. unescape('_inspectOn_'),
  4378. smalltalk.method({
  4379. selector: unescape('inspectOn%3A'),
  4380. category: '*IDE',
  4381. fn: function (anInspector){
  4382. var self=this;
  4383. var variables=nil;
  4384. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  4385. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4386. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  4387. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4388. return self;},
  4389. args: ["anInspector"],
  4390. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09self%20class%20allInstanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09variables%20at%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  4391. messageSends: ["new", "at:put:", "do:", "allInstanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  4392. referencedClasses: [smalltalk.Dictionary]
  4393. }),
  4394. smalltalk.Object);
  4395. smalltalk.addMethod(
  4396. unescape('_inspectOn_'),
  4397. smalltalk.method({
  4398. selector: unescape('inspectOn%3A'),
  4399. category: '*IDE',
  4400. fn: function (anInspector){
  4401. var self=this;
  4402. var variables=nil;
  4403. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  4404. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4405. smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
  4406. smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
  4407. smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
  4408. smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
  4409. smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
  4410. smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
  4411. smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
  4412. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4413. return self;},
  4414. args: ["anInspector"],
  4415. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23year%27%20put%3A%20self%20year.%0A%09variables%20at%3A%20%27%23month%27%20put%3A%20self%20month.%0A%09variables%20at%3A%20%27%23day%27%20put%3A%20self%20day.%0A%09variables%20at%3A%20%27%23hours%27%20put%3A%20self%20hours.%0A%09variables%20at%3A%20%27%23minutes%27%20put%3A%20self%20minutes.%0A%09variables%20at%3A%20%27%23seconds%27%20put%3A%20self%20seconds.%0A%09variables%20at%3A%20%27%23milliseconds%27%20put%3A%20self%20milliseconds.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  4416. messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
  4417. referencedClasses: [smalltalk.Dictionary]
  4418. }),
  4419. smalltalk.Date);
  4420. smalltalk.addMethod(
  4421. unescape('_inspectOn_'),
  4422. smalltalk.method({
  4423. selector: unescape('inspectOn%3A'),
  4424. category: '*IDE',
  4425. fn: function (anInspector){
  4426. var self=this;
  4427. var variables=nil;
  4428. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  4429. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4430. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
  4431. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4432. return self;},
  4433. args: ["anInspector"],
  4434. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09self%20withIndexDo%3A%20%5B%3Aeach%20%3Ai%20%7C%0A%09%09variables%20at%3A%20i%20put%3A%20each%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  4435. messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
  4436. referencedClasses: [smalltalk.Dictionary]
  4437. }),
  4438. smalltalk.Collection);
  4439. smalltalk.addMethod(
  4440. unescape('_inspectOn_'),
  4441. smalltalk.method({
  4442. selector: unescape('inspectOn%3A'),
  4443. category: '*IDE',
  4444. fn: function (anInspector){
  4445. var self=this;
  4446. var label=nil;
  4447. smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.SequenceableCollection);
  4448. (($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", []);})]);
  4449. smalltalk.send(anInspector, "_setLabel_", [label]);
  4450. return self;},
  4451. args: ["anInspector"],
  4452. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20label%20%7C%0A%09super%20inspectOn%3A%20anInspector.%0A%09self%20printString%20size%20%3E%2030%20%0A%09%09ifTrue%3A%20%5Blabel%20%3A%3D%20%28self%20printString%20copyFrom%3A%201%20to%3A%2030%29%2C%20%27...%27%27%27%5D%0A%09%09ifFalse%3A%20%5Blabel%20%3A%3D%20self%20printString%5D.%20%0A%09anInspector%20setLabel%3A%20label'),
  4453. messageSends: ["inspectOn:", "ifTrue:ifFalse:", unescape("%3E"), "size", "printString", unescape("%2C"), "copyFrom:to:", "setLabel:"],
  4454. referencedClasses: []
  4455. }),
  4456. smalltalk.String);
  4457. smalltalk.addMethod(
  4458. unescape('_inspectOn_'),
  4459. smalltalk.method({
  4460. selector: unescape('inspectOn%3A'),
  4461. category: '*IDE',
  4462. fn: function (anInspector){
  4463. var self=this;
  4464. var variables=nil;
  4465. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  4466. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4467. smalltalk.send(variables, "_at_put_", [unescape("%23home"), smalltalk.send(self, "_home", [])]);
  4468. smalltalk.send(variables, "_at_put_", [unescape("%23receiver"), smalltalk.send(self, "_receiver", [])]);
  4469. smalltalk.send(variables, "_at_put_", [unescape("%23selector"), smalltalk.send(self, "_selector", [])]);
  4470. smalltalk.send(variables, "_at_put_", [unescape("%23temps"), smalltalk.send(self, "_temps", [])]);
  4471. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  4472. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4473. return self;},
  4474. args: ["anInspector"],
  4475. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23home%27%20put%3A%20self%20home.%0A%09variables%20at%3A%20%27%23receiver%27%20put%3A%20self%20receiver.%0A%09variables%20at%3A%20%27%23selector%27%20put%3A%20self%20selector.%0A%09variables%20at%3A%20%27%23temps%27%20put%3A%20self%20temps.%0A%09self%20class%20instanceVariableNames%20do%3A%20%5B%3Aeach%20%7C%0A%09%09variables%20at%3A%20each%20put%3A%20%28self%20instVarAt%3A%20each%29%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  4476. messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  4477. referencedClasses: [smalltalk.Dictionary]
  4478. }),
  4479. smalltalk.MethodContext);
  4480. smalltalk.addMethod(
  4481. unescape('_inspectOn_'),
  4482. smalltalk.method({
  4483. selector: unescape('inspectOn%3A'),
  4484. category: '*IDE',
  4485. fn: function (anInspector){
  4486. var self=this;
  4487. var variables=nil;
  4488. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  4489. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4490. smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]);
  4491. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]);
  4492. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4493. return self;},
  4494. args: ["anInspector"],
  4495. source: unescape('inspectOn%3A%20anInspector%0A%09%7C%20variables%20%7C%0A%09variables%20%3A%3D%20Dictionary%20new.%0A%09variables%20at%3A%20%27%23self%27%20put%3A%20self.%0A%09variables%20at%3A%20%27%23keys%27%20put%3A%20self%20keys.%0A%09self%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%0A%09%09variables%20at%3A%20key%20put%3A%20value%5D.%0A%09anInspector%20%0A%09%09setLabel%3A%20self%20printString%3B%0A%09%09setVariables%3A%20variables'),
  4496. messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
  4497. referencedClasses: [smalltalk.Dictionary]
  4498. }),
  4499. smalltalk.Dictionary);