1
0

IDE.js 288 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901
  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", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return []}})})();})]));klass=((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return self['@selectedClass'];})() : (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return self['@selectedClass'];}), (function(){return smalltalk.send(self['@selectedClass'], "_class", []);})]));((($receiver = smalltalk.send(smalltalk.send(klass, "_methodDictionary", []), "_isEmpty", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send((smalltalk.Array || Array), "_with_", ["not yet classified"])}})})();})]));return (function(){throw({name: 'stReturn', selector: '_protocols', fn: function(){return smalltalk.send(klass, "_protocols", [])}})})();})() : nil;
  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", ["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", ["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", ["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", ["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", ["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", ["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", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]));return smalltalk.send(self, "_selectMethod_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]));return smalltalk.send(self, "_selectMethod_", [nil]);})]));})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return ((($receiver = smalltalk.send((typeof window == 'undefined' ? nil : window), "_confirm_", [smalltalk.send(smalltalk.send(unescape("Do%20you%20really%20want%20to%20remove%20%23"), "__comma", [smalltalk.send(self['@selectedMethod'], "_selector", [])]), "__comma", [unescape("%3F")])])).klass === smalltalk.Boolean) ? ($receiver ? (function(){((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]));return smalltalk.send(self, "_selectMethod_", [nil]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);})() : (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(self['@selectedClass'], "_removeCompiledMethod_", [self['@selectedMethod']]);}), (function(){return smalltalk.send(smalltalk.send(self['@selectedClass'], "_class", []), "_removeCompiledMethod_", [self['@selectedMethod']]);})]));return smalltalk.send(self, "_selectMethod_", [nil]);})]));})]));
  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('_commitPackageToLocalStorage'),
  1445. smalltalk.method({
  1446. selector: unescape('commitPackageToLocalStorage'),
  1447. category: 'actions',
  1448. fn: function (){
  1449. var self=this;
  1450. var key=nil;
  1451. var sourceCode=nil;
  1452. (($receiver = self['@selectedPackage']) != nil && $receiver != undefined) ? (function(){key=smalltalk.send("smalltalk.packages.", "__comma", [self['@selectedPackage']]);sourceCode=smalltalk.send(smalltalk.send((smalltalk.Exporter || Exporter), "_new", []), "_exportPackage_", [self['@selectedPackage']]);return localStorage[key] = sourceCode;})() : nil;
  1453. return self;},
  1454. args: [],
  1455. source: unescape('commitPackageToLocalStorage%0A%09%7C%20key%20sourceCode%20%7C%0A%09selectedPackage%20ifNotNil%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%09key%20%3A%3D%20%27smalltalk.packages.%27%20%2C%20selectedPackage.%0A%09%09sourceCode%20%3A%3D%20%28Exporter%20new%20exportPackage%3A%20selectedPackage%29.%0A%09%09%3ClocalStorage%5Bkey%5D%20%3D%20sourceCode%3E%5D'),
  1456. messageSends: ["ifNotNil:", unescape("%2C"), "exportPackage:", "new"],
  1457. referencedClasses: ["Exporter"]
  1458. }),
  1459. smalltalk.Browser);
  1460. smalltalk.addMethod(
  1461. unescape('_addNewClass'),
  1462. smalltalk.method({
  1463. selector: unescape('addNewClass'),
  1464. category: 'actions',
  1465. fn: function (){
  1466. var self=this;
  1467. var className=nil;
  1468. className=smalltalk.send((typeof window == 'undefined' ? nil : window), "_prompt_", ["New class"]);
  1469. ((($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])]);})]));
  1470. return self;},
  1471. args: [],
  1472. 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'),
  1473. messageSends: ["prompt:", "ifTrue:", "and:", "notNil", "notEmpty", "subclass:instanceVariableNames:package:", "selectedPackage", "resetClassesList", "updateClassesList", "selectClass:", "at:", "current"],
  1474. referencedClasses: ["Object", "Smalltalk"]
  1475. }),
  1476. smalltalk.Browser);
  1477. smalltalk.addMethod(
  1478. unescape('_copyClass'),
  1479. smalltalk.method({
  1480. selector: unescape('copyClass'),
  1481. category: 'actions',
  1482. fn: function (){
  1483. var self=this;
  1484. var className=nil;
  1485. className=smalltalk.send((typeof window == 'undefined' ? nil : window), "_prompt_", ["Copy class"]);
  1486. ((($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])]);})]));
  1487. return self;},
  1488. args: [],
  1489. 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'),
  1490. messageSends: ["prompt:", "ifTrue:", "and:", "notNil", "notEmpty", "copyClass:named:", "new", "selectedClass", "resetClassesList", "updateClassesList", "selectClass:", "at:", "current"],
  1491. referencedClasses: ["ClassBuilder", "Smalltalk"]
  1492. }),
  1493. smalltalk.Browser);
  1494. smalltalk.addMethod(
  1495. unescape('_initialize'),
  1496. smalltalk.method({
  1497. selector: unescape('initialize'),
  1498. category: 'initialization',
  1499. fn: function (){
  1500. var self=this;
  1501. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  1502. self['@selectedTab']="instance";
  1503. self['@selectedPackage']=smalltalk.send(smalltalk.send(self, "_packages", []), "_first", []);
  1504. self['@unsavedChanges']=false;
  1505. return self;},
  1506. args: [],
  1507. 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'),
  1508. messageSends: ["initialize", "first", "packages"],
  1509. referencedClasses: []
  1510. }),
  1511. smalltalk.Browser);
  1512. smalltalk.addMethod(
  1513. unescape('_ajaxPutAt_data_'),
  1514. smalltalk.method({
  1515. selector: unescape('ajaxPutAt%3Adata%3A'),
  1516. category: 'network',
  1517. fn: function (anURL, aString){
  1518. var self=this;
  1519. 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])]);})])])]);
  1520. return self;},
  1521. args: ["anURL", "aString"],
  1522. 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'),
  1523. messageSends: ["ajax:options:", unescape("-%3E"), "alert:", unescape("%2C")],
  1524. referencedClasses: []
  1525. }),
  1526. smalltalk.Browser);
  1527. smalltalk.addMethod(
  1528. unescape('_renderBoxOn_'),
  1529. smalltalk.method({
  1530. selector: unescape('renderBoxOn%3A'),
  1531. category: 'rendering',
  1532. fn: function (html){
  1533. var self=this;
  1534. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);smalltalk.send($rec, "_renderTabsOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1535. return self;},
  1536. args: ["html"],
  1537. 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'),
  1538. messageSends: ["renderTopPanelOn:", "renderTabsOn:", "renderBottomPanelOn:"],
  1539. referencedClasses: []
  1540. }),
  1541. smalltalk.Browser);
  1542. smalltalk.addMethod(
  1543. unescape('_renderTopPanelOn_'),
  1544. smalltalk.method({
  1545. selector: unescape('renderTopPanelOn%3A'),
  1546. category: 'rendering',
  1547. fn: function (html){
  1548. var self=this;
  1549. (function($rec){smalltalk.send($rec, "_class_", ["top"]);return smalltalk.send($rec, "_with_", [(function(){self['@packagesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser packages"]);(function($rec){smalltalk.send($rec, "_class_", ["jt_packagesButtons"]);return smalltalk.send($rec, "_with_", [(function(){(function($rec){smalltalk.send($rec, "_title_", ["Commit classes in this package to disk"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_commitPackage", []);})]);return smalltalk.send($rec, "_with_", ["Commit"]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_title_", ["Commit classes in this package to local storage"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_commitPackageToLocalStorage", []);})]);return smalltalk.send($rec, "_with_", ["Local"]);})(smalltalk.send(html, "_button", []));(function($rec){smalltalk.send($rec, "_title_", ["Rename package"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_renamePackage", []);})]);return smalltalk.send($rec, "_with_", ["Rename"]);})(smalltalk.send(html, "_button", []));return (function($rec){smalltalk.send($rec, "_title_", ["Remove this package from the system"]);smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_removePackage", []);})]);return smalltalk.send($rec, "_with_", ["Remove"]);})(smalltalk.send(html, "_button", []));})]);})(smalltalk.send(html, "_div", []));self['@classesList']=smalltalk.send((smalltalk.ClassesList || ClassesList), "_on_", [self]);smalltalk.send(self['@classesList'], "_renderOn_", [html]);self['@protocolsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser protocols"]);self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column browser methods"]);(function($rec){smalltalk.send($rec, "_updateCategoriesList", []);smalltalk.send($rec, "_updateClassesList", []);smalltalk.send($rec, "_updateProtocolsList", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);return smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_clear"]);})]);})(smalltalk.send(html, "_div", []));
  1550. return self;},
  1551. args: ["html"],
  1552. source: unescape('renderTopPanelOn%3A%20html%0A%09html%20div%20%0A%09%09class%3A%20%27top%27%3B%20%0A%09%09with%3A%20%5B%0A%09%09%09packagesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20packages%27.%0A%20%20%20%20%20%20%20%20%20%20%09%09html%20div%20class%3A%20%27jt_packagesButtons%27%3B%20with%3A%20%5B%0A%09%09%09%09html%20button%20%0A%09%09%09%09%09title%3A%20%27Commit%20classes%20in%20this%20package%20to%20disk%27%3B%0A%09%09%09%09%09onClick%3A%20%5Bself%20commitPackage%5D%3B%0A%09%09%09%09%09with%3A%20%27Commit%27.%0A%20%20%20%20%20%20%20%20%09%09%09html%20button%20%0A%09%09%09%09%09title%3A%20%27Commit%20classes%20in%20this%20package%20to%20local%20storage%27%3B%0A%09%09%09%09%09onClick%3A%20%5Bself%20commitPackageToLocalStorage%5D%3B%0A%09%09%09%09%09with%3A%20%27Local%27.%0A%20%20%20%20%20%20%20%20%09%09%09html%20button%0A%09%09%09%09%09title%3A%20%27Rename%20package%27%3B%0A%09%09%09%09%09onClick%3A%20%5Bself%20renamePackage%5D%3B%0A%09%09%09%09%09with%3A%20%27Rename%27.%0A%20%20%20%20%20%20%20%20%09%09%09html%20button%0A%09%09%09%09%09title%3A%20%27Remove%20this%20package%20from%20the%20system%27%3B%0A%09%09%09%09%09onClick%3A%20%5Bself%20removePackage%5D%3B%0A%09%09%09%09%09with%3A%20%27Remove%27%5D.%0A%09%09%09classesList%20%3A%3D%20ClassesList%20on%3A%20self.%0A%09%09%09classesList%20renderOn%3A%20html.%0A%09%09%09protocolsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20protocols%27.%0A%09%09%09methodsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20browser%20methods%27.%0A%09%09%09self%0A%09%09%09%09updateCategoriesList%3B%0A%09%09%09%09updateClassesList%3B%0A%09%09%09%09updateProtocolsList%3B%0A%09%09%09%09updateMethodsList.%0A%09%09%09html%20div%20class%3A%20%27jt_clear%27%5D'),
  1553. messageSends: ["class:", "with:", "ul", "title:", "onClick:", "commitPackage", "button", "commitPackageToLocalStorage", "renamePackage", "removePackage", "div", "on:", "renderOn:", "updateCategoriesList", "updateClassesList", "updateProtocolsList", "updateMethodsList"],
  1554. referencedClasses: ["ClassesList"]
  1555. }),
  1556. smalltalk.Browser);
  1557. smalltalk.addMethod(
  1558. unescape('_renderTabsOn_'),
  1559. smalltalk.method({
  1560. selector: unescape('renderTabsOn%3A'),
  1561. category: 'rendering',
  1562. fn: function (html){
  1563. var self=this;
  1564. self['@tabsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_tabs jt_browser"]);
  1565. smalltalk.send(self, "_updateTabsList", []);
  1566. return self;},
  1567. args: ["html"],
  1568. 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.'),
  1569. messageSends: ["class:", "ul", "updateTabsList"],
  1570. referencedClasses: []
  1571. }),
  1572. smalltalk.Browser);
  1573. smalltalk.addMethod(
  1574. unescape('_renderBottomPanelOn_'),
  1575. smalltalk.method({
  1576. selector: unescape('renderBottomPanelOn%3A'),
  1577. category: 'rendering',
  1578. fn: function (html){
  1579. var self=this;
  1580. (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", []));
  1581. return self;},
  1582. args: ["html"],
  1583. 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'),
  1584. messageSends: ["class:", "with:", "new", "renderOn:", "onKeyDown:", "handleSourceAreaKeyDown:", "onKeyUp:", "updateStatus", "div"],
  1585. referencedClasses: ["SourceArea"]
  1586. }),
  1587. smalltalk.Browser);
  1588. smalltalk.addMethod(
  1589. unescape('_renderButtonsOn_'),
  1590. smalltalk.method({
  1591. selector: unescape('renderButtonsOn%3A'),
  1592. category: 'rendering',
  1593. fn: function (html){
  1594. var self=this;
  1595. self['@saveButton']=smalltalk.send(html, "_button", []);
  1596. (function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_compile", []);})]);})(self['@saveButton']);
  1597. self['@methodButtons']=smalltalk.send(html, "_span", []);
  1598. self['@classButtons']=smalltalk.send(html, "_span", []);
  1599. (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", []));
  1600. smalltalk.send(self, "_updateSourceAndButtons", []);
  1601. return self;},
  1602. args: ["html"],
  1603. 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'),
  1604. messageSends: ["button", "with:", "onClick:", "compile", "span", "class:", "doIt", "printIt", "inspectIt", "div", "updateSourceAndButtons"],
  1605. referencedClasses: []
  1606. }),
  1607. smalltalk.Browser);
  1608. smalltalk.addMethod(
  1609. unescape('_canBeClosed'),
  1610. smalltalk.method({
  1611. selector: unescape('canBeClosed'),
  1612. category: 'testing',
  1613. fn: function (){
  1614. var self=this;
  1615. return true;
  1616. return self;},
  1617. args: [],
  1618. source: unescape('canBeClosed%0A%09%5Etrue'),
  1619. messageSends: [],
  1620. referencedClasses: []
  1621. }),
  1622. smalltalk.Browser);
  1623. smalltalk.addMethod(
  1624. unescape('_updateCategoriesList'),
  1625. smalltalk.method({
  1626. selector: unescape('updateCategoriesList'),
  1627. category: 'updating',
  1628. fn: function (){
  1629. var self=this;
  1630. smalltalk.send(self['@packagesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_packages", []), "_do_", [(function(each){var li=nil;
  1631. var label=nil;
  1632. ((($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);})]);})]);
  1633. return self;},
  1634. args: [],
  1635. 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'),
  1636. messageSends: ["contents:", "do:", "packages", "ifTrue:ifFalse:", "isEmpty", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectCategory:"],
  1637. referencedClasses: []
  1638. }),
  1639. smalltalk.Browser);
  1640. smalltalk.addMethod(
  1641. unescape('_updateClassesList'),
  1642. smalltalk.method({
  1643. selector: unescape('updateClassesList'),
  1644. category: 'updating',
  1645. fn: function (){
  1646. var self=this;
  1647. smalltalk.send(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []), "_update", []);
  1648. smalltalk.send(self['@classesList'], "_updateNodes", []);
  1649. return self;},
  1650. args: [],
  1651. source: unescape('updateClassesList%0A%20%20%20%20TabManager%20current%20update.%0A%20%20%20%20classesList%20updateNodes.%0A%20%20%20%20%22classesList%20contents%3A%20%5B%3Ahtml%20%7C%0A%09self%20classes%20do%3A%20%5B%3Aeach%20%7C%7C%20li%20%7C%0A%09%20%20%20%20li%20%3A%3D%20html%20li.%0A%09%20%20%20%20selectedClass%20%3D%20each%20ifTrue%3A%20%5B%0A%09%09li%20class%3A%20%27selected%27%5D.%0A%09%20%20%20%20li%0A%09%09with%3A%20each%20name%3B%0A%09%09onClick%3A%20%5Bself%20selectClass%3A%20each%5D%5D%5D%22'),
  1652. messageSends: ["update", "current", "updateNodes"],
  1653. referencedClasses: ["TabManager"]
  1654. }),
  1655. smalltalk.Browser);
  1656. smalltalk.addMethod(
  1657. unescape('_updateProtocolsList'),
  1658. smalltalk.method({
  1659. selector: unescape('updateProtocolsList'),
  1660. category: 'updating',
  1661. fn: function (){
  1662. var self=this;
  1663. smalltalk.send(self['@protocolsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_protocols", []), "_do_", [(function(each){var li=nil;
  1664. 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);})]);})]);
  1665. return self;},
  1666. args: [],
  1667. 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'),
  1668. messageSends: ["contents:", "do:", "protocols", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "onClick:", "selectProtocol:"],
  1669. referencedClasses: []
  1670. }),
  1671. smalltalk.Browser);
  1672. smalltalk.addMethod(
  1673. unescape('_updateMethodsList'),
  1674. smalltalk.method({
  1675. selector: unescape('updateMethodsList'),
  1676. category: 'updating',
  1677. fn: function (){
  1678. var self=this;
  1679. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_methods", []), "_do_", [(function(each){var li=nil;
  1680. 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);})]);})]);
  1681. return self;},
  1682. args: [],
  1683. 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'),
  1684. messageSends: ["contents:", "do:", "methods", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "selector", "onClick:", "selectMethod:"],
  1685. referencedClasses: []
  1686. }),
  1687. smalltalk.Browser);
  1688. smalltalk.addMethod(
  1689. unescape('_updateTabsList'),
  1690. smalltalk.method({
  1691. selector: unescape('updateTabsList'),
  1692. category: 'updating',
  1693. fn: function (){
  1694. var self=this;
  1695. smalltalk.send(self['@tabsList'], "_contents_", [(function(html){var li=nil;
  1696. li=smalltalk.send(html, "_li", []);((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["instance"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]));(function($rec){smalltalk.send($rec, "_with_", [(function(){smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["ltab"]);(function($rec){smalltalk.send($rec, "_class_", ["mtab"]);return smalltalk.send($rec, "_with_", ["Instance"]);})(smalltalk.send(html, "_span", []));return smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["rtab"]);})]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["instance"]);})]);})(li);li=smalltalk.send(html, "_li", []);((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["class"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]));(function($rec){smalltalk.send($rec, "_with_", [(function(){smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["ltab"]);(function($rec){smalltalk.send($rec, "_class_", ["mtab"]);return smalltalk.send($rec, "_with_", ["Class"]);})(smalltalk.send(html, "_span", []));return smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["rtab"]);})]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["class"]);})]);})(li);li=smalltalk.send(html, "_li", []);((($receiver = smalltalk.send(self['@selectedTab'], "__eq", ["comment"])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(li, "_class_", ["selected"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(li, "_class_", ["selected"]);})]));return (function($rec){smalltalk.send($rec, "_with_", [(function(){smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["ltab"]);(function($rec){smalltalk.send($rec, "_class_", ["mtab"]);return smalltalk.send($rec, "_with_", ["Comment"]);})(smalltalk.send(html, "_span", []));return smalltalk.send(smalltalk.send(html, "_span", []), "_class_", ["rtab"]);})]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectTab_", ["comment"]);})]);})(li);})]);
  1697. return self;},
  1698. args: [],
  1699. 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'),
  1700. messageSends: ["contents:", "li", "ifTrue:", unescape("%3D"), "class:", "with:", "span", "onClick:", "selectTab:"],
  1701. referencedClasses: []
  1702. }),
  1703. smalltalk.Browser);
  1704. smalltalk.addMethod(
  1705. unescape('_updateSourceAndButtons'),
  1706. smalltalk.method({
  1707. selector: unescape('updateSourceAndButtons'),
  1708. category: 'updating',
  1709. fn: function (){
  1710. var self=this;
  1711. smalltalk.send(self, "_disableSaveButton", []);
  1712. 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", []));})]);
  1713. smalltalk.send(self['@methodButtons'], "_contents_", [(function(html){var protocolSelect=nil;
  1714. var referencesSelect=nil;
  1715. (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);})]));})]);
  1716. ((($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", []);})]));
  1717. smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(self, "_source", [])]);
  1718. return self;},
  1719. args: [],
  1720. 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'),
  1721. 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"],
  1722. referencedClasses: []
  1723. }),
  1724. smalltalk.Browser);
  1725. smalltalk.addMethod(
  1726. unescape('_updateStatus'),
  1727. smalltalk.method({
  1728. selector: unescape('updateStatus'),
  1729. category: 'updating',
  1730. fn: function (){
  1731. var self=this;
  1732. ((($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;})]));
  1733. return self;},
  1734. args: [],
  1735. 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'),
  1736. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "val", "source", "ifNotNil:", "at:put:", "removeAt:"],
  1737. referencedClasses: []
  1738. }),
  1739. smalltalk.Browser);
  1740. smalltalk.addMethod(
  1741. unescape('_resetClassesList'),
  1742. smalltalk.method({
  1743. selector: unescape('resetClassesList'),
  1744. category: 'updating',
  1745. fn: function (){
  1746. var self=this;
  1747. smalltalk.send(self['@classesList'], "_resetNodes", []);
  1748. return self;},
  1749. args: [],
  1750. source: unescape('resetClassesList%0A%09classesList%20resetNodes'),
  1751. messageSends: ["resetNodes"],
  1752. referencedClasses: []
  1753. }),
  1754. smalltalk.Browser);
  1755. smalltalk.addMethod(
  1756. unescape('_commitPathJs'),
  1757. smalltalk.method({
  1758. selector: unescape('commitPathJs'),
  1759. category: 'accessing',
  1760. fn: function (){
  1761. var self=this;
  1762. return "js";
  1763. return self;},
  1764. args: [],
  1765. source: unescape('commitPathJs%0A%09%5E%27js%27'),
  1766. messageSends: [],
  1767. referencedClasses: []
  1768. }),
  1769. smalltalk.Browser.klass);
  1770. smalltalk.addMethod(
  1771. unescape('_commitPathSt'),
  1772. smalltalk.method({
  1773. selector: unescape('commitPathSt'),
  1774. category: 'accessing',
  1775. fn: function (){
  1776. var self=this;
  1777. return "st";
  1778. return self;},
  1779. args: [],
  1780. source: unescape('commitPathSt%0A%09%5E%27st%27'),
  1781. messageSends: [],
  1782. referencedClasses: []
  1783. }),
  1784. smalltalk.Browser.klass);
  1785. smalltalk.addMethod(
  1786. unescape('_openOn_'),
  1787. smalltalk.method({
  1788. selector: unescape('openOn%3A'),
  1789. category: 'convenience',
  1790. fn: function (aClass){
  1791. var self=this;
  1792. 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", []));
  1793. return self;},
  1794. args: ["aClass"],
  1795. 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'),
  1796. messageSends: ["open", "selectCategory:", "category", "selectClass:", "new"],
  1797. referencedClasses: []
  1798. }),
  1799. smalltalk.Browser.klass);
  1800. smalltalk.addMethod(
  1801. unescape('_open'),
  1802. smalltalk.method({
  1803. selector: unescape('open'),
  1804. category: 'convenience',
  1805. fn: function (){
  1806. var self=this;
  1807. smalltalk.send(smalltalk.send(self, "_new", []), "_open", []);
  1808. return self;},
  1809. args: [],
  1810. source: unescape('open%0A%20%20%20%20self%20new%20open'),
  1811. messageSends: ["open", "new"],
  1812. referencedClasses: []
  1813. }),
  1814. smalltalk.Browser.klass);
  1815. smalltalk.addClass('Inspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'diveButton', 'sourceArea'], 'IDE');
  1816. smalltalk.addMethod(
  1817. unescape('_label'),
  1818. smalltalk.method({
  1819. selector: unescape('label'),
  1820. category: 'accessing',
  1821. fn: function (){
  1822. var self=this;
  1823. return (($receiver = self['@label']) == nil || $receiver == undefined) ? (function(){return unescape("Inspector%20%28nil%29");})() : $receiver;
  1824. return self;},
  1825. args: [],
  1826. source: unescape('label%0A%09%5Elabel%20ifNil%3A%20%5B%27Inspector%20%28nil%29%27%5D'),
  1827. messageSends: ["ifNil:"],
  1828. referencedClasses: []
  1829. }),
  1830. smalltalk.Inspector);
  1831. smalltalk.addMethod(
  1832. unescape('_variables'),
  1833. smalltalk.method({
  1834. selector: unescape('variables'),
  1835. category: 'accessing',
  1836. fn: function (){
  1837. var self=this;
  1838. return self['@variables'];
  1839. return self;},
  1840. args: [],
  1841. source: unescape('variables%0A%09%5Evariables'),
  1842. messageSends: [],
  1843. referencedClasses: []
  1844. }),
  1845. smalltalk.Inspector);
  1846. smalltalk.addMethod(
  1847. unescape('_setVariables_'),
  1848. smalltalk.method({
  1849. selector: unescape('setVariables%3A'),
  1850. category: 'accessing',
  1851. fn: function (aCollection){
  1852. var self=this;
  1853. self['@variables']=aCollection;
  1854. return self;},
  1855. args: ["aCollection"],
  1856. source: unescape('setVariables%3A%20aCollection%0A%09variables%20%3A%3D%20aCollection'),
  1857. messageSends: [],
  1858. referencedClasses: []
  1859. }),
  1860. smalltalk.Inspector);
  1861. smalltalk.addMethod(
  1862. unescape('_setLabel_'),
  1863. smalltalk.method({
  1864. selector: unescape('setLabel%3A'),
  1865. category: 'accessing',
  1866. fn: function (aString){
  1867. var self=this;
  1868. self['@label']=aString;
  1869. return self;},
  1870. args: ["aString"],
  1871. source: unescape('setLabel%3A%20aString%0A%09label%20%3A%3D%20aString'),
  1872. messageSends: [],
  1873. referencedClasses: []
  1874. }),
  1875. smalltalk.Inspector);
  1876. smalltalk.addMethod(
  1877. unescape('_selectedVariable'),
  1878. smalltalk.method({
  1879. selector: unescape('selectedVariable'),
  1880. category: 'accessing',
  1881. fn: function (){
  1882. var self=this;
  1883. return self['@selectedVariable'];
  1884. return self;},
  1885. args: [],
  1886. source: unescape('selectedVariable%0A%09%5EselectedVariable'),
  1887. messageSends: [],
  1888. referencedClasses: []
  1889. }),
  1890. smalltalk.Inspector);
  1891. smalltalk.addMethod(
  1892. unescape('_selectedVariable_'),
  1893. smalltalk.method({
  1894. selector: unescape('selectedVariable%3A'),
  1895. category: 'accessing',
  1896. fn: function (aString){
  1897. var self=this;
  1898. self['@selectedVariable']=aString;
  1899. return self;},
  1900. args: ["aString"],
  1901. source: unescape('selectedVariable%3A%20aString%0A%09selectedVariable%20%3A%3D%20aString'),
  1902. messageSends: [],
  1903. referencedClasses: []
  1904. }),
  1905. smalltalk.Inspector);
  1906. smalltalk.addMethod(
  1907. unescape('_sourceArea'),
  1908. smalltalk.method({
  1909. selector: unescape('sourceArea'),
  1910. category: 'accessing',
  1911. fn: function (){
  1912. var self=this;
  1913. return self['@sourceArea'];
  1914. return self;},
  1915. args: [],
  1916. source: unescape('sourceArea%0A%09%5EsourceArea'),
  1917. messageSends: [],
  1918. referencedClasses: []
  1919. }),
  1920. smalltalk.Inspector);
  1921. smalltalk.addMethod(
  1922. unescape('_inspect_'),
  1923. smalltalk.method({
  1924. selector: unescape('inspect%3A'),
  1925. category: 'actions',
  1926. fn: function (anObject){
  1927. var self=this;
  1928. self['@object']=anObject;
  1929. self['@variables']=[];
  1930. smalltalk.send(self['@object'], "_inspectOn_", [self]);
  1931. return self;},
  1932. args: ["anObject"],
  1933. 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'),
  1934. messageSends: ["inspectOn:"],
  1935. referencedClasses: []
  1936. }),
  1937. smalltalk.Inspector);
  1938. smalltalk.addMethod(
  1939. unescape('_dive'),
  1940. smalltalk.method({
  1941. selector: unescape('dive'),
  1942. category: 'actions',
  1943. fn: function (){
  1944. var self=this;
  1945. smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_at_", [smalltalk.send(self, "_selectedVariable", [])]), "_inspect", []);
  1946. return self;},
  1947. args: [],
  1948. source: unescape('dive%0A%09%28self%20variables%20at%3A%20self%20selectedVariable%29%20inspect'),
  1949. messageSends: ["inspect", "at:", "variables", "selectedVariable"],
  1950. referencedClasses: []
  1951. }),
  1952. smalltalk.Inspector);
  1953. smalltalk.addMethod(
  1954. unescape('_refresh'),
  1955. smalltalk.method({
  1956. selector: unescape('refresh'),
  1957. category: 'actions',
  1958. fn: function (){
  1959. var self=this;
  1960. (function($rec){smalltalk.send($rec, "_inspect_", [self['@object']]);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
  1961. return self;},
  1962. args: [],
  1963. source: unescape('refresh%0A%09self%20%0A%09%09inspect%3A%20object%3B%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea'),
  1964. messageSends: ["inspect:", "updateVariablesList", "updateValueTextarea"],
  1965. referencedClasses: []
  1966. }),
  1967. smalltalk.Inspector);
  1968. smalltalk.addMethod(
  1969. unescape('_renderBoxOn_'),
  1970. smalltalk.method({
  1971. selector: unescape('renderBoxOn%3A'),
  1972. category: 'rendering',
  1973. fn: function (html){
  1974. var self=this;
  1975. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  1976. return self;},
  1977. args: ["html"],
  1978. source: unescape('renderBoxOn%3A%20html%0A%09self%20%0A%09%09renderTopPanelOn%3A%20html%3B%0A%09%09renderBottomPanelOn%3A%20html'),
  1979. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  1980. referencedClasses: []
  1981. }),
  1982. smalltalk.Inspector);
  1983. smalltalk.addMethod(
  1984. unescape('_renderTopPanelOn_'),
  1985. smalltalk.method({
  1986. selector: unescape('renderTopPanelOn%3A'),
  1987. category: 'rendering',
  1988. fn: function (html){
  1989. var self=this;
  1990. (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", []));
  1991. (function($rec){smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateValueTextarea", []);})(self);
  1992. return self;},
  1993. args: ["html"],
  1994. 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.'),
  1995. messageSends: ["class:", "with:", "ul", "at:put:", "textarea", "onClick:", "refresh", "button", "dive", "div", "updateVariablesList", "updateValueTextarea"],
  1996. referencedClasses: []
  1997. }),
  1998. smalltalk.Inspector);
  1999. smalltalk.addMethod(
  2000. unescape('_renderBottomPanelOn_'),
  2001. smalltalk.method({
  2002. selector: unescape('renderBottomPanelOn%3A'),
  2003. category: 'rendering',
  2004. fn: function (html){
  2005. var self=this;
  2006. (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", []));
  2007. return self;},
  2008. args: ["html"],
  2009. 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'),
  2010. messageSends: ["class:", "with:", "receiver:", "onDoIt:", "refresh", "yourself", "new", "renderOn:", "div"],
  2011. referencedClasses: ["SourceArea"]
  2012. }),
  2013. smalltalk.Inspector);
  2014. smalltalk.addMethod(
  2015. unescape('_renderButtonsOn_'),
  2016. smalltalk.method({
  2017. selector: unescape('renderButtonsOn%3A'),
  2018. category: 'rendering',
  2019. fn: function (html){
  2020. var self=this;
  2021. (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", []));
  2022. (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", []));
  2023. (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", []));
  2024. smalltalk.send(self, "_updateButtons", []);
  2025. return self;},
  2026. args: ["html"],
  2027. 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'),
  2028. messageSends: ["with:", "onClick:", "doIt", "sourceArea", "button", "printIt", "inspectIt", "updateButtons"],
  2029. referencedClasses: []
  2030. }),
  2031. smalltalk.Inspector);
  2032. smalltalk.addMethod(
  2033. unescape('_canBeClosed'),
  2034. smalltalk.method({
  2035. selector: unescape('canBeClosed'),
  2036. category: 'testing',
  2037. fn: function (){
  2038. var self=this;
  2039. return true;
  2040. return self;},
  2041. args: [],
  2042. source: unescape('canBeClosed%0A%09%5Etrue'),
  2043. messageSends: [],
  2044. referencedClasses: []
  2045. }),
  2046. smalltalk.Inspector);
  2047. smalltalk.addMethod(
  2048. unescape('_updateVariablesList'),
  2049. smalltalk.method({
  2050. selector: unescape('updateVariablesList'),
  2051. category: 'updating',
  2052. fn: function (){
  2053. var self=this;
  2054. smalltalk.send(self['@variablesList'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_variables", []), "_keys", []), "_do_", [(function(each){var li=nil;
  2055. 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"]);})]));})]);})]);
  2056. return self;},
  2057. args: [],
  2058. 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'),
  2059. messageSends: ["contents:", "do:", "keys", "variables", "li", "with:", "onClick:", "selectVariable:", "ifTrue:", unescape("%3D"), "selectedVariable", "class:"],
  2060. referencedClasses: []
  2061. }),
  2062. smalltalk.Inspector);
  2063. smalltalk.addMethod(
  2064. unescape('_selectVariable_'),
  2065. smalltalk.method({
  2066. selector: unescape('selectVariable%3A'),
  2067. category: 'updating',
  2068. fn: function (aString){
  2069. var self=this;
  2070. smalltalk.send(self, "_selectedVariable_", [aString]);
  2071. (function($rec){smalltalk.send($rec, "_updateVariablesList", []);smalltalk.send($rec, "_updateValueTextarea", []);return smalltalk.send($rec, "_updateButtons", []);})(self);
  2072. return self;},
  2073. args: ["aString"],
  2074. source: unescape('selectVariable%3A%20aString%0A%09self%20selectedVariable%3A%20aString.%0A%09self%20%0A%09%09updateVariablesList%3B%0A%09%09updateValueTextarea%3B%0A%09%09updateButtons'),
  2075. messageSends: ["selectedVariable:", "updateVariablesList", "updateValueTextarea", "updateButtons"],
  2076. referencedClasses: []
  2077. }),
  2078. smalltalk.Inspector);
  2079. smalltalk.addMethod(
  2080. unescape('_updateValueTextarea'),
  2081. smalltalk.method({
  2082. selector: unescape('updateValueTextarea'),
  2083. category: 'updating',
  2084. fn: function (){
  2085. var self=this;
  2086. 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", []);})]))]);
  2087. return self;},
  2088. args: [],
  2089. 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'),
  2090. messageSends: ["val:", "asJQuery", "ifTrue:ifFalse:", "isNil", "selectedVariable", "printString", "at:", "variables"],
  2091. referencedClasses: []
  2092. }),
  2093. smalltalk.Inspector);
  2094. smalltalk.addMethod(
  2095. unescape('_updateButtons'),
  2096. smalltalk.method({
  2097. selector: unescape('updateButtons'),
  2098. category: 'updating',
  2099. fn: function (){
  2100. var self=this;
  2101. ((($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"]);})]));
  2102. return self;},
  2103. args: [],
  2104. 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'),
  2105. messageSends: ["ifFalse:ifTrue:", "and:", "notNil", "selectedVariable", "at:", "variables", "at:put:", "removeAt:"],
  2106. referencedClasses: []
  2107. }),
  2108. smalltalk.Inspector);
  2109. smalltalk.addMethod(
  2110. unescape('_on_'),
  2111. smalltalk.method({
  2112. selector: unescape('on%3A'),
  2113. category: 'instance creation',
  2114. fn: function (anObject){
  2115. var self=this;
  2116. return (function($rec){smalltalk.send($rec, "_inspect_", [anObject]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  2117. return self;},
  2118. args: ["anObject"],
  2119. source: unescape('on%3A%20anObject%0A%09%5Eself%20new%0A%09%09inspect%3A%20anObject%3B%0A%09%09yourself'),
  2120. messageSends: ["inspect:", "yourself", "new"],
  2121. referencedClasses: []
  2122. }),
  2123. smalltalk.Inspector.klass);
  2124. smalltalk.addClass('ReferencesBrowser', smalltalk.TabWidget, ['implementors', 'senders', 'implementorsList', 'input', 'timer', 'selector', 'sendersList', 'referencedClasses', 'referencedClassesList'], 'IDE');
  2125. smalltalk.addMethod(
  2126. unescape('_implementors'),
  2127. smalltalk.method({
  2128. selector: unescape('implementors'),
  2129. category: 'accessing',
  2130. fn: function (){
  2131. var self=this;
  2132. return (($receiver = self['@implementors']) == nil || $receiver == undefined) ? (function(){return self['@implementors']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  2133. return self;},
  2134. args: [],
  2135. source: unescape('implementors%0A%09%5Eimplementors%20ifNil%3A%20%5Bimplementors%20%3A%3D%20Array%20new%5D'),
  2136. messageSends: ["ifNil:", "new"],
  2137. referencedClasses: ["Array"]
  2138. }),
  2139. smalltalk.ReferencesBrowser);
  2140. smalltalk.addMethod(
  2141. unescape('_label'),
  2142. smalltalk.method({
  2143. selector: unescape('label'),
  2144. category: 'accessing',
  2145. fn: function (){
  2146. var self=this;
  2147. return unescape("%5BReferences%5D");
  2148. return self;},
  2149. args: [],
  2150. source: unescape('label%0A%09%5E%27%5BReferences%5D%27'),
  2151. messageSends: [],
  2152. referencedClasses: []
  2153. }),
  2154. smalltalk.ReferencesBrowser);
  2155. smalltalk.addMethod(
  2156. unescape('_selector'),
  2157. smalltalk.method({
  2158. selector: unescape('selector'),
  2159. category: 'accessing',
  2160. fn: function (){
  2161. var self=this;
  2162. return self['@selector'];
  2163. return self;},
  2164. args: [],
  2165. source: unescape('selector%0A%09%5Eselector'),
  2166. messageSends: [],
  2167. referencedClasses: []
  2168. }),
  2169. smalltalk.ReferencesBrowser);
  2170. smalltalk.addMethod(
  2171. unescape('_senders'),
  2172. smalltalk.method({
  2173. selector: unescape('senders'),
  2174. category: 'accessing',
  2175. fn: function (){
  2176. var self=this;
  2177. return (($receiver = self['@senders']) == nil || $receiver == undefined) ? (function(){return self['@senders']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  2178. return self;},
  2179. args: [],
  2180. source: unescape('senders%0A%09%5Esenders%20ifNil%3A%20%5Bsenders%20%3A%3D%20Array%20new%5D'),
  2181. messageSends: ["ifNil:", "new"],
  2182. referencedClasses: ["Array"]
  2183. }),
  2184. smalltalk.ReferencesBrowser);
  2185. smalltalk.addMethod(
  2186. unescape('_classesAndMetaclasses'),
  2187. smalltalk.method({
  2188. selector: unescape('classesAndMetaclasses'),
  2189. category: 'accessing',
  2190. fn: function (){
  2191. var self=this;
  2192. 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", []);})])]);
  2193. return self;},
  2194. args: [],
  2195. source: unescape('classesAndMetaclasses%0A%09%5ESmalltalk%20current%20classes%2C%20%28Smalltalk%20current%20classes%20collect%3A%20%5B%3Aeach%20%7C%20each%20class%5D%29'),
  2196. messageSends: [unescape("%2C"), "classes", "current", "collect:", "class"],
  2197. referencedClasses: ["Smalltalk"]
  2198. }),
  2199. smalltalk.ReferencesBrowser);
  2200. smalltalk.addMethod(
  2201. unescape('_referencedClasses'),
  2202. smalltalk.method({
  2203. selector: unescape('referencedClasses'),
  2204. category: 'accessing',
  2205. fn: function (){
  2206. var self=this;
  2207. return (($receiver = self['@referencedClasses']) == nil || $receiver == undefined) ? (function(){return self['@referencedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  2208. return self;},
  2209. args: [],
  2210. source: unescape('referencedClasses%0A%09%5EreferencedClasses%20ifNil%3A%20%5BreferencedClasses%20%3A%3D%20Array%20new%5D'),
  2211. messageSends: ["ifNil:", "new"],
  2212. referencedClasses: ["Array"]
  2213. }),
  2214. smalltalk.ReferencesBrowser);
  2215. smalltalk.addMethod(
  2216. unescape('_openBrowserOn_'),
  2217. smalltalk.method({
  2218. selector: unescape('openBrowserOn%3A'),
  2219. category: 'actions',
  2220. fn: function (aMethod){
  2221. var self=this;
  2222. var browser=nil;
  2223. 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", []);})]))]);
  2224. ((($receiver = smalltalk.send(smalltalk.send(aMethod, "_methodClass", []), "_isMetaclass", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(browser, "_selectTab_", ["class"]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(browser, "_selectTab_", ["class"]);})]));
  2225. (function($rec){smalltalk.send($rec, "_selectProtocol_", [smalltalk.send(aMethod, "_category", [])]);return smalltalk.send($rec, "_selectMethod_", [aMethod]);})(browser);
  2226. return self;},
  2227. args: ["aMethod"],
  2228. 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'),
  2229. messageSends: ["openOn:", "ifTrue:ifFalse:", "isMetaclass", "methodClass", "instanceClass", "ifTrue:", "selectTab:", "selectProtocol:", "category", "selectMethod:"],
  2230. referencedClasses: ["Browser"]
  2231. }),
  2232. smalltalk.ReferencesBrowser);
  2233. smalltalk.addMethod(
  2234. unescape('_searchReferencesFor_'),
  2235. smalltalk.method({
  2236. selector: unescape('searchReferencesFor%3A'),
  2237. category: 'actions',
  2238. fn: function (aString){
  2239. var self=this;
  2240. self['@selector']=aString;
  2241. self['@implementors']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2242. self['@senders']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2243. self['@referencedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);
  2244. ((($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']]);})]));
  2245. return self;},
  2246. args: ["aString"],
  2247. 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'),
  2248. messageSends: ["new", "ifFalse:ifTrue:", "match:", "searchSelectorReferencesFor:", "searchReferencedClassesFor:"],
  2249. referencedClasses: ["Array"]
  2250. }),
  2251. smalltalk.ReferencesBrowser);
  2252. smalltalk.addMethod(
  2253. unescape('_search_'),
  2254. smalltalk.method({
  2255. selector: unescape('search%3A'),
  2256. category: 'actions',
  2257. fn: function (aString){
  2258. var self=this;
  2259. (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);smalltalk.send($rec, "_updateImplementorsList", []);smalltalk.send($rec, "_updateSendersList", []);return smalltalk.send($rec, "_updateReferencedClassesList", []);})(self);
  2260. return self;},
  2261. args: ["aString"],
  2262. 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'),
  2263. messageSends: ["searchReferencesFor:", "updateImplementorsList", "updateSendersList", "updateReferencedClassesList"],
  2264. referencedClasses: []
  2265. }),
  2266. smalltalk.ReferencesBrowser);
  2267. smalltalk.addMethod(
  2268. unescape('_searchReferencedClassesFor_'),
  2269. smalltalk.method({
  2270. selector: unescape('searchReferencedClassesFor%3A'),
  2271. category: 'actions',
  2272. fn: function (aString){
  2273. var self=this;
  2274. 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]);})]));})]);})]);
  2275. return self;},
  2276. args: ["aString"],
  2277. 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'),
  2278. messageSends: ["do:", "classesAndMetaclasses", "values", "methodDictionary", "ifTrue:", "includes:", "referencedClasses", "add:"],
  2279. referencedClasses: []
  2280. }),
  2281. smalltalk.ReferencesBrowser);
  2282. smalltalk.addMethod(
  2283. unescape('_searchSelectorReferencesFor_'),
  2284. smalltalk.method({
  2285. selector: unescape('searchSelectorReferencesFor%3A'),
  2286. category: 'actions',
  2287. fn: function (aString){
  2288. var self=this;
  2289. smalltalk.send(smalltalk.send(self, "_classesAndMetaclasses", []), "_do_", [(function(each){smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keysAndValuesDo_", [(function(key, value){return ((($receiver = smalltalk.send(key, "__eq", [self['@selector']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_implementors", []), "_add_", [value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_implementors", []), "_add_", [value]);})]));})]);return smalltalk.send(smalltalk.send(each, "_methodDictionary", []), "_keysAndValuesDo_", [(function(key, value){return ((($receiver = smalltalk.send(smalltalk.send(value, "_messageSends", []), "_includes_", [self['@selector']])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(self, "_senders", []), "_add_", [value]);})() : nil) : smalltalk.send($receiver, "_ifTrue_", [(function(){return smalltalk.send(smalltalk.send(self, "_senders", []), "_add_", [value]);})]));})]);})]);
  2290. return self;},
  2291. args: ["aString"],
  2292. source: unescape('searchSelectorReferencesFor%3A%20aString%0A%09self%20classesAndMetaclasses%20do%3A%20%5B%3Aeach%20%7C%20%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09key%20%3D%20selector%20ifTrue%3A%20%5Bself%20implementors%20add%3A%20value%5D%5D.%0A%09%09each%20methodDictionary%20keysAndValuesDo%3A%20%5B%3Akey%20%3Avalue%20%7C%20%0A%09%09%09%28value%20messageSends%20includes%3A%20selector%29%20ifTrue%3A%20%5B%0A%09%09%09%09self%20senders%20add%3A%20value%5D%5D%5D'),
  2293. messageSends: ["do:", "classesAndMetaclasses", "keysAndValuesDo:", "methodDictionary", "ifTrue:", unescape("%3D"), "add:", "implementors", "includes:", "messageSends", "senders"],
  2294. referencedClasses: []
  2295. }),
  2296. smalltalk.ReferencesBrowser);
  2297. smalltalk.addMethod(
  2298. unescape('_initialize'),
  2299. smalltalk.method({
  2300. selector: unescape('initialize'),
  2301. category: 'initialization',
  2302. fn: function (){
  2303. var self=this;
  2304. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  2305. self['@selector']="";
  2306. return self;},
  2307. args: [],
  2308. source: unescape('initialize%0A%09super%20initialize.%0A%09selector%20%3A%3D%20%27%27'),
  2309. messageSends: ["initialize"],
  2310. referencedClasses: []
  2311. }),
  2312. smalltalk.ReferencesBrowser);
  2313. smalltalk.addMethod(
  2314. unescape('_setInputEvents'),
  2315. smalltalk.method({
  2316. selector: unescape('setInputEvents'),
  2317. category: 'private',
  2318. fn: function (){
  2319. var self=this;
  2320. (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']);
  2321. return self;},
  2322. args: [],
  2323. 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'),
  2324. messageSends: ["onKeyUp:", "valueWithTimeout:", "search:", "val", "asJQuery", "onKeyDown:", "ifNotNil:", "clearTimeout"],
  2325. referencedClasses: []
  2326. }),
  2327. smalltalk.ReferencesBrowser);
  2328. smalltalk.addMethod(
  2329. unescape('_renderBoxOn_'),
  2330. smalltalk.method({
  2331. selector: unescape('renderBoxOn%3A'),
  2332. category: 'rendering',
  2333. fn: function (html){
  2334. var self=this;
  2335. (function($rec){smalltalk.send($rec, "_renderInputOn_", [html]);smalltalk.send($rec, "_renderImplementorsOn_", [html]);smalltalk.send($rec, "_renderSendersOn_", [html]);return smalltalk.send($rec, "_renderReferencedClassesOn_", [html]);})(self);
  2336. return self;},
  2337. args: ["html"],
  2338. 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'),
  2339. messageSends: ["renderInputOn:", "renderImplementorsOn:", "renderSendersOn:", "renderReferencedClassesOn:"],
  2340. referencedClasses: []
  2341. }),
  2342. smalltalk.ReferencesBrowser);
  2343. smalltalk.addMethod(
  2344. unescape('_renderInputOn_'),
  2345. smalltalk.method({
  2346. selector: unescape('renderInputOn%3A'),
  2347. category: 'rendering',
  2348. fn: function (html){
  2349. var self=this;
  2350. self['@input']=(function($rec){smalltalk.send($rec, "_class_", ["implementors"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_input", []));
  2351. smalltalk.send(smalltalk.send(self['@input'], "_asJQuery", []), "_val_", [self['@selector']]);
  2352. smalltalk.send(self, "_setInputEvents", []);
  2353. return self;},
  2354. args: ["html"],
  2355. 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'),
  2356. messageSends: ["class:", "yourself", "input", "val:", "asJQuery", "setInputEvents"],
  2357. referencedClasses: []
  2358. }),
  2359. smalltalk.ReferencesBrowser);
  2360. smalltalk.addMethod(
  2361. unescape('_renderImplementorsOn_'),
  2362. smalltalk.method({
  2363. selector: unescape('renderImplementorsOn%3A'),
  2364. category: 'rendering',
  2365. fn: function (html){
  2366. var self=this;
  2367. self['@implementorsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column implementors"]);
  2368. smalltalk.send(self, "_updateImplementorsList", []);
  2369. return self;},
  2370. args: ["html"],
  2371. source: unescape('renderImplementorsOn%3A%20html%0A%09implementorsList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20implementors%27.%0A%09self%20updateImplementorsList'),
  2372. messageSends: ["class:", "ul", "updateImplementorsList"],
  2373. referencedClasses: []
  2374. }),
  2375. smalltalk.ReferencesBrowser);
  2376. smalltalk.addMethod(
  2377. unescape('_renderSendersOn_'),
  2378. smalltalk.method({
  2379. selector: unescape('renderSendersOn%3A'),
  2380. category: 'rendering',
  2381. fn: function (html){
  2382. var self=this;
  2383. self['@sendersList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column senders"]);
  2384. smalltalk.send(self, "_updateSendersList", []);
  2385. return self;},
  2386. args: ["html"],
  2387. source: unescape('renderSendersOn%3A%20html%0A%09sendersList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20senders%27.%0A%09self%20updateSendersList'),
  2388. messageSends: ["class:", "ul", "updateSendersList"],
  2389. referencedClasses: []
  2390. }),
  2391. smalltalk.ReferencesBrowser);
  2392. smalltalk.addMethod(
  2393. unescape('_renderReferencedClassesOn_'),
  2394. smalltalk.method({
  2395. selector: unescape('renderReferencedClassesOn%3A'),
  2396. category: 'rendering',
  2397. fn: function (html){
  2398. var self=this;
  2399. self['@referencedClassesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column referenced_classes"]);
  2400. smalltalk.send(self, "_updateReferencedClassesList", []);
  2401. return self;},
  2402. args: ["html"],
  2403. source: unescape('renderReferencedClassesOn%3A%20html%0A%09referencedClassesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20referenced_classes%27.%0A%09self%20updateReferencedClassesList'),
  2404. messageSends: ["class:", "ul", "updateReferencedClassesList"],
  2405. referencedClasses: []
  2406. }),
  2407. smalltalk.ReferencesBrowser);
  2408. smalltalk.addMethod(
  2409. unescape('_canBeClosed'),
  2410. smalltalk.method({
  2411. selector: unescape('canBeClosed'),
  2412. category: 'testing',
  2413. fn: function (){
  2414. var self=this;
  2415. return true;
  2416. return self;},
  2417. args: [],
  2418. source: unescape('canBeClosed%0A%09%5Etrue'),
  2419. messageSends: [],
  2420. referencedClasses: []
  2421. }),
  2422. smalltalk.ReferencesBrowser);
  2423. smalltalk.addMethod(
  2424. unescape('_updateImplementorsList'),
  2425. smalltalk.method({
  2426. selector: unescape('updateImplementorsList'),
  2427. category: 'updating',
  2428. fn: function (){
  2429. var self=this;
  2430. 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;
  2431. 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);})]);})]);
  2432. return self;},
  2433. args: [],
  2434. 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'),
  2435. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "implementors", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2436. referencedClasses: []
  2437. }),
  2438. smalltalk.ReferencesBrowser);
  2439. smalltalk.addMethod(
  2440. unescape('_updateSendersList'),
  2441. smalltalk.method({
  2442. selector: unescape('updateSendersList'),
  2443. category: 'updating',
  2444. fn: function (){
  2445. var self=this;
  2446. 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", []));})]);})]);
  2447. return self;},
  2448. args: [],
  2449. 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'),
  2450. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "senders", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2451. referencedClasses: []
  2452. }),
  2453. smalltalk.ReferencesBrowser);
  2454. smalltalk.addMethod(
  2455. unescape('_updateReferencedClassesList'),
  2456. smalltalk.method({
  2457. selector: unescape('updateReferencedClassesList'),
  2458. category: 'updating',
  2459. fn: function (){
  2460. var self=this;
  2461. 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", []));})]);})]);
  2462. return self;},
  2463. args: [],
  2464. 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'),
  2465. messageSends: ["contents:", "class:", "with:", unescape("%2C"), "asString", "size", "referencedClasses", "style:", "li", "do:", "methodClass", "selector", "onClick:", "openBrowserOn:"],
  2466. referencedClasses: []
  2467. }),
  2468. smalltalk.ReferencesBrowser);
  2469. smalltalk.addMethod(
  2470. unescape('_search_'),
  2471. smalltalk.method({
  2472. selector: unescape('search%3A'),
  2473. category: 'instance creation',
  2474. fn: function (aString){
  2475. var self=this;
  2476. return (function($rec){smalltalk.send($rec, "_searchReferencesFor_", [aString]);return smalltalk.send($rec, "_open", []);})(smalltalk.send(self, "_new", []));
  2477. return self;},
  2478. args: ["aString"],
  2479. source: unescape('search%3A%20aString%0A%09%5Eself%20new%0A%09%09searchReferencesFor%3A%20aString%3B%0A%09%09open'),
  2480. messageSends: ["searchReferencesFor:", "open", "new"],
  2481. referencedClasses: []
  2482. }),
  2483. smalltalk.ReferencesBrowser.klass);
  2484. smalltalk.addClass('SourceArea', smalltalk.Widget, ['editor', 'div', 'receiver', 'onDoIt'], 'IDE');
  2485. smalltalk.addMethod(
  2486. unescape('_val'),
  2487. smalltalk.method({
  2488. selector: unescape('val'),
  2489. category: 'accessing',
  2490. fn: function (){
  2491. var self=this;
  2492. return smalltalk.send(self['@editor'], "_getValue", []);
  2493. return self;},
  2494. args: [],
  2495. source: unescape('val%0A%20%20%20%20%5Eeditor%20getValue'),
  2496. messageSends: ["getValue"],
  2497. referencedClasses: []
  2498. }),
  2499. smalltalk.SourceArea);
  2500. smalltalk.addMethod(
  2501. unescape('_val_'),
  2502. smalltalk.method({
  2503. selector: unescape('val%3A'),
  2504. category: 'accessing',
  2505. fn: function (aString){
  2506. var self=this;
  2507. smalltalk.send(self['@editor'], "_setValue_", [aString]);
  2508. return self;},
  2509. args: ["aString"],
  2510. source: unescape('val%3A%20aString%0A%20%20%20%20editor%20setValue%3A%20aString'),
  2511. messageSends: ["setValue:"],
  2512. referencedClasses: []
  2513. }),
  2514. smalltalk.SourceArea);
  2515. smalltalk.addMethod(
  2516. unescape('_currentLine'),
  2517. smalltalk.method({
  2518. selector: unescape('currentLine'),
  2519. category: 'accessing',
  2520. fn: function (){
  2521. var self=this;
  2522. return smalltalk.send(self['@editor'], "_getLine_", [smalltalk.send(smalltalk.send(self['@editor'], "_getCursor", []), "_line", [])]);
  2523. return self;},
  2524. args: [],
  2525. source: unescape('currentLine%0A%20%20%20%20%5Eeditor%20getLine%3A%20%28editor%20getCursor%20line%29'),
  2526. messageSends: ["getLine:", "line", "getCursor"],
  2527. referencedClasses: []
  2528. }),
  2529. smalltalk.SourceArea);
  2530. smalltalk.addMethod(
  2531. unescape('_selection'),
  2532. smalltalk.method({
  2533. selector: unescape('selection'),
  2534. category: 'accessing',
  2535. fn: function (){
  2536. var self=this;
  2537. return smalltalk.send(self['@editor'], "_getSelection", []);
  2538. return self;},
  2539. args: [],
  2540. source: unescape('selection%0A%09%5Eeditor%20getSelection'),
  2541. messageSends: ["getSelection"],
  2542. referencedClasses: []
  2543. }),
  2544. smalltalk.SourceArea);
  2545. smalltalk.addMethod(
  2546. unescape('_selectionEnd'),
  2547. smalltalk.method({
  2548. selector: unescape('selectionEnd'),
  2549. category: 'accessing',
  2550. fn: function (){
  2551. var self=this;
  2552. return smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionEnd", []);
  2553. return self;},
  2554. args: [],
  2555. source: unescape('selectionEnd%0A%20%20%20%5Etextarea%20element%20selectionEnd'),
  2556. messageSends: ["selectionEnd", "element"],
  2557. referencedClasses: []
  2558. }),
  2559. smalltalk.SourceArea);
  2560. smalltalk.addMethod(
  2561. unescape('_selectionStart'),
  2562. smalltalk.method({
  2563. selector: unescape('selectionStart'),
  2564. category: 'accessing',
  2565. fn: function (){
  2566. var self=this;
  2567. return smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionStart", []);
  2568. return self;},
  2569. args: [],
  2570. source: unescape('selectionStart%0A%20%20%20%5Etextarea%20element%20selectionStart'),
  2571. messageSends: ["selectionStart", "element"],
  2572. referencedClasses: []
  2573. }),
  2574. smalltalk.SourceArea);
  2575. smalltalk.addMethod(
  2576. unescape('_selectionStart_'),
  2577. smalltalk.method({
  2578. selector: unescape('selectionStart%3A'),
  2579. category: 'accessing',
  2580. fn: function (anInteger){
  2581. var self=this;
  2582. smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionStart_", [anInteger]);
  2583. return self;},
  2584. args: ["anInteger"],
  2585. source: unescape('selectionStart%3A%20anInteger%0A%20%20%20textarea%20element%20selectionStart%3A%20anInteger'),
  2586. messageSends: ["selectionStart:", "element"],
  2587. referencedClasses: []
  2588. }),
  2589. smalltalk.SourceArea);
  2590. smalltalk.addMethod(
  2591. unescape('_selectionEnd_'),
  2592. smalltalk.method({
  2593. selector: unescape('selectionEnd%3A'),
  2594. category: 'accessing',
  2595. fn: function (anInteger){
  2596. var self=this;
  2597. smalltalk.send(smalltalk.send((typeof textarea == 'undefined' ? nil : textarea), "_element", []), "_selectionEnd_", [anInteger]);
  2598. return self;},
  2599. args: ["anInteger"],
  2600. source: unescape('selectionEnd%3A%20anInteger%0A%20%20%20textarea%20element%20selectionEnd%3A%20anInteger'),
  2601. messageSends: ["selectionEnd:", "element"],
  2602. referencedClasses: []
  2603. }),
  2604. smalltalk.SourceArea);
  2605. smalltalk.addMethod(
  2606. unescape('_setEditorOn_'),
  2607. smalltalk.method({
  2608. selector: unescape('setEditorOn%3A'),
  2609. category: 'accessing',
  2610. fn: function (aTextarea){
  2611. var self=this;
  2612. self['@editor'] = CodeMirror.fromTextArea(aTextarea, {
  2613. theme: 'jtalk',
  2614. lineNumbers: true,
  2615. enterMode: 'flat',
  2616. matchBrackets: true,
  2617. electricChars: false
  2618. });
  2619. return self;},
  2620. args: ["aTextarea"],
  2621. 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'),
  2622. messageSends: [],
  2623. referencedClasses: []
  2624. }),
  2625. smalltalk.SourceArea);
  2626. smalltalk.addMethod(
  2627. unescape('_editor'),
  2628. smalltalk.method({
  2629. selector: unescape('editor'),
  2630. category: 'accessing',
  2631. fn: function (){
  2632. var self=this;
  2633. return self['@editor'];
  2634. return self;},
  2635. args: [],
  2636. source: unescape('editor%0A%09%5Eeditor'),
  2637. messageSends: [],
  2638. referencedClasses: []
  2639. }),
  2640. smalltalk.SourceArea);
  2641. smalltalk.addMethod(
  2642. unescape('_receiver'),
  2643. smalltalk.method({
  2644. selector: unescape('receiver'),
  2645. category: 'accessing',
  2646. fn: function (){
  2647. var self=this;
  2648. return (($receiver = self['@receiver']) == nil || $receiver == undefined) ? (function(){return smalltalk.send((smalltalk.DoIt || DoIt), "_new", []);})() : $receiver;
  2649. return self;},
  2650. args: [],
  2651. source: unescape('receiver%0A%09%5Ereceiver%20ifNil%3A%20%5BDoIt%20new%5D'),
  2652. messageSends: ["ifNil:", "new"],
  2653. referencedClasses: ["DoIt"]
  2654. }),
  2655. smalltalk.SourceArea);
  2656. smalltalk.addMethod(
  2657. unescape('_receiver_'),
  2658. smalltalk.method({
  2659. selector: unescape('receiver%3A'),
  2660. category: 'accessing',
  2661. fn: function (anObject){
  2662. var self=this;
  2663. self['@receiver']=anObject;
  2664. return self;},
  2665. args: ["anObject"],
  2666. source: unescape('receiver%3A%20anObject%0A%09receiver%20%3A%3D%20anObject'),
  2667. messageSends: [],
  2668. referencedClasses: []
  2669. }),
  2670. smalltalk.SourceArea);
  2671. smalltalk.addMethod(
  2672. unescape('_onDoIt_'),
  2673. smalltalk.method({
  2674. selector: unescape('onDoIt%3A'),
  2675. category: 'accessing',
  2676. fn: function (aBlock){
  2677. var self=this;
  2678. self['@onDoIt']=aBlock;
  2679. return self;},
  2680. args: ["aBlock"],
  2681. source: unescape('onDoIt%3A%20aBlock%0A%09onDoIt%20%3A%3D%20aBlock'),
  2682. messageSends: [],
  2683. referencedClasses: []
  2684. }),
  2685. smalltalk.SourceArea);
  2686. smalltalk.addMethod(
  2687. unescape('_onDoIt'),
  2688. smalltalk.method({
  2689. selector: unescape('onDoIt'),
  2690. category: 'accessing',
  2691. fn: function (){
  2692. var self=this;
  2693. return self['@onDoIt'];
  2694. return self;},
  2695. args: [],
  2696. source: unescape('onDoIt%0A%09%5EonDoIt'),
  2697. messageSends: [],
  2698. referencedClasses: []
  2699. }),
  2700. smalltalk.SourceArea);
  2701. smalltalk.addMethod(
  2702. unescape('_currentLineOrSelection'),
  2703. smalltalk.method({
  2704. selector: unescape('currentLineOrSelection'),
  2705. category: 'accessing',
  2706. fn: function (){
  2707. var self=this;
  2708. 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", []);})]));
  2709. return self;},
  2710. args: [],
  2711. source: unescape('currentLineOrSelection%0A%20%20%20%20%5Eeditor%20somethingSelected%0A%09ifFalse%3A%20%5Bself%20currentLine%5D%0A%09ifTrue%3A%20%5Bself%20selection%5D'),
  2712. messageSends: ["ifFalse:ifTrue:", "somethingSelected", "currentLine", "selection"],
  2713. referencedClasses: []
  2714. }),
  2715. smalltalk.SourceArea);
  2716. smalltalk.addMethod(
  2717. unescape('_clear'),
  2718. smalltalk.method({
  2719. selector: unescape('clear'),
  2720. category: 'actions',
  2721. fn: function (){
  2722. var self=this;
  2723. smalltalk.send(self, "_val_", [""]);
  2724. return self;},
  2725. args: [],
  2726. source: unescape('clear%0A%20%20%20%20%20%20self%20val%3A%20%27%27'),
  2727. messageSends: ["val:"],
  2728. referencedClasses: []
  2729. }),
  2730. smalltalk.SourceArea);
  2731. smalltalk.addMethod(
  2732. unescape('_doIt'),
  2733. smalltalk.method({
  2734. selector: unescape('doIt'),
  2735. category: 'actions',
  2736. fn: function (){
  2737. var self=this;
  2738. var result=nil;
  2739. result=smalltalk.send(self, "_eval_", [smalltalk.send(self, "_currentLineOrSelection", [])]);
  2740. (($receiver = smalltalk.send(self, "_onDoIt", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(smalltalk.send(self, "_onDoIt", []), "_value", []);})() : nil;
  2741. return result;
  2742. return self;},
  2743. args: [],
  2744. 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'),
  2745. messageSends: ["eval:", "currentLineOrSelection", "ifNotNil:", "onDoIt", "value"],
  2746. referencedClasses: []
  2747. }),
  2748. smalltalk.SourceArea);
  2749. smalltalk.addMethod(
  2750. unescape('_eval_'),
  2751. smalltalk.method({
  2752. selector: unescape('eval%3A'),
  2753. category: 'actions',
  2754. fn: function (aString){
  2755. var self=this;
  2756. try{var compiler=nil;
  2757. compiler=smalltalk.send((smalltalk.Compiler || Compiler), "_new", []);
  2758. 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", [])])}})})();})]);
  2759. (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", []), []])}})})();
  2760. return self;
  2761. } catch(e) {if(e.name === 'stReturn' && e.selector === '_eval_'){return e.fn()} throw(e)}},
  2762. args: ["aString"],
  2763. 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'),
  2764. messageSends: ["new", "on:do:", "parseExpression:", "alert:", "messageText", "applyTo:arguments:", "fn", "load:forClass:", unescape("%2C"), "receiver"],
  2765. referencedClasses: ["Compiler", "Error", "DoIt"]
  2766. }),
  2767. smalltalk.SourceArea);
  2768. smalltalk.addMethod(
  2769. unescape('_handleKeyDown_'),
  2770. smalltalk.method({
  2771. selector: unescape('handleKeyDown%3A'),
  2772. category: 'actions',
  2773. fn: function (anEvent){
  2774. var self=this;
  2775. if(anEvent.ctrlKey) {
  2776. if(anEvent.keyCode === 80) { //ctrl+p
  2777. self._printIt();
  2778. anEvent.preventDefault();
  2779. return false;
  2780. }
  2781. if(anEvent.keyCode === 68) { //ctrl+d
  2782. self._doIt();
  2783. anEvent.preventDefault();
  2784. return false;
  2785. }
  2786. if(anEvent.keyCode === 73) { //ctrl+i
  2787. self._inspectIt();
  2788. anEvent.preventDefault();
  2789. return false;
  2790. }
  2791. };
  2792. return self;},
  2793. args: ["anEvent"],
  2794. 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'),
  2795. messageSends: [],
  2796. referencedClasses: []
  2797. }),
  2798. smalltalk.SourceArea);
  2799. smalltalk.addMethod(
  2800. unescape('_inspectIt'),
  2801. smalltalk.method({
  2802. selector: unescape('inspectIt'),
  2803. category: 'actions',
  2804. fn: function (){
  2805. var self=this;
  2806. smalltalk.send(smalltalk.send(self, "_doIt", []), "_inspect", []);
  2807. return self;},
  2808. args: [],
  2809. source: unescape('inspectIt%0A%20%20%20%20self%20doIt%20inspect'),
  2810. messageSends: ["inspect", "doIt"],
  2811. referencedClasses: []
  2812. }),
  2813. smalltalk.SourceArea);
  2814. smalltalk.addMethod(
  2815. unescape('_print_'),
  2816. smalltalk.method({
  2817. selector: unescape('print%3A'),
  2818. category: 'actions',
  2819. fn: function (aString){
  2820. var self=this;
  2821. var start=nil;
  2822. var stop=nil;
  2823. start=smalltalk.send((smalltalk.HashedCollection || HashedCollection), "_new", []);
  2824. stop=smalltalk.send((smalltalk.HashedCollection || HashedCollection), "_new", []);
  2825. smalltalk.send(start, "_at_put_", ["line", smalltalk.send(smalltalk.send(self['@editor'], "_getCursor_", [false]), "_line", [])]);
  2826. smalltalk.send(start, "_at_put_", ["ch", smalltalk.send(smalltalk.send(self['@editor'], "_getCursor_", [false]), "_ch", [])]);
  2827. smalltalk.send(stop, "_at_put_", ["line", smalltalk.send(start, "_at_", ["line"])]);
  2828. 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)]))]);
  2829. smalltalk.send(self['@editor'], "_replaceSelection_", [smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@editor'], "_getSelection", []), "__comma", [" "]), "__comma", [aString]), "__comma", [" "])]);
  2830. smalltalk.send(self['@editor'], "_setCursor_", [smalltalk.send(self['@editor'], "_getCursor_", [true])]);
  2831. smalltalk.send(self['@editor'], "_setSelection_end_", [stop, start]);
  2832. return self;},
  2833. args: ["aString"],
  2834. 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'),
  2835. messageSends: ["new", "at:put:", "line", "getCursor:", "ch", "at:", unescape("+"), "size", "replaceSelection:", unescape("%2C"), "getSelection", "setCursor:", "setSelection:end:"],
  2836. referencedClasses: ["HashedCollection"]
  2837. }),
  2838. smalltalk.SourceArea);
  2839. smalltalk.addMethod(
  2840. unescape('_printIt'),
  2841. smalltalk.method({
  2842. selector: unescape('printIt'),
  2843. category: 'actions',
  2844. fn: function (){
  2845. var self=this;
  2846. smalltalk.send(self, "_print_", [smalltalk.send(smalltalk.send(self, "_doIt", []), "_printString", [])]);
  2847. return self;},
  2848. args: [],
  2849. source: unescape('printIt%0A%20%20%20%20self%20print%3A%20self%20doIt%20printString'),
  2850. messageSends: ["print:", "printString", "doIt"],
  2851. referencedClasses: []
  2852. }),
  2853. smalltalk.SourceArea);
  2854. smalltalk.addMethod(
  2855. unescape('_fileIn'),
  2856. smalltalk.method({
  2857. selector: unescape('fileIn'),
  2858. category: 'actions',
  2859. fn: function (){
  2860. var self=this;
  2861. smalltalk.send(smalltalk.send((smalltalk.Importer || Importer), "_new", []), "_import_", [smalltalk.send(smalltalk.send(self, "_currentLineOrSelection", []), "_readStream", [])]);
  2862. return self;},
  2863. args: [],
  2864. source: unescape('fileIn%0A%20%20%20%20Importer%20new%20import%3A%20self%20currentLineOrSelection%20readStream'),
  2865. messageSends: ["import:", "new", "readStream", "currentLineOrSelection"],
  2866. referencedClasses: ["Importer"]
  2867. }),
  2868. smalltalk.SourceArea);
  2869. smalltalk.addMethod(
  2870. unescape('_onKeyUp_'),
  2871. smalltalk.method({
  2872. selector: unescape('onKeyUp%3A'),
  2873. category: 'events',
  2874. fn: function (aBlock){
  2875. var self=this;
  2876. smalltalk.send(self['@div'], "_onKeyUp_", [aBlock]);
  2877. return self;},
  2878. args: ["aBlock"],
  2879. source: unescape('onKeyUp%3A%20aBlock%0A%09div%20onKeyUp%3A%20aBlock'),
  2880. messageSends: ["onKeyUp:"],
  2881. referencedClasses: []
  2882. }),
  2883. smalltalk.SourceArea);
  2884. smalltalk.addMethod(
  2885. unescape('_onKeyDown_'),
  2886. smalltalk.method({
  2887. selector: unescape('onKeyDown%3A'),
  2888. category: 'events',
  2889. fn: function (aBlock){
  2890. var self=this;
  2891. smalltalk.send(self['@div'], "_onKeyDown_", [aBlock]);
  2892. return self;},
  2893. args: ["aBlock"],
  2894. source: unescape('onKeyDown%3A%20aBlock%0A%09div%20onKeyDown%3A%20aBlock'),
  2895. messageSends: ["onKeyDown:"],
  2896. referencedClasses: []
  2897. }),
  2898. smalltalk.SourceArea);
  2899. smalltalk.addMethod(
  2900. unescape('_renderOn_'),
  2901. smalltalk.method({
  2902. selector: unescape('renderOn%3A'),
  2903. category: 'rendering',
  2904. fn: function (html){
  2905. var self=this;
  2906. var textarea=nil;
  2907. self['@div']=smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["source"]);
  2908. smalltalk.send(self['@div'], "_with_", [(function(){return textarea=smalltalk.send(html, "_textarea", []);})]);
  2909. smalltalk.send(self, "_setEditorOn_", [smalltalk.send(textarea, "_element", [])]);
  2910. smalltalk.send(self['@div'], "_onKeyDown_", [(function(e){return smalltalk.send(self, "_handleKeyDown_", [e]);})]);
  2911. return self;},
  2912. args: ["html"],
  2913. 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'),
  2914. messageSends: ["class:", "div", "with:", "textarea", "setEditorOn:", "element", "onKeyDown:", "handleKeyDown:"],
  2915. referencedClasses: []
  2916. }),
  2917. smalltalk.SourceArea);
  2918. smalltalk.addClass('ClassesList', smalltalk.Widget, ['browser', 'ul', 'nodes'], 'IDE');
  2919. smalltalk.addMethod(
  2920. unescape('_category'),
  2921. smalltalk.method({
  2922. selector: unescape('category'),
  2923. category: 'accessing',
  2924. fn: function (){
  2925. var self=this;
  2926. return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectedPackage", []);
  2927. return self;},
  2928. args: [],
  2929. source: unescape('category%0A%09%5Eself%20browser%20selectedPackage'),
  2930. messageSends: ["selectedPackage", "browser"],
  2931. referencedClasses: []
  2932. }),
  2933. smalltalk.ClassesList);
  2934. smalltalk.addMethod(
  2935. unescape('_nodes'),
  2936. smalltalk.method({
  2937. selector: unescape('nodes'),
  2938. category: 'accessing',
  2939. fn: function (){
  2940. var self=this;
  2941. (($receiver = self['@nodes']) == nil || $receiver == undefined) ? (function(){return self['@nodes']=smalltalk.send(self, "_getNodes", []);})() : $receiver;
  2942. return self['@nodes'];
  2943. return self;},
  2944. args: [],
  2945. source: unescape('nodes%0A%09nodes%20ifNil%3A%20%5Bnodes%20%3A%3D%20self%20getNodes%5D.%0A%09%5Enodes'),
  2946. messageSends: ["ifNil:", "getNodes"],
  2947. referencedClasses: []
  2948. }),
  2949. smalltalk.ClassesList);
  2950. smalltalk.addMethod(
  2951. unescape('_browser'),
  2952. smalltalk.method({
  2953. selector: unescape('browser'),
  2954. category: 'accessing',
  2955. fn: function (){
  2956. var self=this;
  2957. return self['@browser'];
  2958. return self;},
  2959. args: [],
  2960. source: unescape('browser%0A%09%5Ebrowser'),
  2961. messageSends: [],
  2962. referencedClasses: []
  2963. }),
  2964. smalltalk.ClassesList);
  2965. smalltalk.addMethod(
  2966. unescape('_browser_'),
  2967. smalltalk.method({
  2968. selector: unescape('browser%3A'),
  2969. category: 'accessing',
  2970. fn: function (aBrowser){
  2971. var self=this;
  2972. self['@browser']=aBrowser;
  2973. return self;},
  2974. args: ["aBrowser"],
  2975. source: unescape('browser%3A%20aBrowser%0A%09browser%20%3A%3D%20aBrowser'),
  2976. messageSends: [],
  2977. referencedClasses: []
  2978. }),
  2979. smalltalk.ClassesList);
  2980. smalltalk.addMethod(
  2981. unescape('_getNodes'),
  2982. smalltalk.method({
  2983. selector: unescape('getNodes'),
  2984. category: 'accessing',
  2985. fn: function (){
  2986. var self=this;
  2987. var classes=nil;
  2988. var children=nil;
  2989. var others=nil;
  2990. classes=smalltalk.send(smalltalk.send(self, "_browser", []), "_classes", []);
  2991. children=[];
  2992. others=[];
  2993. 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]);})]));})]);
  2994. return smalltalk.send(children, "_collect_", [(function(each){return smalltalk.send((smalltalk.ClassesListNode || ClassesListNode), "_on_browser_classes_level_", [each, smalltalk.send(self, "_browser", []), others, (0)]);})]);
  2995. return self;},
  2996. args: [],
  2997. 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'),
  2998. messageSends: ["classes", "browser", "do:", "ifFalse:ifTrue:", "includes:", "superclass", "add:", "collect:", "on:browser:classes:level:"],
  2999. referencedClasses: ["ClassesListNode"]
  3000. }),
  3001. smalltalk.ClassesList);
  3002. smalltalk.addMethod(
  3003. unescape('_resetNodes'),
  3004. smalltalk.method({
  3005. selector: unescape('resetNodes'),
  3006. category: 'accessing',
  3007. fn: function (){
  3008. var self=this;
  3009. self['@nodes']=nil;
  3010. return self;},
  3011. args: [],
  3012. source: unescape('resetNodes%0A%09nodes%20%3A%3D%20nil'),
  3013. messageSends: [],
  3014. referencedClasses: []
  3015. }),
  3016. smalltalk.ClassesList);
  3017. smalltalk.addMethod(
  3018. unescape('_renderOn_'),
  3019. smalltalk.method({
  3020. selector: unescape('renderOn%3A'),
  3021. category: 'rendering',
  3022. fn: function (html){
  3023. var self=this;
  3024. self['@ul']=(function($rec){smalltalk.send($rec, "_class_", ["jt_column browser classes"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_ul", []));
  3025. smalltalk.send(self, "_updateNodes", []);
  3026. return self;},
  3027. args: ["html"],
  3028. 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'),
  3029. messageSends: ["class:", "yourself", "ul", "updateNodes"],
  3030. referencedClasses: []
  3031. }),
  3032. smalltalk.ClassesList);
  3033. smalltalk.addMethod(
  3034. unescape('_updateNodes'),
  3035. smalltalk.method({
  3036. selector: unescape('updateNodes'),
  3037. category: 'rendering',
  3038. fn: function (){
  3039. var self=this;
  3040. smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);})]);
  3041. return self;},
  3042. args: [],
  3043. 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'),
  3044. messageSends: ["contents:", "do:", "nodes", "renderOn:"],
  3045. referencedClasses: []
  3046. }),
  3047. smalltalk.ClassesList);
  3048. smalltalk.addMethod(
  3049. unescape('_on_'),
  3050. smalltalk.method({
  3051. selector: unescape('on%3A'),
  3052. category: 'instance creation',
  3053. fn: function (aBrowser){
  3054. var self=this;
  3055. return (function($rec){smalltalk.send($rec, "_browser_", [aBrowser]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
  3056. return self;},
  3057. args: ["aBrowser"],
  3058. source: unescape('on%3A%20aBrowser%0A%09%5Eself%20new%20%0A%09%09browser%3A%20aBrowser%3B%20%0A%09%09yourself'),
  3059. messageSends: ["browser:", "yourself", "new"],
  3060. referencedClasses: []
  3061. }),
  3062. smalltalk.ClassesList.klass);
  3063. smalltalk.addClass('ClassesListNode', smalltalk.Widget, ['browser', 'theClass', 'level', 'nodes'], 'IDE');
  3064. smalltalk.addMethod(
  3065. unescape('_renderOn_'),
  3066. smalltalk.method({
  3067. selector: unescape('renderOn%3A'),
  3068. category: '',
  3069. fn: function (html){
  3070. var self=this;
  3071. var li=nil;
  3072. var cssClass=nil;
  3073. cssClass="";
  3074. li=smalltalk.send(smalltalk.send(html, "_li", []), "_onClick_", [(function(){return smalltalk.send(smalltalk.send(self, "_browser", []), "_selectClass_", [smalltalk.send(self, "_theClass", [])]);})]);
  3075. smalltalk.send(smalltalk.send(li, "_asJQuery", []), "_html_", [smalltalk.send(self, "_label", [])]);
  3076. ((($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"]);})]));
  3077. ((($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"]);})]));
  3078. smalltalk.send(li, "_class_", [cssClass]);
  3079. smalltalk.send(smalltalk.send(self, "_nodes", []), "_do_", [(function(each){return smalltalk.send(each, "_renderOn_", [html]);})]);
  3080. return self;},
  3081. args: ["html"],
  3082. 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'),
  3083. messageSends: ["onClick:", "li", "selectClass:", "browser", "theClass", "html:", "asJQuery", "label", "ifTrue:", unescape("%3D"), "selectedClass", unescape("%2C"), "ifFalse:", "isEmpty", "comment", "class:", "do:", "nodes", "renderOn:"],
  3084. referencedClasses: []
  3085. }),
  3086. smalltalk.ClassesListNode);
  3087. smalltalk.addMethod(
  3088. unescape('_nodes'),
  3089. smalltalk.method({
  3090. selector: unescape('nodes'),
  3091. category: 'accessing',
  3092. fn: function (){
  3093. var self=this;
  3094. return self['@nodes'];
  3095. return self;},
  3096. args: [],
  3097. source: unescape('nodes%0A%09%5Enodes'),
  3098. messageSends: [],
  3099. referencedClasses: []
  3100. }),
  3101. smalltalk.ClassesListNode);
  3102. smalltalk.addMethod(
  3103. unescape('_theClass'),
  3104. smalltalk.method({
  3105. selector: unescape('theClass'),
  3106. category: 'accessing',
  3107. fn: function (){
  3108. var self=this;
  3109. return self['@theClass'];
  3110. return self;},
  3111. args: [],
  3112. source: unescape('theClass%0A%09%5EtheClass'),
  3113. messageSends: [],
  3114. referencedClasses: []
  3115. }),
  3116. smalltalk.ClassesListNode);
  3117. smalltalk.addMethod(
  3118. unescape('_theClass_'),
  3119. smalltalk.method({
  3120. selector: unescape('theClass%3A'),
  3121. category: 'accessing',
  3122. fn: function (aClass){
  3123. var self=this;
  3124. self['@theClass']=aClass;
  3125. return self;},
  3126. args: ["aClass"],
  3127. source: unescape('theClass%3A%20aClass%0A%09theClass%20%3A%3D%20aClass'),
  3128. messageSends: [],
  3129. referencedClasses: []
  3130. }),
  3131. smalltalk.ClassesListNode);
  3132. smalltalk.addMethod(
  3133. unescape('_browser'),
  3134. smalltalk.method({
  3135. selector: unescape('browser'),
  3136. category: 'accessing',
  3137. fn: function (){
  3138. var self=this;
  3139. return self['@browser'];
  3140. return self;},
  3141. args: [],
  3142. source: unescape('browser%0A%09%5Ebrowser'),
  3143. messageSends: [],
  3144. referencedClasses: []
  3145. }),
  3146. smalltalk.ClassesListNode);
  3147. smalltalk.addMethod(
  3148. unescape('_browser_'),
  3149. smalltalk.method({
  3150. selector: unescape('browser%3A'),
  3151. category: 'accessing',
  3152. fn: function (aBrowser){
  3153. var self=this;
  3154. self['@browser']=aBrowser;
  3155. return self;},
  3156. args: ["aBrowser"],
  3157. source: unescape('browser%3A%20aBrowser%0A%09browser%20%3A%3D%20aBrowser'),
  3158. messageSends: [],
  3159. referencedClasses: []
  3160. }),
  3161. smalltalk.ClassesListNode);
  3162. smalltalk.addMethod(
  3163. unescape('_level'),
  3164. smalltalk.method({
  3165. selector: unescape('level'),
  3166. category: 'accessing',
  3167. fn: function (){
  3168. var self=this;
  3169. return self['@level'];
  3170. return self;},
  3171. args: [],
  3172. source: unescape('level%0A%09%5Elevel'),
  3173. messageSends: [],
  3174. referencedClasses: []
  3175. }),
  3176. smalltalk.ClassesListNode);
  3177. smalltalk.addMethod(
  3178. unescape('_level_'),
  3179. smalltalk.method({
  3180. selector: unescape('level%3A'),
  3181. category: 'accessing',
  3182. fn: function (anInteger){
  3183. var self=this;
  3184. self['@level']=anInteger;
  3185. return self;},
  3186. args: ["anInteger"],
  3187. source: unescape('level%3A%20anInteger%0A%09level%20%3A%3D%20anInteger'),
  3188. messageSends: [],
  3189. referencedClasses: []
  3190. }),
  3191. smalltalk.ClassesListNode);
  3192. smalltalk.addMethod(
  3193. unescape('_label'),
  3194. smalltalk.method({
  3195. selector: unescape('label'),
  3196. category: 'accessing',
  3197. fn: function (){
  3198. var self=this;
  3199. var str=nil;
  3200. str=smalltalk.send(smalltalk.send((smalltalk.String || String), "_new", []), "_writeStream", []);
  3201. smalltalk.send(smalltalk.send(self, "_level", []), "_timesRepeat_", [(function(){return smalltalk.send(str, "_nextPutAll_", [unescape("%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B")]);})]);
  3202. smalltalk.send(str, "_nextPutAll_", [smalltalk.send(smalltalk.send(self, "_theClass", []), "_name", [])]);
  3203. return smalltalk.send(str, "_contents", []);
  3204. return self;},
  3205. args: [],
  3206. 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'),
  3207. messageSends: ["writeStream", "new", "timesRepeat:", "level", "nextPutAll:", "name", "theClass", "contents"],
  3208. referencedClasses: ["String"]
  3209. }),
  3210. smalltalk.ClassesListNode);
  3211. smalltalk.addMethod(
  3212. unescape('_getNodesFrom_'),
  3213. smalltalk.method({
  3214. selector: unescape('getNodesFrom%3A'),
  3215. category: 'accessing',
  3216. fn: function (aCollection){
  3217. var self=this;
  3218. var children=nil;
  3219. var others=nil;
  3220. children=[];
  3221. others=[];
  3222. 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]);})]));})]);
  3223. 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)]))]);})]);
  3224. return self;},
  3225. args: ["aCollection"],
  3226. 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'),
  3227. messageSends: ["do:", "ifTrue:ifFalse:", unescape("%3D"), "superclass", "theClass", "add:", "collect:", "on:browser:classes:level:", "browser", unescape("+"), "level"],
  3228. referencedClasses: ["ClassesListNode"]
  3229. }),
  3230. smalltalk.ClassesListNode);
  3231. smalltalk.addMethod(
  3232. unescape('_on_browser_classes_level_'),
  3233. smalltalk.method({
  3234. selector: unescape('on%3Abrowser%3Aclasses%3Alevel%3A'),
  3235. category: 'instance creation',
  3236. fn: function (aClass, aBrowser, aCollection, anInteger){
  3237. var self=this;
  3238. 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", []));
  3239. return self;},
  3240. args: ["aClass", "aBrowser", "aCollection", "anInteger"],
  3241. 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'),
  3242. messageSends: ["theClass:", "browser:", "level:", "getNodesFrom:", "yourself", "new"],
  3243. referencedClasses: []
  3244. }),
  3245. smalltalk.ClassesListNode.klass);
  3246. smalltalk.addClass('Debugger', smalltalk.TabWidget, ['error', 'selectedContext', 'sourceArea', 'ul', 'ul2', 'inspector', 'saveButton', 'unsavedChanges', 'selectedVariable', 'selectedVariableName', 'inspectButton'], 'IDE');
  3247. smalltalk.addMethod(
  3248. unescape('_error'),
  3249. smalltalk.method({
  3250. selector: unescape('error'),
  3251. category: 'accessing',
  3252. fn: function (){
  3253. var self=this;
  3254. return self['@error'];
  3255. return self;},
  3256. args: [],
  3257. source: unescape('error%0A%09%5Eerror'),
  3258. messageSends: [],
  3259. referencedClasses: []
  3260. }),
  3261. smalltalk.Debugger);
  3262. smalltalk.addMethod(
  3263. unescape('_error_'),
  3264. smalltalk.method({
  3265. selector: unescape('error%3A'),
  3266. category: 'accessing',
  3267. fn: function (anError){
  3268. var self=this;
  3269. self['@error']=anError;
  3270. return self;},
  3271. args: ["anError"],
  3272. source: unescape('error%3A%20anError%0A%09error%20%3A%3D%20anError'),
  3273. messageSends: [],
  3274. referencedClasses: []
  3275. }),
  3276. smalltalk.Debugger);
  3277. smalltalk.addMethod(
  3278. unescape('_label'),
  3279. smalltalk.method({
  3280. selector: unescape('label'),
  3281. category: 'accessing',
  3282. fn: function (){
  3283. var self=this;
  3284. return unescape("%5BDebugger%5D");
  3285. return self;},
  3286. args: [],
  3287. source: unescape('label%0A%09%5E%27%5BDebugger%5D%27'),
  3288. messageSends: [],
  3289. referencedClasses: []
  3290. }),
  3291. smalltalk.Debugger);
  3292. smalltalk.addMethod(
  3293. unescape('_source'),
  3294. smalltalk.method({
  3295. selector: unescape('source'),
  3296. category: 'accessing',
  3297. fn: function (){
  3298. var self=this;
  3299. 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", []);})();
  3300. return self;},
  3301. args: [],
  3302. 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'),
  3303. messageSends: ["ifNil:ifNotNil:", "method", "source"],
  3304. referencedClasses: []
  3305. }),
  3306. smalltalk.Debugger);
  3307. smalltalk.addMethod(
  3308. unescape('_method'),
  3309. smalltalk.method({
  3310. selector: unescape('method'),
  3311. category: 'accessing',
  3312. fn: function (){
  3313. var self=this;
  3314. return smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_class", []), "_methodAt_", [smalltalk.send(self['@selectedContext'], "_selector", [])]);
  3315. return self;},
  3316. args: [],
  3317. source: unescape('method%0A%09%5EselectedContext%20receiver%20class%20methodAt%3A%20selectedContext%20selector'),
  3318. messageSends: ["methodAt:", "class", "receiver", "selector"],
  3319. referencedClasses: []
  3320. }),
  3321. smalltalk.Debugger);
  3322. smalltalk.addMethod(
  3323. unescape('_arguments'),
  3324. smalltalk.method({
  3325. selector: unescape('arguments'),
  3326. category: 'accessing',
  3327. fn: function (){
  3328. var self=this;
  3329. 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", []);})();
  3330. return self;},
  3331. args: [],
  3332. 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'),
  3333. messageSends: ["ifNil:ifNotNil:", "method", "collect:", "temps", "arguments"],
  3334. referencedClasses: []
  3335. }),
  3336. smalltalk.Debugger);
  3337. smalltalk.addMethod(
  3338. unescape('_receiver'),
  3339. smalltalk.method({
  3340. selector: unescape('receiver'),
  3341. category: 'accessing',
  3342. fn: function (){
  3343. var self=this;
  3344. return smalltalk.send(self['@selectedContext'], "_receiver", []);
  3345. return self;},
  3346. args: [],
  3347. source: unescape('receiver%0A%09%5EselectedContext%20receiver'),
  3348. messageSends: ["receiver"],
  3349. referencedClasses: []
  3350. }),
  3351. smalltalk.Debugger);
  3352. smalltalk.addMethod(
  3353. unescape('_selectContext_'),
  3354. smalltalk.method({
  3355. selector: unescape('selectContext%3A'),
  3356. category: 'actions',
  3357. fn: function (aContext){
  3358. var self=this;
  3359. self['@selectedContext']=aContext;
  3360. self['@selectedVariable']=nil;
  3361. self['@selectedVariableName']=nil;
  3362. (function($rec){smalltalk.send($rec, "_updateContextsList", []);smalltalk.send($rec, "_updateSourceArea", []);smalltalk.send($rec, "_updateInspector", []);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateStatus", []);})(self);
  3363. return self;},
  3364. args: ["aContext"],
  3365. 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'),
  3366. messageSends: ["updateContextsList", "updateSourceArea", "updateInspector", "updateVariablesList", "updateStatus"],
  3367. referencedClasses: []
  3368. }),
  3369. smalltalk.Debugger);
  3370. smalltalk.addMethod(
  3371. unescape('_proceed'),
  3372. smalltalk.method({
  3373. selector: unescape('proceed'),
  3374. category: 'actions',
  3375. fn: function (){
  3376. var self=this;
  3377. smalltalk.send(self, "_close", []);
  3378. smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_perform_withArguments_", [smalltalk.send(self['@selectedContext'], "_selector", []), smalltalk.send(self['@selectedContext'], "_temps", [])]);
  3379. return self;},
  3380. args: [],
  3381. source: unescape('proceed%0A%09self%20close.%0A%09selectedContext%20receiver%20perform%3A%20selectedContext%20selector%20withArguments%3A%20selectedContext%20temps'),
  3382. messageSends: ["close", "perform:withArguments:", "receiver", "selector", "temps"],
  3383. referencedClasses: []
  3384. }),
  3385. smalltalk.Debugger);
  3386. smalltalk.addMethod(
  3387. unescape('_save'),
  3388. smalltalk.method({
  3389. selector: unescape('save'),
  3390. category: 'actions',
  3391. fn: function (){
  3392. var self=this;
  3393. var protocol=nil;
  3394. protocol=smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_class", []), "_methodDictionary", []), "_at_", [smalltalk.send(self['@selectedContext'], "_selector", [])]), "_category", []);
  3395. smalltalk.send(smalltalk.send(smalltalk.send(self['@selectedContext'], "_receiver", []), "_class", []), "_compile_category_", [smalltalk.send(self['@sourceArea'], "_val", []), protocol]);
  3396. smalltalk.send(self, "_updateStatus", []);
  3397. return self;},
  3398. args: [],
  3399. 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'),
  3400. messageSends: ["category", "at:", "methodDictionary", "class", "receiver", "selector", "compile:category:", "val", "updateStatus"],
  3401. referencedClasses: []
  3402. }),
  3403. smalltalk.Debugger);
  3404. smalltalk.addMethod(
  3405. unescape('_selectVariable_named_'),
  3406. smalltalk.method({
  3407. selector: unescape('selectVariable%3Anamed%3A'),
  3408. category: 'actions',
  3409. fn: function (anObject, aString){
  3410. var self=this;
  3411. self['@selectedVariable']=anObject;
  3412. self['@selectedVariableName']=aString;
  3413. smalltalk.send(self['@inspector'], "_contents_", [(function(html){return smalltalk.send(html, "_with_", [smalltalk.send(anObject, "_printString", [])]);})]);
  3414. smalltalk.send(self, "_updateVariablesList", []);
  3415. return self;},
  3416. args: ["anObject", "aString"],
  3417. 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'),
  3418. messageSends: ["contents:", "with:", "printString", "updateVariablesList"],
  3419. referencedClasses: []
  3420. }),
  3421. smalltalk.Debugger);
  3422. smalltalk.addMethod(
  3423. unescape('_inspectSelectedVariable'),
  3424. smalltalk.method({
  3425. selector: unescape('inspectSelectedVariable'),
  3426. category: 'actions',
  3427. fn: function (){
  3428. var self=this;
  3429. smalltalk.send(self['@selectedVariable'], "_inspect", []);
  3430. return self;},
  3431. args: [],
  3432. source: unescape('inspectSelectedVariable%0A%09selectedVariable%20inspect'),
  3433. messageSends: ["inspect"],
  3434. referencedClasses: []
  3435. }),
  3436. smalltalk.Debugger);
  3437. smalltalk.addMethod(
  3438. unescape('_initialize'),
  3439. smalltalk.method({
  3440. selector: unescape('initialize'),
  3441. category: 'initialization',
  3442. fn: function (){
  3443. var self=this;
  3444. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  3445. smalltalk.send(self['@unsavedChanges'], "__eq", [false]);
  3446. return self;},
  3447. args: [],
  3448. source: unescape('initialize%0A%09super%20initialize.%0A%09unsavedChanges%20%3D%20false'),
  3449. messageSends: ["initialize", unescape("%3D")],
  3450. referencedClasses: []
  3451. }),
  3452. smalltalk.Debugger);
  3453. smalltalk.addMethod(
  3454. unescape('_renderTopPanelOn_'),
  3455. smalltalk.method({
  3456. selector: unescape('renderTopPanelOn%3A'),
  3457. category: 'rendering',
  3458. fn: function (html){
  3459. var self=this;
  3460. self['@selectedContext']=smalltalk.send(smalltalk.send(self, "_error", []), "_context", []);
  3461. (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", []));
  3462. return self;},
  3463. args: ["html"],
  3464. 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'),
  3465. messageSends: ["context", "error", "class:", "with:", "messageText", "div", "renderContext:on:", "ul"],
  3466. referencedClasses: []
  3467. }),
  3468. smalltalk.Debugger);
  3469. smalltalk.addMethod(
  3470. unescape('_renderContext_on_'),
  3471. smalltalk.method({
  3472. selector: unescape('renderContext%3Aon%3A'),
  3473. category: 'rendering',
  3474. fn: function (aContext, html){
  3475. var self=this;
  3476. var li=nil;
  3477. li=smalltalk.send(html, "_li", []);
  3478. ((($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"]);})]));
  3479. (function($rec){smalltalk.send($rec, "_with_", [smalltalk.send(aContext, "_asString", [])]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_selectContext_", [aContext]);})]);})(li);
  3480. (($receiver = smalltalk.send(aContext, "_home", [])) != nil && $receiver != undefined) ? (function(){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(aContext, "_home", []), html]);})() : nil;
  3481. return self;},
  3482. args: ["aContext", "html"],
  3483. 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'),
  3484. messageSends: ["li", "ifTrue:", unescape("%3D"), "class:", "with:", "asString", "onClick:", "selectContext:", "ifNotNil:", "home", "renderContext:on:"],
  3485. referencedClasses: []
  3486. }),
  3487. smalltalk.Debugger);
  3488. smalltalk.addMethod(
  3489. unescape('_renderBottomPanelOn_'),
  3490. smalltalk.method({
  3491. selector: unescape('renderBottomPanelOn%3A'),
  3492. category: 'rendering',
  3493. fn: function (html){
  3494. var self=this;
  3495. (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", []));
  3496. self['@ul2']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column debugger variables"]);
  3497. self['@inspector']=smalltalk.send(smalltalk.send(html, "_div", []), "_class_", ["jt_column debugger inspector"]);
  3498. smalltalk.send(self['@sourceArea'], "_onKeyUp_", [(function(){return smalltalk.send(self, "_updateStatus", []);})]);
  3499. return self;},
  3500. args: ["html"],
  3501. 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'),
  3502. messageSends: ["class:", "with:", "new", "renderOn:", "div", "ul", "onKeyUp:", "updateStatus"],
  3503. referencedClasses: ["SourceArea"]
  3504. }),
  3505. smalltalk.Debugger);
  3506. smalltalk.addMethod(
  3507. unescape('_renderButtonsOn_'),
  3508. smalltalk.method({
  3509. selector: unescape('renderButtonsOn%3A'),
  3510. category: 'rendering',
  3511. fn: function (html){
  3512. var self=this;
  3513. self['@saveButton']=(function($rec){smalltalk.send($rec, "_with_", ["Save"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_save", []);})]);})(smalltalk.send(html, "_button", []));
  3514. (function($rec){smalltalk.send($rec, "_with_", ["DoIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_doIt", []);})]);})(smalltalk.send(html, "_button", []));
  3515. (function($rec){smalltalk.send($rec, "_with_", ["PrintIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_printIt", []);})]);})(smalltalk.send(html, "_button", []));
  3516. (function($rec){smalltalk.send($rec, "_with_", ["InspectIt"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self['@sourceArea'], "_inspectIt", []);})]);})(smalltalk.send(html, "_button", []));
  3517. (function($rec){smalltalk.send($rec, "_with_", ["Proceed"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_proceed", []);})]);})(smalltalk.send(html, "_button", []));
  3518. (function($rec){smalltalk.send($rec, "_with_", ["Abandon"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_close", []);})]);})(smalltalk.send(html, "_button", []));
  3519. 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", []));
  3520. (function($rec){smalltalk.send($rec, "_updateSourceArea", []);smalltalk.send($rec, "_updateStatus", []);smalltalk.send($rec, "_updateVariablesList", []);return smalltalk.send($rec, "_updateInspector", []);})(self);
  3521. return self;},
  3522. args: ["html"],
  3523. 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'),
  3524. messageSends: ["with:", "onClick:", "save", "button", "doIt", "printIt", "inspectIt", "proceed", "close", "class:", "inspectSelectedVariable", "updateSourceArea", "updateStatus", "updateVariablesList", "updateInspector"],
  3525. referencedClasses: []
  3526. }),
  3527. smalltalk.Debugger);
  3528. smalltalk.addMethod(
  3529. unescape('_renderBoxOn_'),
  3530. smalltalk.method({
  3531. selector: unescape('renderBoxOn%3A'),
  3532. category: 'rendering',
  3533. fn: function (html){
  3534. var self=this;
  3535. (function($rec){smalltalk.send($rec, "_renderTopPanelOn_", [html]);return smalltalk.send($rec, "_renderBottomPanelOn_", [html]);})(self);
  3536. return self;},
  3537. args: ["html"],
  3538. source: unescape('renderBoxOn%3A%20html%0A%20%20%20%20self%20%0A%09renderTopPanelOn%3A%20html%3B%0A%09renderBottomPanelOn%3A%20html'),
  3539. messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
  3540. referencedClasses: []
  3541. }),
  3542. smalltalk.Debugger);
  3543. smalltalk.addMethod(
  3544. unescape('_canBeClosed'),
  3545. smalltalk.method({
  3546. selector: unescape('canBeClosed'),
  3547. category: 'testing',
  3548. fn: function (){
  3549. var self=this;
  3550. return true;
  3551. return self;},
  3552. args: [],
  3553. source: unescape('canBeClosed%0A%20%20%20%20%5Etrue'),
  3554. messageSends: [],
  3555. referencedClasses: []
  3556. }),
  3557. smalltalk.Debugger);
  3558. smalltalk.addMethod(
  3559. unescape('_updateContextsList'),
  3560. smalltalk.method({
  3561. selector: unescape('updateContextsList'),
  3562. category: 'updating',
  3563. fn: function (){
  3564. var self=this;
  3565. smalltalk.send(self['@ul'], "_contents_", [(function(html){return smalltalk.send(self, "_renderContext_on_", [smalltalk.send(smalltalk.send(self, "_error", []), "_context", []), html]);})]);
  3566. return self;},
  3567. args: [],
  3568. source: unescape('updateContextsList%0A%09ul%20contents%3A%20%5B%3Ahtml%20%7C%0A%09%09self%20renderContext%3A%20self%20error%20context%20on%3A%20html%5D'),
  3569. messageSends: ["contents:", "renderContext:on:", "context", "error"],
  3570. referencedClasses: []
  3571. }),
  3572. smalltalk.Debugger);
  3573. smalltalk.addMethod(
  3574. unescape('_updateSourceArea'),
  3575. smalltalk.method({
  3576. selector: unescape('updateSourceArea'),
  3577. category: 'updating',
  3578. fn: function (){
  3579. var self=this;
  3580. smalltalk.send(self['@sourceArea'], "_val_", [smalltalk.send(self, "_source", [])]);
  3581. return self;},
  3582. args: [],
  3583. source: unescape('updateSourceArea%0A%09%20sourceArea%20val%3A%20self%20source'),
  3584. messageSends: ["val:", "source"],
  3585. referencedClasses: []
  3586. }),
  3587. smalltalk.Debugger);
  3588. smalltalk.addMethod(
  3589. unescape('_updateStatus'),
  3590. smalltalk.method({
  3591. selector: unescape('updateStatus'),
  3592. category: 'updating',
  3593. fn: function (){
  3594. var self=this;
  3595. ((($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;})]));
  3596. return self;},
  3597. args: [],
  3598. 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'),
  3599. messageSends: ["ifTrue:ifFalse:", unescape("%3D"), "val", "source", "ifNotNil:", "at:put:", "removeAt:"],
  3600. referencedClasses: []
  3601. }),
  3602. smalltalk.Debugger);
  3603. smalltalk.addMethod(
  3604. unescape('_updateInspector'),
  3605. smalltalk.method({
  3606. selector: unescape('updateInspector'),
  3607. category: 'updating',
  3608. fn: function (){
  3609. var self=this;
  3610. smalltalk.send(self['@inspector'], "_contents_", [(function(html){return nil;})]);
  3611. return self;},
  3612. args: [],
  3613. source: unescape('updateInspector%0A%09inspector%20contents%3A%20%5B%3Ahtml%20%7C%5D'),
  3614. messageSends: ["contents:"],
  3615. referencedClasses: []
  3616. }),
  3617. smalltalk.Debugger);
  3618. smalltalk.addMethod(
  3619. unescape('_updateVariablesList'),
  3620. smalltalk.method({
  3621. selector: unescape('updateVariablesList'),
  3622. category: 'updating',
  3623. fn: function (){
  3624. var self=this;
  3625. smalltalk.send(self['@ul2'], "_contents_", [(function(html){var li=nil;
  3626. 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;
  3627. 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;
  3628. 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"]);})]));})]);})]);
  3629. (($receiver = self['@selectedVariable']) == nil || $receiver == undefined) ? (function(){return smalltalk.send(self['@inspectButton'], "_at_put_", ["disabled", true]);})() : (function(){return smalltalk.send(self['@inspectButton'], "_removeAt_", ["disabled"]);})();
  3630. return self;},
  3631. args: [],
  3632. 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'),
  3633. 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:"],
  3634. referencedClasses: []
  3635. }),
  3636. smalltalk.Debugger);
  3637. smalltalk.addClass('DebugErrorHandler', smalltalk.ErrorHandler, [], 'IDE');
  3638. smalltalk.addMethod(
  3639. unescape('_handleError_'),
  3640. smalltalk.method({
  3641. selector: unescape('handleError%3A'),
  3642. category: 'error handling',
  3643. fn: function (anError){
  3644. var self=this;
  3645. 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]);})]);
  3646. return self;},
  3647. args: ["anError"],
  3648. 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'),
  3649. messageSends: ["on:do:", "error:", "open", "new", "handleError:"],
  3650. referencedClasses: ["Debugger", "Error", "ErrorHandler"]
  3651. }),
  3652. smalltalk.DebugErrorHandler);
  3653. smalltalk.addMethod(
  3654. unescape('_initialize'),
  3655. smalltalk.method({
  3656. selector: unescape('initialize'),
  3657. category: 'initialization',
  3658. fn: function (){
  3659. var self=this;
  3660. smalltalk.send(self, "_register", []);
  3661. return self;},
  3662. args: [],
  3663. source: unescape('initialize%0A%09self%20register'),
  3664. messageSends: ["register"],
  3665. referencedClasses: []
  3666. }),
  3667. smalltalk.DebugErrorHandler.klass);
  3668. smalltalk.addClass('ProgressBar', smalltalk.TabWidget, ['percent', 'progressDiv', 'div'], 'IDE');
  3669. smalltalk.addMethod(
  3670. unescape('_percent'),
  3671. smalltalk.method({
  3672. selector: unescape('percent'),
  3673. category: 'accessing',
  3674. fn: function (){
  3675. var self=this;
  3676. return (($receiver = self['@percent']) == nil || $receiver == undefined) ? (function(){return (0);})() : $receiver;
  3677. return self;},
  3678. args: [],
  3679. source: unescape('percent%0A%09%5Epercent%20ifNil%3A%20%5B0%5D'),
  3680. messageSends: ["ifNil:"],
  3681. referencedClasses: []
  3682. }),
  3683. smalltalk.ProgressBar);
  3684. smalltalk.addMethod(
  3685. unescape('_percent_'),
  3686. smalltalk.method({
  3687. selector: unescape('percent%3A'),
  3688. category: 'accessing',
  3689. fn: function (aNumber){
  3690. var self=this;
  3691. self['@percent']=aNumber;
  3692. return self;},
  3693. args: ["aNumber"],
  3694. source: unescape('percent%3A%20aNumber%0A%09percent%20%3A%3D%20aNumber'),
  3695. messageSends: [],
  3696. referencedClasses: []
  3697. }),
  3698. smalltalk.ProgressBar);
  3699. smalltalk.addMethod(
  3700. unescape('_renderOn_'),
  3701. smalltalk.method({
  3702. selector: unescape('renderOn%3A'),
  3703. category: 'rendering',
  3704. fn: function (html){
  3705. var self=this;
  3706. self['@div']=(function($rec){smalltalk.send($rec, "_class_", ["progress_bar"]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(html, "_div", []));
  3707. smalltalk.send(self, "_renderProgressBar", []);
  3708. return self;},
  3709. args: ["html"],
  3710. 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'),
  3711. messageSends: ["class:", "yourself", "div", "renderProgressBar"],
  3712. referencedClasses: []
  3713. }),
  3714. smalltalk.ProgressBar);
  3715. smalltalk.addMethod(
  3716. unescape('_renderProgressBar'),
  3717. smalltalk.method({
  3718. selector: unescape('renderProgressBar'),
  3719. category: 'rendering',
  3720. fn: function (){
  3721. var self=this;
  3722. 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", []));})]);
  3723. return self;},
  3724. args: [],
  3725. 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'),
  3726. messageSends: ["contents:", "class:", "style:", unescape("%2C"), "asString", "percent", "div"],
  3727. referencedClasses: []
  3728. }),
  3729. smalltalk.ProgressBar);
  3730. smalltalk.addMethod(
  3731. unescape('_updatePercent_'),
  3732. smalltalk.method({
  3733. selector: unescape('updatePercent%3A'),
  3734. category: 'updating',
  3735. fn: function (aNumber){
  3736. var self=this;
  3737. smalltalk.send(self, "_percent_", [aNumber]);
  3738. smalltalk.send(self, "_renderProgressBar", []);
  3739. return self;},
  3740. args: ["aNumber"],
  3741. source: unescape('updatePercent%3A%20aNumber%0A%09self%20percent%3A%20aNumber.%0A%09self%20renderProgressBar'),
  3742. messageSends: ["percent:", "renderProgressBar"],
  3743. referencedClasses: []
  3744. }),
  3745. smalltalk.ProgressBar);
  3746. smalltalk.addClass('TestRunner', smalltalk.TabWidget, ['selectedCategories', 'packagesList', 'selectedClasses', 'classesList', 'selectedMethods', 'progressBar', 'methodsList', 'result', 'statusDiv'], 'IDE');
  3747. smalltalk.addMethod(
  3748. unescape('_label'),
  3749. smalltalk.method({
  3750. selector: unescape('label'),
  3751. category: 'accessing',
  3752. fn: function (){
  3753. var self=this;
  3754. return "SUnit";
  3755. return self;},
  3756. args: [],
  3757. source: unescape('label%0A%20%20%20%20%5E%27SUnit%27'),
  3758. messageSends: [],
  3759. referencedClasses: []
  3760. }),
  3761. smalltalk.TestRunner);
  3762. smalltalk.addMethod(
  3763. unescape('_packages'),
  3764. smalltalk.method({
  3765. selector: unescape('packages'),
  3766. category: 'accessing',
  3767. fn: function (){
  3768. var self=this;
  3769. var packages=nil;
  3770. packages=smalltalk.send((smalltalk.Array || Array), "_new", []);
  3771. 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", [])]);})]));})]);
  3772. return smalltalk.send(packages, "_sort", []);
  3773. return self;},
  3774. args: [],
  3775. 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'),
  3776. messageSends: ["new", "do:", "allClasses", "ifFalse:", "includes:", "category", "add:", "sort"],
  3777. referencedClasses: ["Array"]
  3778. }),
  3779. smalltalk.TestRunner);
  3780. smalltalk.addMethod(
  3781. unescape('_classes'),
  3782. smalltalk.method({
  3783. selector: unescape('classes'),
  3784. category: 'accessing',
  3785. fn: function (){
  3786. var self=this;
  3787. 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", [])]));})]);
  3788. return self;},
  3789. args: [],
  3790. 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'),
  3791. messageSends: ["sort:", "select:", "allClasses", "includes:", "selectedCategories", "category", unescape("%3E"), "name"],
  3792. referencedClasses: []
  3793. }),
  3794. smalltalk.TestRunner);
  3795. smalltalk.addMethod(
  3796. unescape('_selectedCategories'),
  3797. smalltalk.method({
  3798. selector: unescape('selectedCategories'),
  3799. category: 'accessing',
  3800. fn: function (){
  3801. var self=this;
  3802. return (($receiver = self['@selectedCategories']) == nil || $receiver == undefined) ? (function(){return self['@selectedCategories']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  3803. return self;},
  3804. args: [],
  3805. source: unescape('selectedCategories%0A%09%5EselectedCategories%20ifNil%3A%20%5BselectedCategories%20%3A%3D%20Array%20new%5D'),
  3806. messageSends: ["ifNil:", "new"],
  3807. referencedClasses: ["Array"]
  3808. }),
  3809. smalltalk.TestRunner);
  3810. smalltalk.addMethod(
  3811. unescape('_allClasses'),
  3812. smalltalk.method({
  3813. selector: unescape('allClasses'),
  3814. category: 'accessing',
  3815. fn: function (){
  3816. var self=this;
  3817. return smalltalk.send((smalltalk.TestCase || TestCase), "_allSubclasses", []);
  3818. return self;},
  3819. args: [],
  3820. source: unescape('allClasses%0A%09%5ETestCase%20allSubclasses'),
  3821. messageSends: ["allSubclasses"],
  3822. referencedClasses: ["TestCase"]
  3823. }),
  3824. smalltalk.TestRunner);
  3825. smalltalk.addMethod(
  3826. unescape('_selectedClasses'),
  3827. smalltalk.method({
  3828. selector: unescape('selectedClasses'),
  3829. category: 'accessing',
  3830. fn: function (){
  3831. var self=this;
  3832. return (($receiver = self['@selectedClasses']) == nil || $receiver == undefined) ? (function(){return self['@selectedClasses']=smalltalk.send((smalltalk.Array || Array), "_new", []);})() : $receiver;
  3833. return self;},
  3834. args: [],
  3835. source: unescape('selectedClasses%0A%09%5EselectedClasses%20%20ifNil%3A%20%5BselectedClasses%20%3A%3D%20Array%20new%5D'),
  3836. messageSends: ["ifNil:", "new"],
  3837. referencedClasses: ["Array"]
  3838. }),
  3839. smalltalk.TestRunner);
  3840. smalltalk.addMethod(
  3841. unescape('_progressBar'),
  3842. smalltalk.method({
  3843. selector: unescape('progressBar'),
  3844. category: 'accessing',
  3845. fn: function (){
  3846. var self=this;
  3847. return (($receiver = self['@progressBar']) == nil || $receiver == undefined) ? (function(){return self['@progressBar']=smalltalk.send((smalltalk.ProgressBar || ProgressBar), "_new", []);})() : $receiver;
  3848. return self;},
  3849. args: [],
  3850. source: unescape('progressBar%0A%09%5EprogressBar%20ifNil%3A%20%5BprogressBar%20%3A%3D%20ProgressBar%20new%5D'),
  3851. messageSends: ["ifNil:", "new"],
  3852. referencedClasses: ["ProgressBar"]
  3853. }),
  3854. smalltalk.TestRunner);
  3855. smalltalk.addMethod(
  3856. unescape('_statusInfo'),
  3857. smalltalk.method({
  3858. selector: unescape('statusInfo'),
  3859. category: 'accessing',
  3860. fn: function (){
  3861. var self=this;
  3862. 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", [])]);
  3863. return self;},
  3864. args: [],
  3865. source: unescape('statusInfo%0A%09%5Eself%20printTotal%2C%20self%20printPasses%2C%20self%20printErrors%2C%20self%20printFailures'),
  3866. messageSends: [unescape("%2C"), "printTotal", "printPasses", "printErrors", "printFailures"],
  3867. referencedClasses: []
  3868. }),
  3869. smalltalk.TestRunner);
  3870. smalltalk.addMethod(
  3871. unescape('_result'),
  3872. smalltalk.method({
  3873. selector: unescape('result'),
  3874. category: 'accessing',
  3875. fn: function (){
  3876. var self=this;
  3877. return self['@result'];
  3878. return self;},
  3879. args: [],
  3880. source: unescape('result%0A%09%5Eresult'),
  3881. messageSends: [],
  3882. referencedClasses: []
  3883. }),
  3884. smalltalk.TestRunner);
  3885. smalltalk.addMethod(
  3886. unescape('_testCases'),
  3887. smalltalk.method({
  3888. selector: unescape('testCases'),
  3889. category: 'accessing',
  3890. fn: function (){
  3891. var self=this;
  3892. var testCases=nil;
  3893. testCases=[];
  3894. smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_do_", [(function(each){return smalltalk.send(testCases, "_addAll_", [smalltalk.send(each, "_buildSuite", [])]);})]);
  3895. return testCases;
  3896. return self;},
  3897. args: [],
  3898. 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'),
  3899. messageSends: ["do:", "selectedClasses", "addAll:", "buildSuite"],
  3900. referencedClasses: []
  3901. }),
  3902. smalltalk.TestRunner);
  3903. smalltalk.addMethod(
  3904. unescape('_selectAllCategories'),
  3905. smalltalk.method({
  3906. selector: unescape('selectAllCategories'),
  3907. category: 'actions',
  3908. fn: function (){
  3909. var self=this;
  3910. 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]);})]));})]);
  3911. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  3912. return self;},
  3913. args: [],
  3914. 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'),
  3915. messageSends: ["do:", "packages", "ifFalse:", "includes:", "add:", "selectedCategories", "updateCategoriesList", "updateClassesList"],
  3916. referencedClasses: []
  3917. }),
  3918. smalltalk.TestRunner);
  3919. smalltalk.addMethod(
  3920. unescape('_toggleCategory_'),
  3921. smalltalk.method({
  3922. selector: unescape('toggleCategory%3A'),
  3923. category: 'actions',
  3924. fn: function (aCategory){
  3925. var self=this;
  3926. ((($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]);})]));
  3927. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  3928. return self;},
  3929. args: ["aCategory"],
  3930. 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'),
  3931. messageSends: ["ifFalse:ifTrue:", "isSelectedCategory:", "add:", "remove:", "updateCategoriesList", "updateClassesList"],
  3932. referencedClasses: []
  3933. }),
  3934. smalltalk.TestRunner);
  3935. smalltalk.addMethod(
  3936. unescape('_toggleClass_'),
  3937. smalltalk.method({
  3938. selector: unescape('toggleClass%3A'),
  3939. category: 'actions',
  3940. fn: function (aClass){
  3941. var self=this;
  3942. ((($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]);})]));
  3943. smalltalk.send(self, "_updateClassesList", []);
  3944. return self;},
  3945. args: ["aClass"],
  3946. 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'),
  3947. messageSends: ["ifFalse:ifTrue:", "isSelectedClass:", "add:", "remove:", "updateClassesList"],
  3948. referencedClasses: []
  3949. }),
  3950. smalltalk.TestRunner);
  3951. smalltalk.addMethod(
  3952. unescape('_selectAllClasses'),
  3953. smalltalk.method({
  3954. selector: unescape('selectAllClasses'),
  3955. category: 'actions',
  3956. fn: function (){
  3957. var self=this;
  3958. 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]);})]));})]);
  3959. (function($rec){smalltalk.send($rec, "_updateCategoriesList", []);return smalltalk.send($rec, "_updateClassesList", []);})(self);
  3960. return self;},
  3961. args: [],
  3962. 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'),
  3963. messageSends: ["do:", "classes", "ifFalse:", "includes:", "add:", "selectedClasses", "updateCategoriesList", "updateClassesList"],
  3964. referencedClasses: []
  3965. }),
  3966. smalltalk.TestRunner);
  3967. smalltalk.addMethod(
  3968. unescape('_run_'),
  3969. smalltalk.method({
  3970. selector: unescape('run%3A'),
  3971. category: 'actions',
  3972. fn: function (aCollection){
  3973. var self=this;
  3974. self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []);
  3975. (function($rec){smalltalk.send($rec, "_updateStatusDiv", []);return smalltalk.send($rec, "_updateMethodsList", []);})(self);
  3976. smalltalk.send(smalltalk.send(self, "_progressBar", []), "_updatePercent_", [(0)]);
  3977. smalltalk.send(self['@result'], "_total_", [smalltalk.send(aCollection, "_size", [])]);
  3978. 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)]);})]);
  3979. return self;},
  3980. args: ["aCollection"],
  3981. 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.'),
  3982. messageSends: ["new", "updateStatusDiv", "updateMethodsList", "updatePercent:", "progressBar", "total:", "size", "do:", "valueWithTimeout:", "runCaseFor:", unescape("*"), unescape("/"), "runs", "total"],
  3983. referencedClasses: ["TestResult"]
  3984. }),
  3985. smalltalk.TestRunner);
  3986. smalltalk.addMethod(
  3987. unescape('_performFailure_'),
  3988. smalltalk.method({
  3989. selector: unescape('performFailure%3A'),
  3990. category: 'actions',
  3991. fn: function (aTestCase){
  3992. var self=this;
  3993. smalltalk.send(aTestCase, "_perform_", [smalltalk.send(aTestCase, "_selector", [])]);
  3994. return self;},
  3995. args: ["aTestCase"],
  3996. source: unescape('performFailure%3A%20aTestCase%0A%09aTestCase%20perform%3A%20aTestCase%20selector'),
  3997. messageSends: ["perform:", "selector"],
  3998. referencedClasses: []
  3999. }),
  4000. smalltalk.TestRunner);
  4001. smalltalk.addMethod(
  4002. unescape('_initialize'),
  4003. smalltalk.method({
  4004. selector: unescape('initialize'),
  4005. category: 'initialization',
  4006. fn: function (){
  4007. var self=this;
  4008. smalltalk.send(self, "_initialize", [], smalltalk.TabWidget);
  4009. self['@result']=smalltalk.send((smalltalk.TestResult || TestResult), "_new", []);
  4010. return self;},
  4011. args: [],
  4012. source: unescape('initialize%0A%09super%20initialize.%0A%09result%20%3A%3D%20TestResult%20new'),
  4013. messageSends: ["initialize", "new"],
  4014. referencedClasses: ["TestResult"]
  4015. }),
  4016. smalltalk.TestRunner);
  4017. smalltalk.addMethod(
  4018. unescape('_printErrors'),
  4019. smalltalk.method({
  4020. selector: unescape('printErrors'),
  4021. category: 'printing',
  4022. fn: function (){
  4023. var self=this;
  4024. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_errors", []), "_size", []), "_asString", []), "__comma", [unescape("%20errors%2C%20")]);
  4025. return self;},
  4026. args: [],
  4027. source: unescape('printErrors%0A%09%5Eself%20result%20errors%20size%20asString%20%2C%20%27%20errors%2C%20%27'),
  4028. messageSends: [unescape("%2C"), "asString", "size", "errors", "result"],
  4029. referencedClasses: []
  4030. }),
  4031. smalltalk.TestRunner);
  4032. smalltalk.addMethod(
  4033. unescape('_printFailures'),
  4034. smalltalk.method({
  4035. selector: unescape('printFailures'),
  4036. category: 'printing',
  4037. fn: function (){
  4038. var self=this;
  4039. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_failures", []), "_size", []), "_asString", []), "__comma", [" failures"]);
  4040. return self;},
  4041. args: [],
  4042. source: unescape('printFailures%0A%09%5Eself%20result%20failures%20size%20asString%2C%20%27%20failures%27'),
  4043. messageSends: [unescape("%2C"), "asString", "size", "failures", "result"],
  4044. referencedClasses: []
  4045. }),
  4046. smalltalk.TestRunner);
  4047. smalltalk.addMethod(
  4048. unescape('_printPasses'),
  4049. smalltalk.method({
  4050. selector: unescape('printPasses'),
  4051. category: 'printing',
  4052. fn: function (){
  4053. var self=this;
  4054. 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")]);
  4055. return self;},
  4056. args: [],
  4057. 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'),
  4058. messageSends: [unescape("%2C"), "asString", unescape("-"), "total", "result", "size", "errors", "failures"],
  4059. referencedClasses: []
  4060. }),
  4061. smalltalk.TestRunner);
  4062. smalltalk.addMethod(
  4063. unescape('_printTotal'),
  4064. smalltalk.method({
  4065. selector: unescape('printTotal'),
  4066. category: 'printing',
  4067. fn: function (){
  4068. var self=this;
  4069. return smalltalk.send(smalltalk.send(smalltalk.send(smalltalk.send(self, "_result", []), "_total", []), "_asString", []), "__comma", [unescape("%20runs%2C%20")]);
  4070. return self;},
  4071. args: [],
  4072. source: unescape('printTotal%0A%09%5Eself%20result%20total%20asString%2C%20%27%20runs%2C%20%27'),
  4073. messageSends: [unescape("%2C"), "asString", "total", "result"],
  4074. referencedClasses: []
  4075. }),
  4076. smalltalk.TestRunner);
  4077. smalltalk.addMethod(
  4078. unescape('_renderBoxOn_'),
  4079. smalltalk.method({
  4080. selector: unescape('renderBoxOn%3A'),
  4081. category: 'rendering',
  4082. fn: function (html){
  4083. var self=this;
  4084. (function($rec){smalltalk.send($rec, "_renderCategoriesOn_", [html]);smalltalk.send($rec, "_renderClassesOn_", [html]);return smalltalk.send($rec, "_renderResultsOn_", [html]);})(self);
  4085. return self;},
  4086. args: ["html"],
  4087. 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'),
  4088. messageSends: ["renderCategoriesOn:", "renderClassesOn:", "renderResultsOn:"],
  4089. referencedClasses: []
  4090. }),
  4091. smalltalk.TestRunner);
  4092. smalltalk.addMethod(
  4093. unescape('_renderButtonsOn_'),
  4094. smalltalk.method({
  4095. selector: unescape('renderButtonsOn%3A'),
  4096. category: 'rendering',
  4097. fn: function (html){
  4098. var self=this;
  4099. (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", []));
  4100. return self;},
  4101. args: ["html"],
  4102. 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'),
  4103. messageSends: ["with:", "onClick:", "run:", "testCases", "button"],
  4104. referencedClasses: []
  4105. }),
  4106. smalltalk.TestRunner);
  4107. smalltalk.addMethod(
  4108. unescape('_renderCategoriesOn_'),
  4109. smalltalk.method({
  4110. selector: unescape('renderCategoriesOn%3A'),
  4111. category: 'rendering',
  4112. fn: function (html){
  4113. var self=this;
  4114. self['@packagesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit packages"]);
  4115. smalltalk.send(self, "_updateCategoriesList", []);
  4116. return self;},
  4117. args: ["html"],
  4118. source: unescape('renderCategoriesOn%3A%20html%0A%09packagesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20packages%27.%0A%09self%20updateCategoriesList'),
  4119. messageSends: ["class:", "ul", "updateCategoriesList"],
  4120. referencedClasses: []
  4121. }),
  4122. smalltalk.TestRunner);
  4123. smalltalk.addMethod(
  4124. unescape('_renderClassesOn_'),
  4125. smalltalk.method({
  4126. selector: unescape('renderClassesOn%3A'),
  4127. category: 'rendering',
  4128. fn: function (html){
  4129. var self=this;
  4130. self['@classesList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit classes"]);
  4131. smalltalk.send(self, "_updateClassesList", []);
  4132. return self;},
  4133. args: ["html"],
  4134. source: unescape('renderClassesOn%3A%20html%0A%09classesList%20%3A%3D%20html%20ul%20class%3A%20%27jt_column%20sunit%20classes%27.%0A%09self%20updateClassesList'),
  4135. messageSends: ["class:", "ul", "updateClassesList"],
  4136. referencedClasses: []
  4137. }),
  4138. smalltalk.TestRunner);
  4139. smalltalk.addMethod(
  4140. unescape('_renderResultsOn_'),
  4141. smalltalk.method({
  4142. selector: unescape('renderResultsOn%3A'),
  4143. category: 'rendering',
  4144. fn: function (html){
  4145. var self=this;
  4146. self['@statusDiv']=smalltalk.send(html, "_div", []);
  4147. smalltalk.send(html, "_with_", [smalltalk.send(self, "_progressBar", [])]);
  4148. self['@methodsList']=smalltalk.send(smalltalk.send(html, "_ul", []), "_class_", ["jt_column sunit results"]);
  4149. smalltalk.send(self, "_updateMethodsList", []);
  4150. smalltalk.send(self, "_updateStatusDiv", []);
  4151. return self;},
  4152. args: ["html"],
  4153. 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'),
  4154. messageSends: ["div", "with:", "progressBar", "class:", "ul", "updateMethodsList", "updateStatusDiv"],
  4155. referencedClasses: []
  4156. }),
  4157. smalltalk.TestRunner);
  4158. smalltalk.addMethod(
  4159. unescape('_renderFailuresOn_'),
  4160. smalltalk.method({
  4161. selector: unescape('renderFailuresOn%3A'),
  4162. category: 'rendering',
  4163. fn: function (html){
  4164. var self=this;
  4165. 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", []));})]);
  4166. return self;},
  4167. args: ["html"],
  4168. 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'),
  4169. messageSends: ["do:", "failures", "result", "class:", "with:", unescape("%2C"), "name", "class", "selector", "onClick:", "performFailure:", "li"],
  4170. referencedClasses: []
  4171. }),
  4172. smalltalk.TestRunner);
  4173. smalltalk.addMethod(
  4174. unescape('_renderErrorsOn_'),
  4175. smalltalk.method({
  4176. selector: unescape('renderErrorsOn%3A'),
  4177. category: 'rendering',
  4178. fn: function (html){
  4179. var self=this;
  4180. 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", []));})]);
  4181. return self;},
  4182. args: ["html"],
  4183. 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'),
  4184. messageSends: ["do:", "errors", "result", "class:", "with:", unescape("%2C"), "name", "class", "selector", "onClick:", "performFailure:", "li"],
  4185. referencedClasses: []
  4186. }),
  4187. smalltalk.TestRunner);
  4188. smalltalk.addMethod(
  4189. unescape('_isSelectedClass_'),
  4190. smalltalk.method({
  4191. selector: unescape('isSelectedClass%3A'),
  4192. category: 'testing',
  4193. fn: function (aClass){
  4194. var self=this;
  4195. return smalltalk.send(smalltalk.send(self, "_selectedClasses", []), "_includes_", [aClass]);
  4196. return self;},
  4197. args: ["aClass"],
  4198. source: unescape('isSelectedClass%3A%20aClass%0A%09%5E%28self%20selectedClasses%20includes%3A%20aClass%29'),
  4199. messageSends: ["includes:", "selectedClasses"],
  4200. referencedClasses: []
  4201. }),
  4202. smalltalk.TestRunner);
  4203. smalltalk.addMethod(
  4204. unescape('_isSelectedCategory_'),
  4205. smalltalk.method({
  4206. selector: unescape('isSelectedCategory%3A'),
  4207. category: 'testing',
  4208. fn: function (aCategory){
  4209. var self=this;
  4210. return smalltalk.send(smalltalk.send(self, "_selectedCategories", []), "_includes_", [aCategory]);
  4211. return self;},
  4212. args: ["aCategory"],
  4213. source: unescape('isSelectedCategory%3A%20aCategory%0A%09%5E%28self%20selectedCategories%20includes%3A%20aCategory%29'),
  4214. messageSends: ["includes:", "selectedCategories"],
  4215. referencedClasses: []
  4216. }),
  4217. smalltalk.TestRunner);
  4218. smalltalk.addMethod(
  4219. unescape('_updateCategoriesList'),
  4220. smalltalk.method({
  4221. selector: unescape('updateCategoriesList'),
  4222. category: 'updating',
  4223. fn: function (){
  4224. var self=this;
  4225. 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;
  4226. 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);})]);})]);
  4227. return self;},
  4228. args: [],
  4229. 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'),
  4230. messageSends: ["contents:", "class:", "with:", "onClick:", "selectAllCategories", "li", "do:", "packages", "ifTrue:", "includes:", "selectedCategories", "toggleCategory:"],
  4231. referencedClasses: []
  4232. }),
  4233. smalltalk.TestRunner);
  4234. smalltalk.addMethod(
  4235. unescape('_updateClassesList'),
  4236. smalltalk.method({
  4237. selector: unescape('updateClassesList'),
  4238. category: 'updating',
  4239. fn: function (){
  4240. var self=this;
  4241. 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;
  4242. 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);})]);})]);
  4243. return self;},
  4244. args: [],
  4245. 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'),
  4246. messageSends: ["contents:", "ifFalse:", "isEmpty", "selectedCategories", "class:", "with:", "onClick:", "selectAllClasses", "li", "do:", "classes", "ifTrue:", "includes:", "selectedClasses", "name", "toggleClass:"],
  4247. referencedClasses: []
  4248. }),
  4249. smalltalk.TestRunner);
  4250. smalltalk.addMethod(
  4251. unescape('_updateMethodsList'),
  4252. smalltalk.method({
  4253. selector: unescape('updateMethodsList'),
  4254. category: 'updating',
  4255. fn: function (){
  4256. var self=this;
  4257. smalltalk.send(self['@methodsList'], "_contents_", [(function(html){smalltalk.send(self, "_renderErrorsOn_", [html]);return smalltalk.send(self, "_renderFailuresOn_", [html]);})]);
  4258. return self;},
  4259. args: [],
  4260. 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'),
  4261. messageSends: ["contents:", "renderErrorsOn:", "renderFailuresOn:"],
  4262. referencedClasses: []
  4263. }),
  4264. smalltalk.TestRunner);
  4265. smalltalk.addMethod(
  4266. unescape('_updateStatusDiv'),
  4267. smalltalk.method({
  4268. selector: unescape('updateStatusDiv'),
  4269. category: 'updating',
  4270. fn: function (){
  4271. var self=this;
  4272. smalltalk.send(self['@statusDiv'], "_class_", [smalltalk.send("sunit status ", "__comma", [smalltalk.send(self['@result'], "_status", [])])]);
  4273. smalltalk.send(self['@statusDiv'], "_contents_", [(function(html){return smalltalk.send(smalltalk.send(html, "_span", []), "_with_", [smalltalk.send(self, "_statusInfo", [])]);})]);
  4274. return self;},
  4275. args: [],
  4276. 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'),
  4277. messageSends: ["class:", unescape("%2C"), "status", "contents:", "with:", "span", "statusInfo"],
  4278. referencedClasses: []
  4279. }),
  4280. smalltalk.TestRunner);
  4281. smalltalk.addClass('IDETranscript', smalltalk.TabWidget, ['textarea'], 'IDE');
  4282. smalltalk.addMethod(
  4283. unescape('_label'),
  4284. smalltalk.method({
  4285. selector: unescape('label'),
  4286. category: 'accessing',
  4287. fn: function (){
  4288. var self=this;
  4289. return "Transcript";
  4290. return self;},
  4291. args: [],
  4292. source: unescape('label%0A%20%20%20%20%5E%27Transcript%27'),
  4293. messageSends: [],
  4294. referencedClasses: []
  4295. }),
  4296. smalltalk.IDETranscript);
  4297. smalltalk.addMethod(
  4298. unescape('_clear'),
  4299. smalltalk.method({
  4300. selector: unescape('clear'),
  4301. category: 'actions',
  4302. fn: function (){
  4303. var self=this;
  4304. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [""]);
  4305. return self;},
  4306. args: [],
  4307. source: unescape('clear%0A%20%20%20%20textarea%20asJQuery%20val%3A%20%27%27'),
  4308. messageSends: ["val:", "asJQuery"],
  4309. referencedClasses: []
  4310. }),
  4311. smalltalk.IDETranscript);
  4312. smalltalk.addMethod(
  4313. unescape('_cr'),
  4314. smalltalk.method({
  4315. selector: unescape('cr'),
  4316. category: 'actions',
  4317. fn: function (){
  4318. var self=this;
  4319. 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", [])])]);
  4320. return self;},
  4321. args: [],
  4322. source: unescape('cr%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20String%20cr.'),
  4323. messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "cr"],
  4324. referencedClasses: ["String"]
  4325. }),
  4326. smalltalk.IDETranscript);
  4327. smalltalk.addMethod(
  4328. unescape('_show_'),
  4329. smalltalk.method({
  4330. selector: unescape('show%3A'),
  4331. category: 'actions',
  4332. fn: function (anObject){
  4333. var self=this;
  4334. smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val_", [smalltalk.send(smalltalk.send(smalltalk.send(self['@textarea'], "_asJQuery", []), "_val", []), "__comma", [smalltalk.send(anObject, "_asString", [])])]);
  4335. return self;},
  4336. args: ["anObject"],
  4337. source: unescape('show%3A%20anObject%0A%20%20%20%20textarea%20asJQuery%20val%3A%20textarea%20asJQuery%20val%2C%20anObject%20asString.'),
  4338. messageSends: ["val:", "asJQuery", unescape("%2C"), "val", "asString"],
  4339. referencedClasses: []
  4340. }),
  4341. smalltalk.IDETranscript);
  4342. smalltalk.addMethod(
  4343. unescape('_open'),
  4344. smalltalk.method({
  4345. selector: unescape('open'),
  4346. category: 'actions',
  4347. fn: function (){
  4348. var self=this;
  4349. (function($rec){smalltalk.send($rec, "_open", []);return smalltalk.send($rec, "_selectTab_", [self]);})(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []));
  4350. return self;},
  4351. args: [],
  4352. source: unescape('open%0A%20%20%20%20TabManager%20current%20%0A%09open%3B%0A%09selectTab%3A%20self'),
  4353. messageSends: ["open", "selectTab:", "current"],
  4354. referencedClasses: ["TabManager"]
  4355. }),
  4356. smalltalk.IDETranscript);
  4357. smalltalk.addMethod(
  4358. unescape('_renderBoxOn_'),
  4359. smalltalk.method({
  4360. selector: unescape('renderBoxOn%3A'),
  4361. category: 'rendering',
  4362. fn: function (html){
  4363. var self=this;
  4364. self['@textarea']=smalltalk.send(html, "_textarea", []);
  4365. (function($rec){smalltalk.send($rec, "_class_", ["jt_transcript"]);return smalltalk.send($rec, "_at_put_", ["spellcheck", "false"]);})(self['@textarea']);
  4366. return self;},
  4367. args: ["html"],
  4368. 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'),
  4369. messageSends: ["textarea", "class:", "at:put:"],
  4370. referencedClasses: []
  4371. }),
  4372. smalltalk.IDETranscript);
  4373. smalltalk.addMethod(
  4374. unescape('_renderButtonsOn_'),
  4375. smalltalk.method({
  4376. selector: unescape('renderButtonsOn%3A'),
  4377. category: 'rendering',
  4378. fn: function (html){
  4379. var self=this;
  4380. (function($rec){smalltalk.send($rec, "_with_", ["Clear transcript"]);return smalltalk.send($rec, "_onClick_", [(function(){return smalltalk.send(self, "_clear", []);})]);})(smalltalk.send(html, "_button", []));
  4381. return self;},
  4382. args: ["html"],
  4383. 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'),
  4384. messageSends: ["with:", "onClick:", "clear", "button"],
  4385. referencedClasses: []
  4386. }),
  4387. smalltalk.IDETranscript);
  4388. smalltalk.IDETranscript.klass.iVarNames = ['current'];
  4389. smalltalk.addMethod(
  4390. unescape('_initialize'),
  4391. smalltalk.method({
  4392. selector: unescape('initialize'),
  4393. category: 'initialization',
  4394. fn: function (){
  4395. var self=this;
  4396. smalltalk.send((smalltalk.Transcript || Transcript), "_register_", [smalltalk.send(self, "_current", [])]);
  4397. return self;},
  4398. args: [],
  4399. source: unescape('initialize%0A%09Transcript%20register%3A%20self%20current'),
  4400. messageSends: ["register:", "current"],
  4401. referencedClasses: ["Transcript"]
  4402. }),
  4403. smalltalk.IDETranscript.klass);
  4404. smalltalk.addMethod(
  4405. unescape('_new'),
  4406. smalltalk.method({
  4407. selector: unescape('new'),
  4408. category: 'instance creation',
  4409. fn: function (){
  4410. var self=this;
  4411. smalltalk.send(self, "_shouldNotImplement", []);
  4412. return self;},
  4413. args: [],
  4414. source: unescape('new%0A%20%20%20%20self%20shouldNotImplement'),
  4415. messageSends: ["shouldNotImplement"],
  4416. referencedClasses: []
  4417. }),
  4418. smalltalk.IDETranscript.klass);
  4419. smalltalk.addMethod(
  4420. unescape('_open'),
  4421. smalltalk.method({
  4422. selector: unescape('open'),
  4423. category: 'instance creation',
  4424. fn: function (){
  4425. var self=this;
  4426. (function($rec){smalltalk.send($rec, "_open", []);return smalltalk.send($rec, "_selectTab_", [smalltalk.send(self, "_current", [])]);})(smalltalk.send((smalltalk.TabManager || TabManager), "_current", []));
  4427. return self;},
  4428. args: [],
  4429. source: unescape('open%0A%20%20%20%20TabManager%20current%20%0A%09open%3B%0A%09selectTab%3A%20self%20current'),
  4430. messageSends: ["open", "selectTab:", "current"],
  4431. referencedClasses: ["TabManager"]
  4432. }),
  4433. smalltalk.IDETranscript.klass);
  4434. smalltalk.addMethod(
  4435. unescape('_current'),
  4436. smalltalk.method({
  4437. selector: unescape('current'),
  4438. category: 'instance creation',
  4439. fn: function (){
  4440. var self=this;
  4441. return (($receiver = self['@current']) == nil || $receiver == undefined) ? (function(){return self['@current']=smalltalk.send(self, "_new", [], smalltalk.TabWidget.klass);})() : $receiver;
  4442. return self;},
  4443. args: [],
  4444. source: unescape('current%0A%09%5Ecurrent%20ifNil%3A%20%5Bcurrent%20%3A%3D%20super%20new%5D'),
  4445. messageSends: ["ifNil:", "new"],
  4446. referencedClasses: []
  4447. }),
  4448. smalltalk.IDETranscript.klass);
  4449. smalltalk.addMethod(
  4450. unescape('_inspect'),
  4451. smalltalk.method({
  4452. selector: unescape('inspect'),
  4453. category: '*IDE',
  4454. fn: function (){
  4455. var self=this;
  4456. (function($rec){smalltalk.send($rec, "_inspect_", [self]);return smalltalk.send($rec, "_open", []);})(smalltalk.send((smalltalk.Inspector || Inspector), "_new", []));
  4457. return self;},
  4458. args: [],
  4459. source: unescape('inspect%0A%09Inspector%20new%20%0A%09%09inspect%3A%20self%3B%0A%09%09open'),
  4460. messageSends: ["inspect:", "open", "new"],
  4461. referencedClasses: ["Inspector"]
  4462. }),
  4463. smalltalk.Object);
  4464. smalltalk.addMethod(
  4465. unescape('_inspectOn_'),
  4466. smalltalk.method({
  4467. selector: unescape('inspectOn%3A'),
  4468. category: '*IDE',
  4469. fn: function (anInspector){
  4470. var self=this;
  4471. var variables=nil;
  4472. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  4473. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4474. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_allInstanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  4475. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4476. return self;},
  4477. args: ["anInspector"],
  4478. 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'),
  4479. messageSends: ["new", "at:put:", "do:", "allInstanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  4480. referencedClasses: ["Dictionary"]
  4481. }),
  4482. smalltalk.Object);
  4483. smalltalk.addMethod(
  4484. unescape('_inspectOn_'),
  4485. smalltalk.method({
  4486. selector: unescape('inspectOn%3A'),
  4487. category: '*IDE',
  4488. fn: function (anInspector){
  4489. var self=this;
  4490. var variables=nil;
  4491. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  4492. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4493. smalltalk.send(variables, "_at_put_", [unescape("%23year"), smalltalk.send(self, "_year", [])]);
  4494. smalltalk.send(variables, "_at_put_", [unescape("%23month"), smalltalk.send(self, "_month", [])]);
  4495. smalltalk.send(variables, "_at_put_", [unescape("%23day"), smalltalk.send(self, "_day", [])]);
  4496. smalltalk.send(variables, "_at_put_", [unescape("%23hours"), smalltalk.send(self, "_hours", [])]);
  4497. smalltalk.send(variables, "_at_put_", [unescape("%23minutes"), smalltalk.send(self, "_minutes", [])]);
  4498. smalltalk.send(variables, "_at_put_", [unescape("%23seconds"), smalltalk.send(self, "_seconds", [])]);
  4499. smalltalk.send(variables, "_at_put_", [unescape("%23milliseconds"), smalltalk.send(self, "_milliseconds", [])]);
  4500. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4501. return self;},
  4502. args: ["anInspector"],
  4503. 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'),
  4504. messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
  4505. referencedClasses: ["Dictionary"]
  4506. }),
  4507. smalltalk.Date);
  4508. smalltalk.addMethod(
  4509. unescape('_inspectOn_'),
  4510. smalltalk.method({
  4511. selector: unescape('inspectOn%3A'),
  4512. category: '*IDE',
  4513. fn: function (anInspector){
  4514. var self=this;
  4515. var variables=nil;
  4516. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  4517. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4518. smalltalk.send(self, "_withIndexDo_", [(function(each, i){return smalltalk.send(variables, "_at_put_", [i, each]);})]);
  4519. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4520. return self;},
  4521. args: ["anInspector"],
  4522. 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'),
  4523. messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
  4524. referencedClasses: ["Dictionary"]
  4525. }),
  4526. smalltalk.Collection);
  4527. smalltalk.addMethod(
  4528. unescape('_inspectOn_'),
  4529. smalltalk.method({
  4530. selector: unescape('inspectOn%3A'),
  4531. category: '*IDE',
  4532. fn: function (anInspector){
  4533. var self=this;
  4534. var label=nil;
  4535. smalltalk.send(self, "_inspectOn_", [anInspector], smalltalk.SequenceableCollection);
  4536. ((($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", []);})]));
  4537. smalltalk.send(anInspector, "_setLabel_", [label]);
  4538. return self;},
  4539. args: ["anInspector"],
  4540. 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'),
  4541. messageSends: ["inspectOn:", "ifTrue:ifFalse:", unescape("%3E"), "size", "printString", unescape("%2C"), "copyFrom:to:", "setLabel:"],
  4542. referencedClasses: []
  4543. }),
  4544. smalltalk.String);
  4545. smalltalk.addMethod(
  4546. unescape('_inspectOn_'),
  4547. smalltalk.method({
  4548. selector: unescape('inspectOn%3A'),
  4549. category: '*IDE',
  4550. fn: function (anInspector){
  4551. var self=this;
  4552. var variables=nil;
  4553. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  4554. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4555. smalltalk.send(variables, "_at_put_", [unescape("%23home"), smalltalk.send(self, "_home", [])]);
  4556. smalltalk.send(variables, "_at_put_", [unescape("%23receiver"), smalltalk.send(self, "_receiver", [])]);
  4557. smalltalk.send(variables, "_at_put_", [unescape("%23selector"), smalltalk.send(self, "_selector", [])]);
  4558. smalltalk.send(variables, "_at_put_", [unescape("%23temps"), smalltalk.send(self, "_temps", [])]);
  4559. smalltalk.send(smalltalk.send(smalltalk.send(self, "_class", []), "_instanceVariableNames", []), "_do_", [(function(each){return smalltalk.send(variables, "_at_put_", [each, smalltalk.send(self, "_instVarAt_", [each])]);})]);
  4560. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4561. return self;},
  4562. args: ["anInspector"],
  4563. 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'),
  4564. messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instanceVariableNames", "class", "instVarAt:", "setLabel:", "printString", "setVariables:"],
  4565. referencedClasses: ["Dictionary"]
  4566. }),
  4567. smalltalk.MethodContext);
  4568. smalltalk.addMethod(
  4569. unescape('_inspectOn_'),
  4570. smalltalk.method({
  4571. selector: unescape('inspectOn%3A'),
  4572. category: '*IDE',
  4573. fn: function (anInspector){
  4574. var self=this;
  4575. var variables=nil;
  4576. variables=smalltalk.send((smalltalk.Dictionary || Dictionary), "_new", []);
  4577. smalltalk.send(variables, "_at_put_", [unescape("%23self"), self]);
  4578. smalltalk.send(variables, "_at_put_", [unescape("%23keys"), smalltalk.send(self, "_keys", [])]);
  4579. smalltalk.send(self, "_keysAndValuesDo_", [(function(key, value){return smalltalk.send(variables, "_at_put_", [key, value]);})]);
  4580. (function($rec){smalltalk.send($rec, "_setLabel_", [smalltalk.send(self, "_printString", [])]);return smalltalk.send($rec, "_setVariables_", [variables]);})(anInspector);
  4581. return self;},
  4582. args: ["anInspector"],
  4583. 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'),
  4584. messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
  4585. referencedClasses: ["Dictionary"]
  4586. }),
  4587. smalltalk.Dictionary);