1
0

IDE.js 286 KB

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