IDE.js 287 KB

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