1
0

IDE.js 292 KB

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