Helios-Core.deploy.js 128 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728
  1. smalltalk.addPackage('Helios-Core');
  2. smalltalk.addClass('HLModel', smalltalk.Object, ['announcer', 'environment'], 'Helios-Core');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "announcer",
  6. fn: function (){
  7. var self=this;
  8. function $Announcer(){return smalltalk.Announcer||(typeof Announcer=="undefined"?nil:Announcer)}
  9. return smalltalk.withContext(function($ctx1) {
  10. var $2,$1;
  11. $2=self["@announcer"];
  12. if(($receiver = $2) == nil || $receiver == undefined){
  13. self["@announcer"]=_st($Announcer())._new();
  14. $1=self["@announcer"];
  15. } else {
  16. $1=$2;
  17. };
  18. return $1;
  19. }, function($ctx1) {$ctx1.fill(self,"announcer",{},smalltalk.HLModel)})},
  20. messageSends: ["ifNil:", "new"]}),
  21. smalltalk.HLModel);
  22. smalltalk.addMethod(
  23. smalltalk.method({
  24. selector: "environment",
  25. fn: function (){
  26. var self=this;
  27. return smalltalk.withContext(function($ctx1) {
  28. var $2,$1;
  29. $2=self["@environment"];
  30. if(($receiver = $2) == nil || $receiver == undefined){
  31. $1=_st(_st(self)._manager())._environment();
  32. } else {
  33. $1=$2;
  34. };
  35. return $1;
  36. }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLModel)})},
  37. messageSends: ["ifNil:", "environment", "manager"]}),
  38. smalltalk.HLModel);
  39. smalltalk.addMethod(
  40. smalltalk.method({
  41. selector: "environment:",
  42. fn: function (anEnvironment){
  43. var self=this;
  44. return smalltalk.withContext(function($ctx1) {
  45. self["@environment"]=anEnvironment;
  46. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment},smalltalk.HLModel)})},
  47. messageSends: []}),
  48. smalltalk.HLModel);
  49. smalltalk.addMethod(
  50. smalltalk.method({
  51. selector: "isBrowserModel",
  52. fn: function (){
  53. var self=this;
  54. return smalltalk.withContext(function($ctx1) {
  55. return false;
  56. }, function($ctx1) {$ctx1.fill(self,"isBrowserModel",{},smalltalk.HLModel)})},
  57. messageSends: []}),
  58. smalltalk.HLModel);
  59. smalltalk.addMethod(
  60. smalltalk.method({
  61. selector: "isReferencesModel",
  62. fn: function (){
  63. var self=this;
  64. return smalltalk.withContext(function($ctx1) {
  65. return false;
  66. }, function($ctx1) {$ctx1.fill(self,"isReferencesModel",{},smalltalk.HLModel)})},
  67. messageSends: []}),
  68. smalltalk.HLModel);
  69. smalltalk.addMethod(
  70. smalltalk.method({
  71. selector: "isToolModel",
  72. fn: function (){
  73. var self=this;
  74. return smalltalk.withContext(function($ctx1) {
  75. return false;
  76. }, function($ctx1) {$ctx1.fill(self,"isToolModel",{},smalltalk.HLModel)})},
  77. messageSends: []}),
  78. smalltalk.HLModel);
  79. smalltalk.addMethod(
  80. smalltalk.method({
  81. selector: "manager",
  82. fn: function (){
  83. var self=this;
  84. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  85. return smalltalk.withContext(function($ctx1) {
  86. var $1;
  87. $1=_st($HLManager())._current();
  88. return $1;
  89. }, function($ctx1) {$ctx1.fill(self,"manager",{},smalltalk.HLModel)})},
  90. messageSends: ["current"]}),
  91. smalltalk.HLModel);
  92. smalltalk.addMethod(
  93. smalltalk.method({
  94. selector: "systemAnnouncer",
  95. fn: function (){
  96. var self=this;
  97. return smalltalk.withContext(function($ctx1) {
  98. var $1;
  99. $1=_st(_st(self)._environment())._systemAnnouncer();
  100. return $1;
  101. }, function($ctx1) {$ctx1.fill(self,"systemAnnouncer",{},smalltalk.HLModel)})},
  102. messageSends: ["systemAnnouncer", "environment"]}),
  103. smalltalk.HLModel);
  104. smalltalk.addMethod(
  105. smalltalk.method({
  106. selector: "withChangesDo:",
  107. fn: function (aBlock){
  108. var self=this;
  109. function $HLChangeForbidden(){return smalltalk.HLChangeForbidden||(typeof HLChangeForbidden=="undefined"?nil:HLChangeForbidden)}
  110. function $HLAboutToChange(){return smalltalk.HLAboutToChange||(typeof HLAboutToChange=="undefined"?nil:HLAboutToChange)}
  111. return smalltalk.withContext(function($ctx1) {
  112. _st((function(){
  113. return smalltalk.withContext(function($ctx2) {
  114. _st(_st(self)._announcer())._announce_(_st(_st($HLAboutToChange())._new())._actionBlock_(aBlock));
  115. return _st(aBlock)._value();
  116. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._on_do_($HLChangeForbidden(),(function(ex){
  117. return smalltalk.withContext(function($ctx2) {
  118. }, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1)})}));
  119. return self}, function($ctx1) {$ctx1.fill(self,"withChangesDo:",{aBlock:aBlock},smalltalk.HLModel)})},
  120. messageSends: ["on:do:", "announce:", "actionBlock:", "new", "announcer", "value"]}),
  121. smalltalk.HLModel);
  122. smalltalk.addClass('HLToolModel', smalltalk.HLModel, ['selectedClass', 'selectedPackage', 'selectedProtocol', 'selectedSelector'], 'Helios-Core');
  123. smalltalk.addMethod(
  124. smalltalk.method({
  125. selector: "addInstVarNamed:",
  126. fn: function (aString){
  127. var self=this;
  128. function $HLInstVarAdded(){return smalltalk.HLInstVarAdded||(typeof HLInstVarAdded=="undefined"?nil:HLInstVarAdded)}
  129. return smalltalk.withContext(function($ctx1) {
  130. var $1,$2;
  131. _st(_st(self)._environment())._addInstVarNamed_to_(aString,_st(self)._selectedClass());
  132. $1=_st($HLInstVarAdded())._new();
  133. _st($1)._theClass_(_st(self)._selectedClass());
  134. _st($1)._variableName_(aString);
  135. $2=_st($1)._yourself();
  136. _st(_st(self)._announcer())._announce_($2);
  137. return self}, function($ctx1) {$ctx1.fill(self,"addInstVarNamed:",{aString:aString},smalltalk.HLToolModel)})},
  138. messageSends: ["addInstVarNamed:to:", "selectedClass", "environment", "announce:", "theClass:", "new", "variableName:", "yourself", "announcer"]}),
  139. smalltalk.HLToolModel);
  140. smalltalk.addMethod(
  141. smalltalk.method({
  142. selector: "allProtocol",
  143. fn: function (){
  144. var self=this;
  145. return smalltalk.withContext(function($ctx1) {
  146. return "-- all --";
  147. }, function($ctx1) {$ctx1.fill(self,"allProtocol",{},smalltalk.HLToolModel)})},
  148. messageSends: []}),
  149. smalltalk.HLToolModel);
  150. smalltalk.addMethod(
  151. smalltalk.method({
  152. selector: "allSelectors",
  153. fn: function (){
  154. var self=this;
  155. return smalltalk.withContext(function($ctx1) {
  156. var $1;
  157. $1=_st(_st(self)._environment())._allSelectors();
  158. return $1;
  159. }, function($ctx1) {$ctx1.fill(self,"allSelectors",{},smalltalk.HLToolModel)})},
  160. messageSends: ["allSelectors", "environment"]}),
  161. smalltalk.HLToolModel);
  162. smalltalk.addMethod(
  163. smalltalk.method({
  164. selector: "availableClassNames",
  165. fn: function (){
  166. var self=this;
  167. return smalltalk.withContext(function($ctx1) {
  168. var $1;
  169. $1=_st(_st(self)._environment())._availableClassNames();
  170. return $1;
  171. }, function($ctx1) {$ctx1.fill(self,"availableClassNames",{},smalltalk.HLToolModel)})},
  172. messageSends: ["availableClassNames", "environment"]}),
  173. smalltalk.HLToolModel);
  174. smalltalk.addMethod(
  175. smalltalk.method({
  176. selector: "availablePackageNames",
  177. fn: function (){
  178. var self=this;
  179. return smalltalk.withContext(function($ctx1) {
  180. var $1;
  181. $1=_st(_st(self)._environment())._availablePackageNames();
  182. return $1;
  183. }, function($ctx1) {$ctx1.fill(self,"availablePackageNames",{},smalltalk.HLToolModel)})},
  184. messageSends: ["availablePackageNames", "environment"]}),
  185. smalltalk.HLToolModel);
  186. smalltalk.addMethod(
  187. smalltalk.method({
  188. selector: "availablePackages",
  189. fn: function (){
  190. var self=this;
  191. return smalltalk.withContext(function($ctx1) {
  192. var $1;
  193. $1=_st(_st(self)._environment())._availablePackageNames();
  194. return $1;
  195. }, function($ctx1) {$ctx1.fill(self,"availablePackages",{},smalltalk.HLToolModel)})},
  196. messageSends: ["availablePackageNames", "environment"]}),
  197. smalltalk.HLToolModel);
  198. smalltalk.addMethod(
  199. smalltalk.method({
  200. selector: "availableProtocols",
  201. fn: function (){
  202. var self=this;
  203. return smalltalk.withContext(function($ctx1) {
  204. var $1;
  205. $1=_st(_st(self)._environment())._availableProtocolsFor_(_st(self)._selectedClass());
  206. return $1;
  207. }, function($ctx1) {$ctx1.fill(self,"availableProtocols",{},smalltalk.HLToolModel)})},
  208. messageSends: ["availableProtocolsFor:", "selectedClass", "environment"]}),
  209. smalltalk.HLToolModel);
  210. smalltalk.addMethod(
  211. smalltalk.method({
  212. selector: "commitPackage",
  213. fn: function (){
  214. var self=this;
  215. return smalltalk.withContext(function($ctx1) {
  216. _st(_st(self)._environment())._commitPackage_(_st(self)._selectedPackage());
  217. return self}, function($ctx1) {$ctx1.fill(self,"commitPackage",{},smalltalk.HLToolModel)})},
  218. messageSends: ["commitPackage:", "selectedPackage", "environment"]}),
  219. smalltalk.HLToolModel);
  220. smalltalk.addMethod(
  221. smalltalk.method({
  222. selector: "compilationProtocol",
  223. fn: function (){
  224. var self=this;
  225. var currentProtocol;
  226. return smalltalk.withContext(function($ctx1) {
  227. var $1,$2,$4,$3;
  228. currentProtocol=_st(self)._selectedProtocol();
  229. $1=currentProtocol;
  230. if(($receiver = $1) == nil || $receiver == undefined){
  231. currentProtocol=_st(self)._unclassifiedProtocol();
  232. currentProtocol;
  233. } else {
  234. $1;
  235. };
  236. $2=_st(self)._selectedMethod();
  237. if(($receiver = $2) == nil || $receiver == undefined){
  238. $2;
  239. } else {
  240. currentProtocol=_st(_st(self)._selectedMethod())._protocol();
  241. currentProtocol;
  242. };
  243. $4=_st(currentProtocol).__eq(_st(self)._allProtocol());
  244. if(smalltalk.assert($4)){
  245. $3=_st(self)._unclassifiedProtocol();
  246. } else {
  247. $3=currentProtocol;
  248. };
  249. return $3;
  250. }, function($ctx1) {$ctx1.fill(self,"compilationProtocol",{currentProtocol:currentProtocol},smalltalk.HLToolModel)})},
  251. messageSends: ["selectedProtocol", "ifNil:", "unclassifiedProtocol", "ifNotNil:", "protocol", "selectedMethod", "ifTrue:ifFalse:", "=", "allProtocol"]}),
  252. smalltalk.HLToolModel);
  253. smalltalk.addMethod(
  254. smalltalk.method({
  255. selector: "compileClassComment:",
  256. fn: function (aString){
  257. var self=this;
  258. return smalltalk.withContext(function($ctx1) {
  259. _st(_st(self)._environment())._compileClassComment_for_(aString,_st(self)._selectedClass());
  260. return self}, function($ctx1) {$ctx1.fill(self,"compileClassComment:",{aString:aString},smalltalk.HLToolModel)})},
  261. messageSends: ["compileClassComment:for:", "selectedClass", "environment"]}),
  262. smalltalk.HLToolModel);
  263. smalltalk.addMethod(
  264. smalltalk.method({
  265. selector: "compileClassDefinition:",
  266. fn: function (aString){
  267. var self=this;
  268. return smalltalk.withContext(function($ctx1) {
  269. _st(_st(self)._environment())._compileClassDefinition_(aString);
  270. return self}, function($ctx1) {$ctx1.fill(self,"compileClassDefinition:",{aString:aString},smalltalk.HLToolModel)})},
  271. messageSends: ["compileClassDefinition:", "environment"]}),
  272. smalltalk.HLToolModel);
  273. smalltalk.addMethod(
  274. smalltalk.method({
  275. selector: "compileMethod:",
  276. fn: function (aString){
  277. var self=this;
  278. var method;
  279. return smalltalk.withContext(function($ctx1) {
  280. _st(self)._withCompileErrorHandling_((function(){
  281. return smalltalk.withContext(function($ctx2) {
  282. method=_st(_st(self)._environment())._compileMethod_for_protocol_(aString,_st(self)._selectedClass(),_st(self)._compilationProtocol());
  283. method;
  284. return _st(self)._selectedMethod_(method);
  285. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  286. return self}, function($ctx1) {$ctx1.fill(self,"compileMethod:",{aString:aString,method:method},smalltalk.HLToolModel)})},
  287. messageSends: ["withCompileErrorHandling:", "compileMethod:for:protocol:", "selectedClass", "compilationProtocol", "environment", "selectedMethod:"]}),
  288. smalltalk.HLToolModel);
  289. smalltalk.addMethod(
  290. smalltalk.method({
  291. selector: "copyClassTo:",
  292. fn: function (aClassName){
  293. var self=this;
  294. return smalltalk.withContext(function($ctx1) {
  295. _st(self)._withChangesDo_((function(){
  296. return smalltalk.withContext(function($ctx2) {
  297. return _st(_st(self)._environment())._copyClass_to_(_st(_st(self)._selectedClass())._theNonMetaClass(),aClassName);
  298. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  299. return self}, function($ctx1) {$ctx1.fill(self,"copyClassTo:",{aClassName:aClassName},smalltalk.HLToolModel)})},
  300. messageSends: ["withChangesDo:", "copyClass:to:", "theNonMetaClass", "selectedClass", "environment"]}),
  301. smalltalk.HLToolModel);
  302. smalltalk.addMethod(
  303. smalltalk.method({
  304. selector: "handleCompileError:",
  305. fn: function (anError){
  306. var self=this;
  307. function $HLCompileErrorRaised(){return smalltalk.HLCompileErrorRaised||(typeof HLCompileErrorRaised=="undefined"?nil:HLCompileErrorRaised)}
  308. return smalltalk.withContext(function($ctx1) {
  309. var $1,$2;
  310. $1=_st($HLCompileErrorRaised())._new();
  311. _st($1)._error_(anError);
  312. $2=_st($1)._yourself();
  313. _st(_st(self)._announcer())._announce_($2);
  314. return self}, function($ctx1) {$ctx1.fill(self,"handleCompileError:",{anError:anError},smalltalk.HLToolModel)})},
  315. messageSends: ["announce:", "error:", "new", "yourself", "announcer"]}),
  316. smalltalk.HLToolModel);
  317. smalltalk.addMethod(
  318. smalltalk.method({
  319. selector: "handleParseError:",
  320. fn: function (anError){
  321. var self=this;
  322. var split,line,column,messageToInsert;
  323. function $HLParseErrorRaised(){return smalltalk.HLParseErrorRaised||(typeof HLParseErrorRaised=="undefined"?nil:HLParseErrorRaised)}
  324. return smalltalk.withContext(function($ctx1) {
  325. var $1,$2;
  326. split=_st(_st(anError)._messageText())._tokenize_(" : ");
  327. messageToInsert=_st(split)._second();
  328. split=_st(_st(split)._first())._copyFrom_to_((21),_st(_st(split)._first())._size());
  329. split=_st(split)._tokenize_(" column ");
  330. line=_st(split)._first();
  331. column=_st(split)._second();
  332. $1=_st($HLParseErrorRaised())._new();
  333. _st($1)._line_(_st(line)._asNumber());
  334. _st($1)._column_(_st(column)._asNumber());
  335. _st($1)._message_(messageToInsert);
  336. _st($1)._error_(anError);
  337. $2=_st($1)._yourself();
  338. _st(_st(self)._announcer())._announce_($2);
  339. return self}, function($ctx1) {$ctx1.fill(self,"handleParseError:",{anError:anError,split:split,line:line,column:column,messageToInsert:messageToInsert},smalltalk.HLToolModel)})},
  340. messageSends: ["tokenize:", "messageText", "second", "copyFrom:to:", "size", "first", "announce:", "line:", "asNumber", "new", "column:", "message:", "error:", "yourself", "announcer"]}),
  341. smalltalk.HLToolModel);
  342. smalltalk.addMethod(
  343. smalltalk.method({
  344. selector: "handleUnkownVariableError:",
  345. fn: function (anError){
  346. var self=this;
  347. function $HLUnknownVariableErrorRaised(){return smalltalk.HLUnknownVariableErrorRaised||(typeof HLUnknownVariableErrorRaised=="undefined"?nil:HLUnknownVariableErrorRaised)}
  348. return smalltalk.withContext(function($ctx1) {
  349. var $1,$2;
  350. $1=_st($HLUnknownVariableErrorRaised())._new();
  351. _st($1)._error_(anError);
  352. $2=_st($1)._yourself();
  353. _st(_st(self)._announcer())._announce_($2);
  354. return self}, function($ctx1) {$ctx1.fill(self,"handleUnkownVariableError:",{anError:anError},smalltalk.HLToolModel)})},
  355. messageSends: ["announce:", "error:", "new", "yourself", "announcer"]}),
  356. smalltalk.HLToolModel);
  357. smalltalk.addMethod(
  358. smalltalk.method({
  359. selector: "isToolModel",
  360. fn: function (){
  361. var self=this;
  362. return smalltalk.withContext(function($ctx1) {
  363. return true;
  364. }, function($ctx1) {$ctx1.fill(self,"isToolModel",{},smalltalk.HLToolModel)})},
  365. messageSends: []}),
  366. smalltalk.HLToolModel);
  367. smalltalk.addMethod(
  368. smalltalk.method({
  369. selector: "moveClassToPackage:",
  370. fn: function (aPackageName){
  371. var self=this;
  372. return smalltalk.withContext(function($ctx1) {
  373. _st(self)._withChangesDo_((function(){
  374. return smalltalk.withContext(function($ctx2) {
  375. return _st(_st(self)._environment())._moveClass_toPackage_(_st(_st(self)._selectedClass())._theNonMetaClass(),aPackageName);
  376. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  377. return self}, function($ctx1) {$ctx1.fill(self,"moveClassToPackage:",{aPackageName:aPackageName},smalltalk.HLToolModel)})},
  378. messageSends: ["withChangesDo:", "moveClass:toPackage:", "theNonMetaClass", "selectedClass", "environment"]}),
  379. smalltalk.HLToolModel);
  380. smalltalk.addMethod(
  381. smalltalk.method({
  382. selector: "moveMethodToClass:",
  383. fn: function (aClassName){
  384. var self=this;
  385. return smalltalk.withContext(function($ctx1) {
  386. _st(self)._withChangesDo_((function(){
  387. return smalltalk.withContext(function($ctx2) {
  388. return _st(_st(self)._environment())._moveMethod_toClass_(_st(self)._selectedMethod(),aClassName);
  389. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  390. return self}, function($ctx1) {$ctx1.fill(self,"moveMethodToClass:",{aClassName:aClassName},smalltalk.HLToolModel)})},
  391. messageSends: ["withChangesDo:", "moveMethod:toClass:", "selectedMethod", "environment"]}),
  392. smalltalk.HLToolModel);
  393. smalltalk.addMethod(
  394. smalltalk.method({
  395. selector: "moveMethodToProtocol:",
  396. fn: function (aProtocol){
  397. var self=this;
  398. return smalltalk.withContext(function($ctx1) {
  399. _st(self)._withChangesDo_((function(){
  400. return smalltalk.withContext(function($ctx2) {
  401. return _st(_st(self)._environment())._moveMethod_toProtocol_(_st(self)._selectedMethod(),aProtocol);
  402. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  403. return self}, function($ctx1) {$ctx1.fill(self,"moveMethodToProtocol:",{aProtocol:aProtocol},smalltalk.HLToolModel)})},
  404. messageSends: ["withChangesDo:", "moveMethod:toProtocol:", "selectedMethod", "environment"]}),
  405. smalltalk.HLToolModel);
  406. smalltalk.addMethod(
  407. smalltalk.method({
  408. selector: "openClassNamed:",
  409. fn: function (aString){
  410. var self=this;
  411. var class_;
  412. return smalltalk.withContext(function($ctx1) {
  413. _st(self)._withChangesDo_((function(){
  414. return smalltalk.withContext(function($ctx2) {
  415. class_=_st(_st(self)._environment())._classNamed_(aString);
  416. class_;
  417. _st(self)._selectedPackage_(_st(class_)._package());
  418. return _st(self)._selectedClass_(class_);
  419. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  420. return self}, function($ctx1) {$ctx1.fill(self,"openClassNamed:",{aString:aString,class_:class_},smalltalk.HLToolModel)})},
  421. messageSends: ["withChangesDo:", "classNamed:", "environment", "selectedPackage:", "package", "selectedClass:"]}),
  422. smalltalk.HLToolModel);
  423. smalltalk.addMethod(
  424. smalltalk.method({
  425. selector: "packages",
  426. fn: function (){
  427. var self=this;
  428. return smalltalk.withContext(function($ctx1) {
  429. var $1;
  430. $1=_st(_st(self)._environment())._packages();
  431. return $1;
  432. }, function($ctx1) {$ctx1.fill(self,"packages",{},smalltalk.HLToolModel)})},
  433. messageSends: ["packages", "environment"]}),
  434. smalltalk.HLToolModel);
  435. smalltalk.addMethod(
  436. smalltalk.method({
  437. selector: "removeClass",
  438. fn: function (){
  439. var self=this;
  440. return smalltalk.withContext(function($ctx1) {
  441. _st(self)._withChangesDo_((function(){
  442. return smalltalk.withContext(function($ctx2) {
  443. return _st(_st(self)._manager())._confirm_ifTrue_(_st("Do you REALLY want to remove class ").__comma(_st(_st(self)._selectedClass())._name()),(function(){
  444. return smalltalk.withContext(function($ctx3) {
  445. return _st(_st(self)._environment())._removeClass_(_st(self)._selectedClass());
  446. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  447. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  448. return self}, function($ctx1) {$ctx1.fill(self,"removeClass",{},smalltalk.HLToolModel)})},
  449. messageSends: ["withChangesDo:", "confirm:ifTrue:", ",", "name", "selectedClass", "removeClass:", "environment", "manager"]}),
  450. smalltalk.HLToolModel);
  451. smalltalk.addMethod(
  452. smalltalk.method({
  453. selector: "removeMethod",
  454. fn: function (){
  455. var self=this;
  456. return smalltalk.withContext(function($ctx1) {
  457. _st(self)._withChangesDo_((function(){
  458. return smalltalk.withContext(function($ctx2) {
  459. return _st(_st(self)._manager())._confirm_ifTrue_(_st(_st(_st("Do you REALLY want to remove method ").__comma(_st(_st(_st(self)._selectedMethod())._methodClass())._name())).__comma(" >> #")).__comma(_st(_st(self)._selectedMethod())._selector()),(function(){
  460. return smalltalk.withContext(function($ctx3) {
  461. return _st(_st(self)._environment())._removeMethod_(_st(self)._selectedMethod());
  462. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  463. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  464. return self}, function($ctx1) {$ctx1.fill(self,"removeMethod",{},smalltalk.HLToolModel)})},
  465. messageSends: ["withChangesDo:", "confirm:ifTrue:", ",", "selector", "selectedMethod", "name", "methodClass", "removeMethod:", "environment", "manager"]}),
  466. smalltalk.HLToolModel);
  467. smalltalk.addMethod(
  468. smalltalk.method({
  469. selector: "removeProtocol",
  470. fn: function (){
  471. var self=this;
  472. return smalltalk.withContext(function($ctx1) {
  473. _st(self)._withChangesDo_((function(){
  474. return smalltalk.withContext(function($ctx2) {
  475. return _st(_st(self)._manager())._confirm_ifTrue_(_st("Do you REALLY want to remove protocol ").__comma(_st(self)._selectedProtocol()),(function(){
  476. return smalltalk.withContext(function($ctx3) {
  477. return _st(_st(self)._environment())._removeProtocol_from_(_st(self)._selectedProtocol(),_st(self)._selectedClass());
  478. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  479. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  480. return self}, function($ctx1) {$ctx1.fill(self,"removeProtocol",{},smalltalk.HLToolModel)})},
  481. messageSends: ["withChangesDo:", "confirm:ifTrue:", ",", "selectedProtocol", "removeProtocol:from:", "selectedClass", "environment", "manager"]}),
  482. smalltalk.HLToolModel);
  483. smalltalk.addMethod(
  484. smalltalk.method({
  485. selector: "renameClassTo:",
  486. fn: function (aClassName){
  487. var self=this;
  488. return smalltalk.withContext(function($ctx1) {
  489. _st(self)._withChangesDo_((function(){
  490. return smalltalk.withContext(function($ctx2) {
  491. return _st(_st(self)._environment())._renameClass_to_(_st(_st(self)._selectedClass())._theNonMetaClass(),aClassName);
  492. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  493. return self}, function($ctx1) {$ctx1.fill(self,"renameClassTo:",{aClassName:aClassName},smalltalk.HLToolModel)})},
  494. messageSends: ["withChangesDo:", "renameClass:to:", "theNonMetaClass", "selectedClass", "environment"]}),
  495. smalltalk.HLToolModel);
  496. smalltalk.addMethod(
  497. smalltalk.method({
  498. selector: "renameProtocolTo:",
  499. fn: function (aString){
  500. var self=this;
  501. return smalltalk.withContext(function($ctx1) {
  502. _st(self)._withChangesDo_((function(){
  503. return smalltalk.withContext(function($ctx2) {
  504. return _st(_st(self)._environment())._renameProtocol_to_in_(_st(self)._selectedProtocol(),aString,_st(self)._selectedClass());
  505. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  506. return self}, function($ctx1) {$ctx1.fill(self,"renameProtocolTo:",{aString:aString},smalltalk.HLToolModel)})},
  507. messageSends: ["withChangesDo:", "renameProtocol:to:in:", "selectedProtocol", "selectedClass", "environment"]}),
  508. smalltalk.HLToolModel);
  509. smalltalk.addMethod(
  510. smalltalk.method({
  511. selector: "save:",
  512. fn: function (aString){
  513. var self=this;
  514. function $HLSourceCodeSaved(){return smalltalk.HLSourceCodeSaved||(typeof HLSourceCodeSaved=="undefined"?nil:HLSourceCodeSaved)}
  515. return smalltalk.withContext(function($ctx1) {
  516. var $1;
  517. _st(_st(self)._announcer())._announce_(_st($HLSourceCodeSaved())._new());
  518. $1=_st(self)._shouldCompileClassDefinition_(aString);
  519. if(smalltalk.assert($1)){
  520. _st(self)._compileClassDefinition_(aString);
  521. } else {
  522. _st(self)._compileMethod_(aString);
  523. };
  524. return self}, function($ctx1) {$ctx1.fill(self,"save:",{aString:aString},smalltalk.HLToolModel)})},
  525. messageSends: ["announce:", "new", "announcer", "ifTrue:ifFalse:", "compileClassDefinition:", "compileMethod:", "shouldCompileClassDefinition:"]}),
  526. smalltalk.HLToolModel);
  527. smalltalk.addMethod(
  528. smalltalk.method({
  529. selector: "saveSourceCode",
  530. fn: function (){
  531. var self=this;
  532. function $HLSaveSourceCode(){return smalltalk.HLSaveSourceCode||(typeof HLSaveSourceCode=="undefined"?nil:HLSaveSourceCode)}
  533. return smalltalk.withContext(function($ctx1) {
  534. _st(_st(self)._announcer())._announce_(_st($HLSaveSourceCode())._new());
  535. return self}, function($ctx1) {$ctx1.fill(self,"saveSourceCode",{},smalltalk.HLToolModel)})},
  536. messageSends: ["announce:", "new", "announcer"]}),
  537. smalltalk.HLToolModel);
  538. smalltalk.addMethod(
  539. smalltalk.method({
  540. selector: "selectedClass",
  541. fn: function (){
  542. var self=this;
  543. return smalltalk.withContext(function($ctx1) {
  544. var $1;
  545. $1=self["@selectedClass"];
  546. return $1;
  547. }, function($ctx1) {$ctx1.fill(self,"selectedClass",{},smalltalk.HLToolModel)})},
  548. messageSends: []}),
  549. smalltalk.HLToolModel);
  550. smalltalk.addMethod(
  551. smalltalk.method({
  552. selector: "selectedClass:",
  553. fn: function (aClass){
  554. var self=this;
  555. function $HLClassSelected(){return smalltalk.HLClassSelected||(typeof HLClassSelected=="undefined"?nil:HLClassSelected)}
  556. return smalltalk.withContext(function($ctx1) {
  557. var $1,$2,$3,$4,$5;
  558. $1=_st(_st(_st(self)._selectedClass()).__eq(aClass))._and_((function(){
  559. return smalltalk.withContext(function($ctx2) {
  560. return _st(aClass)._isNil();
  561. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  562. if(smalltalk.assert($1)){
  563. $2=self;
  564. return $2;
  565. };
  566. _st(self)._withChangesDo_((function(){
  567. return smalltalk.withContext(function($ctx2) {
  568. $3=_st(self["@selectedClass"]).__eq(aClass);
  569. if(smalltalk.assert($3)){
  570. _st(self)._selectedProtocol_(nil);
  571. };
  572. $4=aClass;
  573. if(($receiver = $4) == nil || $receiver == undefined){
  574. self["@selectedClass"]=nil;
  575. self["@selectedClass"];
  576. } else {
  577. _st(self)._selectedPackage_(_st(_st(aClass)._theNonMetaClass())._package());
  578. $5=_st(self)._showInstance();
  579. if(smalltalk.assert($5)){
  580. self["@selectedClass"]=_st(aClass)._theNonMetaClass();
  581. self["@selectedClass"];
  582. } else {
  583. self["@selectedClass"]=_st(aClass)._theMetaClass();
  584. self["@selectedClass"];
  585. };
  586. };
  587. _st(self)._selectedProtocol_(nil);
  588. return _st(_st(self)._announcer())._announce_(_st($HLClassSelected())._on_(_st(self)._selectedClass()));
  589. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  590. return self}, function($ctx1) {$ctx1.fill(self,"selectedClass:",{aClass:aClass},smalltalk.HLToolModel)})},
  591. messageSends: ["ifTrue:", "and:", "isNil", "=", "selectedClass", "withChangesDo:", "selectedProtocol:", "ifNil:ifNotNil:", "selectedPackage:", "package", "theNonMetaClass", "ifTrue:ifFalse:", "theMetaClass", "showInstance", "announce:", "on:", "announcer"]}),
  592. smalltalk.HLToolModel);
  593. smalltalk.addMethod(
  594. smalltalk.method({
  595. selector: "selectedMethod",
  596. fn: function (){
  597. var self=this;
  598. return smalltalk.withContext(function($ctx1) {
  599. var $2,$1;
  600. $2=_st(self)._selectedClass();
  601. if(($receiver = $2) == nil || $receiver == undefined){
  602. $1=$2;
  603. } else {
  604. $1=_st(_st(_st(self)._selectedClass())._methodDictionary())._at_ifAbsent_(self["@selectedSelector"],(function(){
  605. return smalltalk.withContext(function($ctx2) {
  606. return nil;
  607. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  608. };
  609. return $1;
  610. }, function($ctx1) {$ctx1.fill(self,"selectedMethod",{},smalltalk.HLToolModel)})},
  611. messageSends: ["ifNotNil:", "at:ifAbsent:", "methodDictionary", "selectedClass"]}),
  612. smalltalk.HLToolModel);
  613. smalltalk.addMethod(
  614. smalltalk.method({
  615. selector: "selectedMethod:",
  616. fn: function (aCompiledMethod){
  617. var self=this;
  618. function $HLMethodSelected(){return smalltalk.HLMethodSelected||(typeof HLMethodSelected=="undefined"?nil:HLMethodSelected)}
  619. return smalltalk.withContext(function($ctx1) {
  620. var $1,$2,$3;
  621. $1=_st(self["@selectedSelector"]).__eq(aCompiledMethod);
  622. if(smalltalk.assert($1)){
  623. $2=self;
  624. return $2;
  625. };
  626. _st(self)._withChangesDo_((function(){
  627. return smalltalk.withContext(function($ctx2) {
  628. $3=aCompiledMethod;
  629. if(($receiver = $3) == nil || $receiver == undefined){
  630. self["@selectedSelector"]=nil;
  631. self["@selectedSelector"];
  632. } else {
  633. self["@selectedClass"]=_st(aCompiledMethod)._methodClass();
  634. self["@selectedClass"];
  635. self["@selectedPackage"]=_st(_st(self["@selectedClass"])._theNonMetaClass())._package();
  636. self["@selectedPackage"];
  637. self["@selectedSelector"]=_st(aCompiledMethod)._selector();
  638. self["@selectedSelector"];
  639. };
  640. return _st(_st(self)._announcer())._announce_(_st($HLMethodSelected())._on_(aCompiledMethod));
  641. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  642. return self}, function($ctx1) {$ctx1.fill(self,"selectedMethod:",{aCompiledMethod:aCompiledMethod},smalltalk.HLToolModel)})},
  643. messageSends: ["ifTrue:", "=", "withChangesDo:", "ifNil:ifNotNil:", "methodClass", "package", "theNonMetaClass", "selector", "announce:", "on:", "announcer"]}),
  644. smalltalk.HLToolModel);
  645. smalltalk.addMethod(
  646. smalltalk.method({
  647. selector: "selectedPackage",
  648. fn: function (){
  649. var self=this;
  650. return smalltalk.withContext(function($ctx1) {
  651. var $1;
  652. $1=self["@selectedPackage"];
  653. return $1;
  654. }, function($ctx1) {$ctx1.fill(self,"selectedPackage",{},smalltalk.HLToolModel)})},
  655. messageSends: []}),
  656. smalltalk.HLToolModel);
  657. smalltalk.addMethod(
  658. smalltalk.method({
  659. selector: "selectedPackage:",
  660. fn: function (aPackage){
  661. var self=this;
  662. function $HLPackageSelected(){return smalltalk.HLPackageSelected||(typeof HLPackageSelected=="undefined"?nil:HLPackageSelected)}
  663. return smalltalk.withContext(function($ctx1) {
  664. var $1,$2;
  665. $1=_st(self["@selectedPackage"]).__eq(aPackage);
  666. if(smalltalk.assert($1)){
  667. $2=self;
  668. return $2;
  669. };
  670. _st(self)._withChangesDo_((function(){
  671. return smalltalk.withContext(function($ctx2) {
  672. self["@selectedPackage"]=aPackage;
  673. self["@selectedPackage"];
  674. _st(self)._selectedClass_(nil);
  675. return _st(_st(self)._announcer())._announce_(_st($HLPackageSelected())._on_(aPackage));
  676. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  677. return self}, function($ctx1) {$ctx1.fill(self,"selectedPackage:",{aPackage:aPackage},smalltalk.HLToolModel)})},
  678. messageSends: ["ifTrue:", "=", "withChangesDo:", "selectedClass:", "announce:", "on:", "announcer"]}),
  679. smalltalk.HLToolModel);
  680. smalltalk.addMethod(
  681. smalltalk.method({
  682. selector: "selectedProtocol",
  683. fn: function (){
  684. var self=this;
  685. return smalltalk.withContext(function($ctx1) {
  686. var $1;
  687. $1=self["@selectedProtocol"];
  688. return $1;
  689. }, function($ctx1) {$ctx1.fill(self,"selectedProtocol",{},smalltalk.HLToolModel)})},
  690. messageSends: []}),
  691. smalltalk.HLToolModel);
  692. smalltalk.addMethod(
  693. smalltalk.method({
  694. selector: "selectedProtocol:",
  695. fn: function (aString){
  696. var self=this;
  697. function $HLProtocolSelected(){return smalltalk.HLProtocolSelected||(typeof HLProtocolSelected=="undefined"?nil:HLProtocolSelected)}
  698. return smalltalk.withContext(function($ctx1) {
  699. var $1,$2;
  700. $1=_st(self["@selectedProtocol"]).__eq(aString);
  701. if(smalltalk.assert($1)){
  702. $2=self;
  703. return $2;
  704. };
  705. _st(self)._withChangesDo_((function(){
  706. return smalltalk.withContext(function($ctx2) {
  707. self["@selectedProtocol"]=aString;
  708. self["@selectedProtocol"];
  709. _st(self)._selectedMethod_(nil);
  710. return _st(_st(self)._announcer())._announce_(_st($HLProtocolSelected())._on_(aString));
  711. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  712. return self}, function($ctx1) {$ctx1.fill(self,"selectedProtocol:",{aString:aString},smalltalk.HLToolModel)})},
  713. messageSends: ["ifTrue:", "=", "withChangesDo:", "selectedMethod:", "announce:", "on:", "announcer"]}),
  714. smalltalk.HLToolModel);
  715. smalltalk.addMethod(
  716. smalltalk.method({
  717. selector: "shouldCompileClassDefinition:",
  718. fn: function (aString){
  719. var self=this;
  720. return smalltalk.withContext(function($ctx1) {
  721. var $1;
  722. $1=_st(_st(_st(self)._selectedClass())._isNil())._or_((function(){
  723. return smalltalk.withContext(function($ctx2) {
  724. return _st(aString)._match_("^[A-Z]");
  725. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  726. return $1;
  727. }, function($ctx1) {$ctx1.fill(self,"shouldCompileClassDefinition:",{aString:aString},smalltalk.HLToolModel)})},
  728. messageSends: ["or:", "match:", "isNil", "selectedClass"]}),
  729. smalltalk.HLToolModel);
  730. smalltalk.addMethod(
  731. smalltalk.method({
  732. selector: "unclassifiedProtocol",
  733. fn: function (){
  734. var self=this;
  735. return smalltalk.withContext(function($ctx1) {
  736. return "as yet unclassified";
  737. }, function($ctx1) {$ctx1.fill(self,"unclassifiedProtocol",{},smalltalk.HLToolModel)})},
  738. messageSends: []}),
  739. smalltalk.HLToolModel);
  740. smalltalk.addMethod(
  741. smalltalk.method({
  742. selector: "withCompileErrorHandling:",
  743. fn: function (aBlock){
  744. var self=this;
  745. function $ParseError(){return smalltalk.ParseError||(typeof ParseError=="undefined"?nil:ParseError)}
  746. function $UnknownVariableError(){return smalltalk.UnknownVariableError||(typeof UnknownVariableError=="undefined"?nil:UnknownVariableError)}
  747. function $CompilerError(){return smalltalk.CompilerError||(typeof CompilerError=="undefined"?nil:CompilerError)}
  748. return smalltalk.withContext(function($ctx1) {
  749. _st(_st(self)._environment())._evaluate_on_do_((function(){
  750. return smalltalk.withContext(function($ctx2) {
  751. return _st(_st(self)._environment())._evaluate_on_do_((function(){
  752. return smalltalk.withContext(function($ctx3) {
  753. return _st(_st(self)._environment())._evaluate_on_do_(aBlock,$ParseError(),(function(ex){
  754. return smalltalk.withContext(function($ctx4) {
  755. return _st(self)._handleParseError_(ex);
  756. }, function($ctx4) {$ctx4.fillBlock({ex:ex},$ctx3)})}));
  757. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}),$UnknownVariableError(),(function(ex){
  758. return smalltalk.withContext(function($ctx3) {
  759. return _st(self)._handleUnkownVariableError_(ex);
  760. }, function($ctx3) {$ctx3.fillBlock({ex:ex},$ctx2)})}));
  761. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}),$CompilerError(),(function(ex){
  762. return smalltalk.withContext(function($ctx2) {
  763. return _st(self)._handleCompileError_(ex);
  764. }, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1)})}));
  765. return self}, function($ctx1) {$ctx1.fill(self,"withCompileErrorHandling:",{aBlock:aBlock},smalltalk.HLToolModel)})},
  766. messageSends: ["evaluate:on:do:", "handleParseError:", "environment", "handleUnkownVariableError:", "handleCompileError:"]}),
  767. smalltalk.HLToolModel);
  768. smalltalk.addMethod(
  769. smalltalk.method({
  770. selector: "withHelperLabelled:do:",
  771. fn: function (aString,aBlock){
  772. var self=this;
  773. return smalltalk.withContext(function($ctx1) {
  774. var $1,$2;
  775. _st(_st(window)._jQuery_("#helper"))._remove();
  776. _st((function(html){
  777. return smalltalk.withContext(function($ctx2) {
  778. $1=_st(html)._div();
  779. _st($1)._id_("helper");
  780. $2=_st($1)._with_(aString);
  781. return $2;
  782. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}))._appendToJQuery_(_st("body")._asJQuery());
  783. _st((function(){
  784. return smalltalk.withContext(function($ctx2) {
  785. _st(aBlock)._value();
  786. return _st(_st(window)._jQuery_("#helper"))._remove();
  787. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithTimeout_((10));
  788. return self}, function($ctx1) {$ctx1.fill(self,"withHelperLabelled:do:",{aString:aString,aBlock:aBlock},smalltalk.HLToolModel)})},
  789. messageSends: ["remove", "jQuery:", "appendToJQuery:", "asJQuery", "id:", "div", "with:", "valueWithTimeout:", "value"]}),
  790. smalltalk.HLToolModel);
  791. smalltalk.addMethod(
  792. smalltalk.method({
  793. selector: "on:",
  794. fn: function (anEnvironment){
  795. var self=this;
  796. return smalltalk.withContext(function($ctx1) {
  797. var $2,$3,$1;
  798. $2=_st(self)._new();
  799. _st($2)._environment_(anEnvironment);
  800. $3=_st($2)._yourself();
  801. $1=$3;
  802. return $1;
  803. }, function($ctx1) {$ctx1.fill(self,"on:",{anEnvironment:anEnvironment},smalltalk.HLToolModel.klass)})},
  804. messageSends: ["environment:", "new", "yourself"]}),
  805. smalltalk.HLToolModel.klass);
  806. smalltalk.addClass('HLProgressHandler', smalltalk.ProgressHandler, [], 'Helios-Core');
  807. smalltalk.addMethod(
  808. smalltalk.method({
  809. selector: "do:on:displaying:",
  810. fn: function (aBlock,aCollection,aString){
  811. var self=this;
  812. function $HLProgressWidget(){return smalltalk.HLProgressWidget||(typeof HLProgressWidget=="undefined"?nil:HLProgressWidget)}
  813. return smalltalk.withContext(function($ctx1) {
  814. _st(_st($HLProgressWidget())._default())._do_on_displaying_(aBlock,aCollection,aString);
  815. return self}, function($ctx1) {$ctx1.fill(self,"do:on:displaying:",{aBlock:aBlock,aCollection:aCollection,aString:aString},smalltalk.HLProgressHandler)})},
  816. messageSends: ["do:on:displaying:", "default"]}),
  817. smalltalk.HLProgressHandler);
  818. smalltalk.addClass('HLTabWidget', smalltalk.Widget, ['widget', 'label', 'root'], 'Helios-Core');
  819. smalltalk.addMethod(
  820. smalltalk.method({
  821. selector: "activate",
  822. fn: function (){
  823. var self=this;
  824. return smalltalk.withContext(function($ctx1) {
  825. _st(_st(self)._manager())._activate_(self);
  826. return self}, function($ctx1) {$ctx1.fill(self,"activate",{},smalltalk.HLTabWidget)})},
  827. messageSends: ["activate:", "manager"]}),
  828. smalltalk.HLTabWidget);
  829. smalltalk.addMethod(
  830. smalltalk.method({
  831. selector: "add",
  832. fn: function (){
  833. var self=this;
  834. return smalltalk.withContext(function($ctx1) {
  835. _st(_st(self)._manager())._addTab_(self);
  836. return self}, function($ctx1) {$ctx1.fill(self,"add",{},smalltalk.HLTabWidget)})},
  837. messageSends: ["addTab:", "manager"]}),
  838. smalltalk.HLTabWidget);
  839. smalltalk.addMethod(
  840. smalltalk.method({
  841. selector: "cssClass",
  842. fn: function (){
  843. var self=this;
  844. return smalltalk.withContext(function($ctx1) {
  845. var $1;
  846. $1=_st(_st(self)._widget())._tabClass();
  847. return $1;
  848. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.HLTabWidget)})},
  849. messageSends: ["tabClass", "widget"]}),
  850. smalltalk.HLTabWidget);
  851. smalltalk.addMethod(
  852. smalltalk.method({
  853. selector: "displayLabel",
  854. fn: function (){
  855. var self=this;
  856. return smalltalk.withContext(function($ctx1) {
  857. var $2,$1;
  858. $2=_st(_st(_st(self)._label())._size()).__gt((20));
  859. if(smalltalk.assert($2)){
  860. $1=_st(_st(_st(self)._label())._first_((20))).__comma("...");
  861. } else {
  862. $1=_st(self)._label();
  863. };
  864. return $1;
  865. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLTabWidget)})},
  866. messageSends: ["ifTrue:ifFalse:", ",", "first:", "label", ">", "size"]}),
  867. smalltalk.HLTabWidget);
  868. smalltalk.addMethod(
  869. smalltalk.method({
  870. selector: "focus",
  871. fn: function (){
  872. var self=this;
  873. return smalltalk.withContext(function($ctx1) {
  874. var $1;
  875. $1=_st(_st(self)._widget())._canHaveFocus();
  876. if(smalltalk.assert($1)){
  877. _st(_st(self)._widget())._focus();
  878. };
  879. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLTabWidget)})},
  880. messageSends: ["ifTrue:", "focus", "widget", "canHaveFocus"]}),
  881. smalltalk.HLTabWidget);
  882. smalltalk.addMethod(
  883. smalltalk.method({
  884. selector: "hide",
  885. fn: function (){
  886. var self=this;
  887. return smalltalk.withContext(function($ctx1) {
  888. var $1;
  889. $1=self["@root"];
  890. if(($receiver = $1) == nil || $receiver == undefined){
  891. $1;
  892. } else {
  893. _st(_st(self["@root"])._asJQuery())._css_put_("visibility","hidden");
  894. };
  895. return self}, function($ctx1) {$ctx1.fill(self,"hide",{},smalltalk.HLTabWidget)})},
  896. messageSends: ["ifNotNil:", "css:put:", "asJQuery"]}),
  897. smalltalk.HLTabWidget);
  898. smalltalk.addMethod(
  899. smalltalk.method({
  900. selector: "isActive",
  901. fn: function (){
  902. var self=this;
  903. return smalltalk.withContext(function($ctx1) {
  904. var $1;
  905. $1=_st(_st(_st(self)._manager())._activeTab()).__eq(self);
  906. return $1;
  907. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLTabWidget)})},
  908. messageSends: ["=", "activeTab", "manager"]}),
  909. smalltalk.HLTabWidget);
  910. smalltalk.addMethod(
  911. smalltalk.method({
  912. selector: "label",
  913. fn: function (){
  914. var self=this;
  915. return smalltalk.withContext(function($ctx1) {
  916. var $2,$1;
  917. $2=self["@label"];
  918. if(($receiver = $2) == nil || $receiver == undefined){
  919. $1="";
  920. } else {
  921. $1=$2;
  922. };
  923. return $1;
  924. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLTabWidget)})},
  925. messageSends: ["ifNil:"]}),
  926. smalltalk.HLTabWidget);
  927. smalltalk.addMethod(
  928. smalltalk.method({
  929. selector: "label:",
  930. fn: function (aString){
  931. var self=this;
  932. return smalltalk.withContext(function($ctx1) {
  933. self["@label"]=aString;
  934. return self}, function($ctx1) {$ctx1.fill(self,"label:",{aString:aString},smalltalk.HLTabWidget)})},
  935. messageSends: []}),
  936. smalltalk.HLTabWidget);
  937. smalltalk.addMethod(
  938. smalltalk.method({
  939. selector: "manager",
  940. fn: function (){
  941. var self=this;
  942. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  943. return smalltalk.withContext(function($ctx1) {
  944. var $1;
  945. $1=_st($HLManager())._current();
  946. return $1;
  947. }, function($ctx1) {$ctx1.fill(self,"manager",{},smalltalk.HLTabWidget)})},
  948. messageSends: ["current"]}),
  949. smalltalk.HLTabWidget);
  950. smalltalk.addMethod(
  951. smalltalk.method({
  952. selector: "registerBindings",
  953. fn: function (){
  954. var self=this;
  955. return smalltalk.withContext(function($ctx1) {
  956. _st(_st(self)._widget())._registerBindings();
  957. return self}, function($ctx1) {$ctx1.fill(self,"registerBindings",{},smalltalk.HLTabWidget)})},
  958. messageSends: ["registerBindings", "widget"]}),
  959. smalltalk.HLTabWidget);
  960. smalltalk.addMethod(
  961. smalltalk.method({
  962. selector: "remove",
  963. fn: function (){
  964. var self=this;
  965. return smalltalk.withContext(function($ctx1) {
  966. var $1;
  967. _st(_st(self)._widget())._unregister();
  968. $1=self["@root"];
  969. if(($receiver = $1) == nil || $receiver == undefined){
  970. $1;
  971. } else {
  972. _st(_st(self["@root"])._asJQuery())._remove();
  973. };
  974. return self}, function($ctx1) {$ctx1.fill(self,"remove",{},smalltalk.HLTabWidget)})},
  975. messageSends: ["unregister", "widget", "ifNotNil:", "remove", "asJQuery"]}),
  976. smalltalk.HLTabWidget);
  977. smalltalk.addMethod(
  978. smalltalk.method({
  979. selector: "renderOn:",
  980. fn: function (html){
  981. var self=this;
  982. return smalltalk.withContext(function($ctx1) {
  983. var $1,$2;
  984. $1=_st(html)._div();
  985. _st($1)._class_("tab");
  986. $2=_st($1)._yourself();
  987. self["@root"]=$2;
  988. _st(self)._renderTab();
  989. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.HLTabWidget)})},
  990. messageSends: ["class:", "div", "yourself", "renderTab"]}),
  991. smalltalk.HLTabWidget);
  992. smalltalk.addMethod(
  993. smalltalk.method({
  994. selector: "renderTab",
  995. fn: function (){
  996. var self=this;
  997. return smalltalk.withContext(function($ctx1) {
  998. var $1,$2;
  999. _st(self["@root"])._contents_((function(html){
  1000. return smalltalk.withContext(function($ctx2) {
  1001. $1=_st(html)._div();
  1002. _st($1)._class_("amber_box");
  1003. $2=_st($1)._with_((function(){
  1004. return smalltalk.withContext(function($ctx3) {
  1005. return _st(_st(self)._widget())._renderOn_(html);
  1006. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1007. return $2;
  1008. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}));
  1009. return self}, function($ctx1) {$ctx1.fill(self,"renderTab",{},smalltalk.HLTabWidget)})},
  1010. messageSends: ["contents:", "class:", "div", "with:", "renderOn:", "widget"]}),
  1011. smalltalk.HLTabWidget);
  1012. smalltalk.addMethod(
  1013. smalltalk.method({
  1014. selector: "show",
  1015. fn: function (){
  1016. var self=this;
  1017. return smalltalk.withContext(function($ctx1) {
  1018. var $1;
  1019. $1=self["@root"];
  1020. if(($receiver = $1) == nil || $receiver == undefined){
  1021. _st(self)._appendToJQuery_(_st("body")._asJQuery());
  1022. } else {
  1023. _st(_st(self["@root"])._asJQuery())._css_put_("visibility","visible");
  1024. };
  1025. return self}, function($ctx1) {$ctx1.fill(self,"show",{},smalltalk.HLTabWidget)})},
  1026. messageSends: ["ifNil:ifNotNil:", "appendToJQuery:", "asJQuery", "css:put:"]}),
  1027. smalltalk.HLTabWidget);
  1028. smalltalk.addMethod(
  1029. smalltalk.method({
  1030. selector: "widget",
  1031. fn: function (){
  1032. var self=this;
  1033. return smalltalk.withContext(function($ctx1) {
  1034. var $1;
  1035. $1=self["@widget"];
  1036. return $1;
  1037. }, function($ctx1) {$ctx1.fill(self,"widget",{},smalltalk.HLTabWidget)})},
  1038. messageSends: []}),
  1039. smalltalk.HLTabWidget);
  1040. smalltalk.addMethod(
  1041. smalltalk.method({
  1042. selector: "widget:",
  1043. fn: function (aWidget){
  1044. var self=this;
  1045. return smalltalk.withContext(function($ctx1) {
  1046. self["@widget"]=aWidget;
  1047. return self}, function($ctx1) {$ctx1.fill(self,"widget:",{aWidget:aWidget},smalltalk.HLTabWidget)})},
  1048. messageSends: []}),
  1049. smalltalk.HLTabWidget);
  1050. smalltalk.addMethod(
  1051. smalltalk.method({
  1052. selector: "on:labelled:",
  1053. fn: function (aWidget,aString){
  1054. var self=this;
  1055. return smalltalk.withContext(function($ctx1) {
  1056. var $2,$3,$1;
  1057. $2=_st(self)._new();
  1058. _st($2)._widget_(aWidget);
  1059. _st($2)._label_(aString);
  1060. $3=_st($2)._yourself();
  1061. $1=$3;
  1062. return $1;
  1063. }, function($ctx1) {$ctx1.fill(self,"on:labelled:",{aWidget:aWidget,aString:aString},smalltalk.HLTabWidget.klass)})},
  1064. messageSends: ["widget:", "new", "label:", "yourself"]}),
  1065. smalltalk.HLTabWidget.klass);
  1066. smalltalk.addClass('HLWidget', smalltalk.Widget, ['wrapper'], 'Helios-Core');
  1067. smalltalk.addMethod(
  1068. smalltalk.method({
  1069. selector: "alert:",
  1070. fn: function (aString){
  1071. var self=this;
  1072. return smalltalk.withContext(function($ctx1) {
  1073. _st(window)._alert_(aString);
  1074. return self}, function($ctx1) {$ctx1.fill(self,"alert:",{aString:aString},smalltalk.HLWidget)})},
  1075. messageSends: ["alert:"]}),
  1076. smalltalk.HLWidget);
  1077. smalltalk.addMethod(
  1078. smalltalk.method({
  1079. selector: "canHaveFocus",
  1080. fn: function (){
  1081. var self=this;
  1082. return smalltalk.withContext(function($ctx1) {
  1083. return false;
  1084. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLWidget)})},
  1085. messageSends: []}),
  1086. smalltalk.HLWidget);
  1087. smalltalk.addMethod(
  1088. smalltalk.method({
  1089. selector: "confirm:ifTrue:",
  1090. fn: function (aString,aBlock){
  1091. var self=this;
  1092. return smalltalk.withContext(function($ctx1) {
  1093. _st(_st(self)._manager())._confirm_ifTrue_(aString,aBlock);
  1094. return self}, function($ctx1) {$ctx1.fill(self,"confirm:ifTrue:",{aString:aString,aBlock:aBlock},smalltalk.HLWidget)})},
  1095. messageSends: ["confirm:ifTrue:", "manager"]}),
  1096. smalltalk.HLWidget);
  1097. smalltalk.addMethod(
  1098. smalltalk.method({
  1099. selector: "execute:",
  1100. fn: function (aCommand){
  1101. var self=this;
  1102. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  1103. return smalltalk.withContext(function($ctx1) {
  1104. var $1,$2;
  1105. $1=_st(_st($HLManager())._current())._keyBinder();
  1106. _st($1)._activate();
  1107. $2=_st($1)._applyBinding_(_st(aCommand)._asBinding());
  1108. return self}, function($ctx1) {$ctx1.fill(self,"execute:",{aCommand:aCommand},smalltalk.HLWidget)})},
  1109. messageSends: ["activate", "keyBinder", "current", "applyBinding:", "asBinding"]}),
  1110. smalltalk.HLWidget);
  1111. smalltalk.addMethod(
  1112. smalltalk.method({
  1113. selector: "manager",
  1114. fn: function (){
  1115. var self=this;
  1116. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  1117. return smalltalk.withContext(function($ctx1) {
  1118. var $1;
  1119. $1=_st($HLManager())._current();
  1120. return $1;
  1121. }, function($ctx1) {$ctx1.fill(self,"manager",{},smalltalk.HLWidget)})},
  1122. messageSends: ["current"]}),
  1123. smalltalk.HLWidget);
  1124. smalltalk.addMethod(
  1125. smalltalk.method({
  1126. selector: "openAsTab",
  1127. fn: function (){
  1128. var self=this;
  1129. function $HLTabWidget(){return smalltalk.HLTabWidget||(typeof HLTabWidget=="undefined"?nil:HLTabWidget)}
  1130. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  1131. return smalltalk.withContext(function($ctx1) {
  1132. _st(_st($HLManager())._current())._addTab_(_st($HLTabWidget())._on_labelled_(self,_st(_st(self)._class())._tabLabel()));
  1133. return self}, function($ctx1) {$ctx1.fill(self,"openAsTab",{},smalltalk.HLWidget)})},
  1134. messageSends: ["addTab:", "on:labelled:", "tabLabel", "class", "current"]}),
  1135. smalltalk.HLWidget);
  1136. smalltalk.addMethod(
  1137. smalltalk.method({
  1138. selector: "refresh",
  1139. fn: function (){
  1140. var self=this;
  1141. return smalltalk.withContext(function($ctx1) {
  1142. var $1,$2;
  1143. $1=_st(self)._wrapper();
  1144. if(($receiver = $1) == nil || $receiver == undefined){
  1145. $2=self;
  1146. return $2;
  1147. } else {
  1148. $1;
  1149. };
  1150. _st(_st(_st(self)._wrapper())._asJQuery())._empty();
  1151. _st((function(html){
  1152. return smalltalk.withContext(function($ctx2) {
  1153. return _st(self)._renderContentOn_(html);
  1154. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}))._appendToJQuery_(_st(_st(self)._wrapper())._asJQuery());
  1155. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLWidget)})},
  1156. messageSends: ["ifNil:", "wrapper", "empty", "asJQuery", "appendToJQuery:", "renderContentOn:"]}),
  1157. smalltalk.HLWidget);
  1158. smalltalk.addMethod(
  1159. smalltalk.method({
  1160. selector: "registerBindings",
  1161. fn: function (){
  1162. var self=this;
  1163. return smalltalk.withContext(function($ctx1) {
  1164. _st(self)._registerBindingsOn_(_st(_st(_st(self)._manager())._keyBinder())._bindings());
  1165. return self}, function($ctx1) {$ctx1.fill(self,"registerBindings",{},smalltalk.HLWidget)})},
  1166. messageSends: ["registerBindingsOn:", "bindings", "keyBinder", "manager"]}),
  1167. smalltalk.HLWidget);
  1168. smalltalk.addMethod(
  1169. smalltalk.method({
  1170. selector: "registerBindingsOn:",
  1171. fn: function (aBindingGroup){
  1172. var self=this;
  1173. return smalltalk.withContext(function($ctx1) {
  1174. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup},smalltalk.HLWidget)})},
  1175. messageSends: []}),
  1176. smalltalk.HLWidget);
  1177. smalltalk.addMethod(
  1178. smalltalk.method({
  1179. selector: "renderContentOn:",
  1180. fn: function (html){
  1181. var self=this;
  1182. return smalltalk.withContext(function($ctx1) {
  1183. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLWidget)})},
  1184. messageSends: []}),
  1185. smalltalk.HLWidget);
  1186. smalltalk.addMethod(
  1187. smalltalk.method({
  1188. selector: "renderOn:",
  1189. fn: function (html){
  1190. var self=this;
  1191. return smalltalk.withContext(function($ctx1) {
  1192. self["@wrapper"]=_st(html)._div();
  1193. _st((function(renderer){
  1194. return smalltalk.withContext(function($ctx2) {
  1195. return _st(self)._renderContentOn_(renderer);
  1196. }, function($ctx2) {$ctx2.fillBlock({renderer:renderer},$ctx1)})}))._appendToJQuery_(_st(self["@wrapper"])._asJQuery());
  1197. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.HLWidget)})},
  1198. messageSends: ["div", "appendToJQuery:", "asJQuery", "renderContentOn:"]}),
  1199. smalltalk.HLWidget);
  1200. smalltalk.addMethod(
  1201. smalltalk.method({
  1202. selector: "request:do:",
  1203. fn: function (aString,aBlock){
  1204. var self=this;
  1205. return smalltalk.withContext(function($ctx1) {
  1206. _st(_st(self)._manager())._request_do_(aString,aBlock);
  1207. return self}, function($ctx1) {$ctx1.fill(self,"request:do:",{aString:aString,aBlock:aBlock},smalltalk.HLWidget)})},
  1208. messageSends: ["request:do:", "manager"]}),
  1209. smalltalk.HLWidget);
  1210. smalltalk.addMethod(
  1211. smalltalk.method({
  1212. selector: "request:value:do:",
  1213. fn: function (aString,valueString,aBlock){
  1214. var self=this;
  1215. return smalltalk.withContext(function($ctx1) {
  1216. _st(_st(self)._manager())._request_value_do_(aString,valueString,aBlock);
  1217. return self}, function($ctx1) {$ctx1.fill(self,"request:value:do:",{aString:aString,valueString:valueString,aBlock:aBlock},smalltalk.HLWidget)})},
  1218. messageSends: ["request:value:do:", "manager"]}),
  1219. smalltalk.HLWidget);
  1220. smalltalk.addMethod(
  1221. smalltalk.method({
  1222. selector: "tabClass",
  1223. fn: function (){
  1224. var self=this;
  1225. return smalltalk.withContext(function($ctx1) {
  1226. var $1;
  1227. $1=_st(_st(self)._class())._tabClass();
  1228. return $1;
  1229. }, function($ctx1) {$ctx1.fill(self,"tabClass",{},smalltalk.HLWidget)})},
  1230. messageSends: ["tabClass", "class"]}),
  1231. smalltalk.HLWidget);
  1232. smalltalk.addMethod(
  1233. smalltalk.method({
  1234. selector: "unregister",
  1235. fn: function (){
  1236. var self=this;
  1237. return smalltalk.withContext(function($ctx1) {
  1238. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLWidget)})},
  1239. messageSends: []}),
  1240. smalltalk.HLWidget);
  1241. smalltalk.addMethod(
  1242. smalltalk.method({
  1243. selector: "wrapper",
  1244. fn: function (){
  1245. var self=this;
  1246. return smalltalk.withContext(function($ctx1) {
  1247. var $1;
  1248. $1=self["@wrapper"];
  1249. return $1;
  1250. }, function($ctx1) {$ctx1.fill(self,"wrapper",{},smalltalk.HLWidget)})},
  1251. messageSends: []}),
  1252. smalltalk.HLWidget);
  1253. smalltalk.addMethod(
  1254. smalltalk.method({
  1255. selector: "canBeOpenAsTab",
  1256. fn: function (){
  1257. var self=this;
  1258. return smalltalk.withContext(function($ctx1) {
  1259. return false;
  1260. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLWidget.klass)})},
  1261. messageSends: []}),
  1262. smalltalk.HLWidget.klass);
  1263. smalltalk.addMethod(
  1264. smalltalk.method({
  1265. selector: "openAsTab",
  1266. fn: function (){
  1267. var self=this;
  1268. function $HLTabWidget(){return smalltalk.HLTabWidget||(typeof HLTabWidget=="undefined"?nil:HLTabWidget)}
  1269. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  1270. return smalltalk.withContext(function($ctx1) {
  1271. _st(_st($HLManager())._current())._addTab_(_st($HLTabWidget())._on_labelled_(_st(self)._new(),_st(self)._tabLabel()));
  1272. return self}, function($ctx1) {$ctx1.fill(self,"openAsTab",{},smalltalk.HLWidget.klass)})},
  1273. messageSends: ["addTab:", "on:labelled:", "new", "tabLabel", "current"]}),
  1274. smalltalk.HLWidget.klass);
  1275. smalltalk.addMethod(
  1276. smalltalk.method({
  1277. selector: "tabClass",
  1278. fn: function (){
  1279. var self=this;
  1280. return smalltalk.withContext(function($ctx1) {
  1281. return "";
  1282. }, function($ctx1) {$ctx1.fill(self,"tabClass",{},smalltalk.HLWidget.klass)})},
  1283. messageSends: []}),
  1284. smalltalk.HLWidget.klass);
  1285. smalltalk.addMethod(
  1286. smalltalk.method({
  1287. selector: "tabLabel",
  1288. fn: function (){
  1289. var self=this;
  1290. return smalltalk.withContext(function($ctx1) {
  1291. return "Tab";
  1292. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLWidget.klass)})},
  1293. messageSends: []}),
  1294. smalltalk.HLWidget.klass);
  1295. smalltalk.addMethod(
  1296. smalltalk.method({
  1297. selector: "tabPriority",
  1298. fn: function (){
  1299. var self=this;
  1300. return smalltalk.withContext(function($ctx1) {
  1301. return (500);
  1302. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLWidget.klass)})},
  1303. messageSends: []}),
  1304. smalltalk.HLWidget.klass);
  1305. smalltalk.addClass('HLFocusableWidget', smalltalk.HLWidget, [], 'Helios-Core');
  1306. smalltalk.addMethod(
  1307. smalltalk.method({
  1308. selector: "blur",
  1309. fn: function (){
  1310. var self=this;
  1311. return smalltalk.withContext(function($ctx1) {
  1312. _st(_st(_st(self)._wrapper())._asJQuery())._blur();
  1313. return self}, function($ctx1) {$ctx1.fill(self,"blur",{},smalltalk.HLFocusableWidget)})},
  1314. messageSends: ["blur", "asJQuery", "wrapper"]}),
  1315. smalltalk.HLFocusableWidget);
  1316. smalltalk.addMethod(
  1317. smalltalk.method({
  1318. selector: "canHaveFocus",
  1319. fn: function (){
  1320. var self=this;
  1321. return smalltalk.withContext(function($ctx1) {
  1322. return true;
  1323. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLFocusableWidget)})},
  1324. messageSends: []}),
  1325. smalltalk.HLFocusableWidget);
  1326. smalltalk.addMethod(
  1327. smalltalk.method({
  1328. selector: "focus",
  1329. fn: function (){
  1330. var self=this;
  1331. return smalltalk.withContext(function($ctx1) {
  1332. _st(_st(_st(self)._wrapper())._asJQuery())._focus();
  1333. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLFocusableWidget)})},
  1334. messageSends: ["focus", "asJQuery", "wrapper"]}),
  1335. smalltalk.HLFocusableWidget);
  1336. smalltalk.addMethod(
  1337. smalltalk.method({
  1338. selector: "focusClass",
  1339. fn: function (){
  1340. var self=this;
  1341. return smalltalk.withContext(function($ctx1) {
  1342. return "focused";
  1343. }, function($ctx1) {$ctx1.fill(self,"focusClass",{},smalltalk.HLFocusableWidget)})},
  1344. messageSends: []}),
  1345. smalltalk.HLFocusableWidget);
  1346. smalltalk.addMethod(
  1347. smalltalk.method({
  1348. selector: "hasFocus",
  1349. fn: function (){
  1350. var self=this;
  1351. return smalltalk.withContext(function($ctx1) {
  1352. var $1;
  1353. $1=_st(_st(_st(self)._wrapper())._notNil())._and_((function(){
  1354. return smalltalk.withContext(function($ctx2) {
  1355. return _st(_st(_st(self)._wrapper())._asJQuery())._is_(":focus");
  1356. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1357. return $1;
  1358. }, function($ctx1) {$ctx1.fill(self,"hasFocus",{},smalltalk.HLFocusableWidget)})},
  1359. messageSends: ["and:", "is:", "asJQuery", "wrapper", "notNil"]}),
  1360. smalltalk.HLFocusableWidget);
  1361. smalltalk.addMethod(
  1362. smalltalk.method({
  1363. selector: "renderContentOn:",
  1364. fn: function (html){
  1365. var self=this;
  1366. return smalltalk.withContext(function($ctx1) {
  1367. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLFocusableWidget)})},
  1368. messageSends: []}),
  1369. smalltalk.HLFocusableWidget);
  1370. smalltalk.addMethod(
  1371. smalltalk.method({
  1372. selector: "renderOn:",
  1373. fn: function (html){
  1374. var self=this;
  1375. return smalltalk.withContext(function($ctx1) {
  1376. var $1,$2,$3,$4;
  1377. $1=_st(html)._div();
  1378. _st($1)._class_("hl_widget");
  1379. $2=_st($1)._yourself();
  1380. self["@wrapper"]=$2;
  1381. _st(self["@wrapper"])._with_((function(){
  1382. return smalltalk.withContext(function($ctx2) {
  1383. return _st(self)._renderContentOn_(html);
  1384. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1385. $3=self["@wrapper"];
  1386. _st($3)._at_put_("tabindex","0");
  1387. _st($3)._onBlur_((function(){
  1388. return smalltalk.withContext(function($ctx2) {
  1389. return _st(_st(_st(self)._wrapper())._asJQuery())._removeClass_(_st(self)._focusClass());
  1390. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1391. $4=_st($3)._onFocus_((function(){
  1392. return smalltalk.withContext(function($ctx2) {
  1393. return _st(_st(_st(self)._wrapper())._asJQuery())._addClass_(_st(self)._focusClass());
  1394. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1395. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.HLFocusableWidget)})},
  1396. messageSends: ["class:", "div", "yourself", "with:", "renderContentOn:", "at:put:", "onBlur:", "removeClass:", "focusClass", "asJQuery", "wrapper", "onFocus:", "addClass:"]}),
  1397. smalltalk.HLFocusableWidget);
  1398. smalltalk.addClass('HLListWidget', smalltalk.HLFocusableWidget, ['items', 'selectedItem', 'mapping'], 'Helios-Core');
  1399. smalltalk.addMethod(
  1400. smalltalk.method({
  1401. selector: "activateFirstListItem",
  1402. fn: function (){
  1403. var self=this;
  1404. return smalltalk.withContext(function($ctx1) {
  1405. _st(self)._activateListItem_(_st(window)._jQuery_(_st(_st(_st(self["@wrapper"])._asJQuery())._find_("li.inactive"))._get_((0))));
  1406. return self}, function($ctx1) {$ctx1.fill(self,"activateFirstListItem",{},smalltalk.HLListWidget)})},
  1407. messageSends: ["activateListItem:", "jQuery:", "get:", "find:", "asJQuery"]}),
  1408. smalltalk.HLListWidget);
  1409. smalltalk.addMethod(
  1410. smalltalk.method({
  1411. selector: "activateItem:",
  1412. fn: function (anObject){
  1413. var self=this;
  1414. return smalltalk.withContext(function($ctx1) {
  1415. var $1;
  1416. var $early={};
  1417. try {
  1418. _st(self)._activateListItem_(_st(_st(self["@mapping"])._at_ifAbsent_(anObject,(function(){
  1419. return smalltalk.withContext(function($ctx2) {
  1420. $1=self;
  1421. throw $early=[$1];
  1422. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})))._asJQuery());
  1423. return self}
  1424. catch(e) {if(e===$early)return e[0]; throw e}
  1425. }, function($ctx1) {$ctx1.fill(self,"activateItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  1426. messageSends: ["activateListItem:", "asJQuery", "at:ifAbsent:"]}),
  1427. smalltalk.HLListWidget);
  1428. smalltalk.addMethod(
  1429. smalltalk.method({
  1430. selector: "activateListItem:",
  1431. fn: function (aListItem){
  1432. var self=this;
  1433. var item;
  1434. return smalltalk.withContext(function($ctx1) {
  1435. var $1,$2,$3;
  1436. $1=_st(aListItem)._get_((0));
  1437. if(($receiver = $1) == nil || $receiver == undefined){
  1438. $2=self;
  1439. return $2;
  1440. } else {
  1441. $1;
  1442. };
  1443. _st(_st(_st(aListItem)._parent())._children())._removeClass_("active");
  1444. _st(aListItem)._addClass_("active");
  1445. _st(self)._ensureVisible_(aListItem);
  1446. item=_st(_st(self)._items())._at_(_st(_st(aListItem)._attr_("list-data"))._asNumber());
  1447. $3=_st(_st(self)._selectedItem()).__eq_eq(item);
  1448. if(! smalltalk.assert($3)){
  1449. _st(self)._selectItem_(item);
  1450. };
  1451. return self}, function($ctx1) {$ctx1.fill(self,"activateListItem:",{aListItem:aListItem,item:item},smalltalk.HLListWidget)})},
  1452. messageSends: ["ifNil:", "get:", "removeClass:", "children", "parent", "addClass:", "ensureVisible:", "at:", "asNumber", "attr:", "items", "ifFalse:", "selectItem:", "==", "selectedItem"]}),
  1453. smalltalk.HLListWidget);
  1454. smalltalk.addMethod(
  1455. smalltalk.method({
  1456. selector: "activateNextListItem",
  1457. fn: function (){
  1458. var self=this;
  1459. return smalltalk.withContext(function($ctx1) {
  1460. _st(self)._activateListItem_(_st(_st(_st(_st(self)._wrapper())._asJQuery())._find_("li.active"))._next());
  1461. _st(_st(_st(_st(_st(self)._wrapper())._asJQuery())._find_(" .active"))._get())._ifEmpty_((function(){
  1462. return smalltalk.withContext(function($ctx2) {
  1463. return _st(self)._activateFirstListItem();
  1464. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1465. return self}, function($ctx1) {$ctx1.fill(self,"activateNextListItem",{},smalltalk.HLListWidget)})},
  1466. messageSends: ["activateListItem:", "next", "find:", "asJQuery", "wrapper", "ifEmpty:", "activateFirstListItem", "get"]}),
  1467. smalltalk.HLListWidget);
  1468. smalltalk.addMethod(
  1469. smalltalk.method({
  1470. selector: "activatePreviousListItem",
  1471. fn: function (){
  1472. var self=this;
  1473. return smalltalk.withContext(function($ctx1) {
  1474. _st(self)._activateListItem_(_st(_st(_st(_st(self)._wrapper())._asJQuery())._find_("li.active"))._prev());
  1475. return self}, function($ctx1) {$ctx1.fill(self,"activatePreviousListItem",{},smalltalk.HLListWidget)})},
  1476. messageSends: ["activateListItem:", "prev", "find:", "asJQuery", "wrapper"]}),
  1477. smalltalk.HLListWidget);
  1478. smalltalk.addMethod(
  1479. smalltalk.method({
  1480. selector: "cssClassForItem:",
  1481. fn: function (anObject){
  1482. var self=this;
  1483. return smalltalk.withContext(function($ctx1) {
  1484. return "";
  1485. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  1486. messageSends: []}),
  1487. smalltalk.HLListWidget);
  1488. smalltalk.addMethod(
  1489. smalltalk.method({
  1490. selector: "defaultItems",
  1491. fn: function (){
  1492. var self=this;
  1493. return smalltalk.withContext(function($ctx1) {
  1494. var $1;
  1495. $1=[];
  1496. return $1;
  1497. }, function($ctx1) {$ctx1.fill(self,"defaultItems",{},smalltalk.HLListWidget)})},
  1498. messageSends: []}),
  1499. smalltalk.HLListWidget);
  1500. smalltalk.addMethod(
  1501. smalltalk.method({
  1502. selector: "ensureVisible:",
  1503. fn: function (aListItem){
  1504. var self=this;
  1505. var perent,position;
  1506. return smalltalk.withContext(function($ctx1) {
  1507. var $1,$2;
  1508. position=_st(self)._positionOf_(aListItem);
  1509. parent=_st(aListItem)._parent();
  1510. $1=_st(_st(_st(aListItem)._position())._top()).__lt((0));
  1511. if(smalltalk.assert($1)){
  1512. _st(_st(parent)._get_((0)))._scrollTop_(_st(_st(_st(_st(parent)._get_((0)))._scrollTop()).__plus(_st(_st(aListItem)._position())._top())).__minus((10)));
  1513. };
  1514. $2=_st(_st(_st(_st(aListItem)._position())._top()).__plus(_st(aListItem)._height())).__gt(_st(parent)._height());
  1515. if(smalltalk.assert($2)){
  1516. _st(_st(parent)._get_((0)))._scrollTop_(_st(_st(_st(_st(_st(parent)._get_((0)))._scrollTop()).__plus(_st(aListItem)._height())).__minus(_st(_st(parent)._height()).__minus(_st(_st(aListItem)._position())._top()))).__plus((10)));
  1517. };
  1518. return self}, function($ctx1) {$ctx1.fill(self,"ensureVisible:",{aListItem:aListItem,perent:perent,position:position},smalltalk.HLListWidget)})},
  1519. messageSends: ["positionOf:", "parent", "ifTrue:", "scrollTop:", "-", "+", "top", "position", "scrollTop", "get:", "<", "height", ">"]}),
  1520. smalltalk.HLListWidget);
  1521. smalltalk.addMethod(
  1522. smalltalk.method({
  1523. selector: "focus",
  1524. fn: function (){
  1525. var self=this;
  1526. return smalltalk.withContext(function($ctx1) {
  1527. var $1,$2;
  1528. smalltalk.HLFocusableWidget.fn.prototype._focus.apply(_st(self), []);
  1529. $1=_st(_st(self)._items())._isEmpty();
  1530. if(! smalltalk.assert($1)){
  1531. $2=_st(self)._selectedItem();
  1532. if(($receiver = $2) == nil || $receiver == undefined){
  1533. _st(self)._activateFirstListItem();
  1534. } else {
  1535. $2;
  1536. };
  1537. };
  1538. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLListWidget)})},
  1539. messageSends: ["focus", "ifFalse:", "ifNil:", "activateFirstListItem", "selectedItem", "isEmpty", "items"]}),
  1540. smalltalk.HLListWidget);
  1541. smalltalk.addMethod(
  1542. smalltalk.method({
  1543. selector: "initialize",
  1544. fn: function (){
  1545. var self=this;
  1546. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  1547. return smalltalk.withContext(function($ctx1) {
  1548. smalltalk.HLFocusableWidget.fn.prototype._initialize.apply(_st(self), []);
  1549. self["@mapping"]=_st($Dictionary())._new();
  1550. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLListWidget)})},
  1551. messageSends: ["initialize", "new"]}),
  1552. smalltalk.HLListWidget);
  1553. smalltalk.addMethod(
  1554. smalltalk.method({
  1555. selector: "items",
  1556. fn: function (){
  1557. var self=this;
  1558. return smalltalk.withContext(function($ctx1) {
  1559. var $2,$1;
  1560. $2=self["@items"];
  1561. if(($receiver = $2) == nil || $receiver == undefined){
  1562. self["@items"]=_st(self)._defaultItems();
  1563. $1=self["@items"];
  1564. } else {
  1565. $1=$2;
  1566. };
  1567. return $1;
  1568. }, function($ctx1) {$ctx1.fill(self,"items",{},smalltalk.HLListWidget)})},
  1569. messageSends: ["ifNil:", "defaultItems"]}),
  1570. smalltalk.HLListWidget);
  1571. smalltalk.addMethod(
  1572. smalltalk.method({
  1573. selector: "items:",
  1574. fn: function (aCollection){
  1575. var self=this;
  1576. return smalltalk.withContext(function($ctx1) {
  1577. self["@items"]=aCollection;
  1578. return self}, function($ctx1) {$ctx1.fill(self,"items:",{aCollection:aCollection},smalltalk.HLListWidget)})},
  1579. messageSends: []}),
  1580. smalltalk.HLListWidget);
  1581. smalltalk.addMethod(
  1582. smalltalk.method({
  1583. selector: "listCssClassForItem:",
  1584. fn: function (anObject){
  1585. var self=this;
  1586. return smalltalk.withContext(function($ctx1) {
  1587. var $2,$1;
  1588. $2=_st(_st(self)._selectedItem()).__eq(anObject);
  1589. if(smalltalk.assert($2)){
  1590. $1="active";
  1591. } else {
  1592. $1="inactive";
  1593. };
  1594. return $1;
  1595. }, function($ctx1) {$ctx1.fill(self,"listCssClassForItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  1596. messageSends: ["ifTrue:ifFalse:", "=", "selectedItem"]}),
  1597. smalltalk.HLListWidget);
  1598. smalltalk.addMethod(
  1599. smalltalk.method({
  1600. selector: "positionOf:",
  1601. fn: function (aListItem){
  1602. var self=this;
  1603. return smalltalk.withContext(function($ctx1) {
  1604. return aListItem.parent().children().get().indexOf(aListItem.get(0)) + 1
  1605. ;
  1606. return self}, function($ctx1) {$ctx1.fill(self,"positionOf:",{aListItem:aListItem},smalltalk.HLListWidget)})},
  1607. messageSends: []}),
  1608. smalltalk.HLListWidget);
  1609. smalltalk.addMethod(
  1610. smalltalk.method({
  1611. selector: "refresh",
  1612. fn: function (){
  1613. var self=this;
  1614. return smalltalk.withContext(function($ctx1) {
  1615. var $1;
  1616. var $early={};
  1617. try {
  1618. smalltalk.HLFocusableWidget.fn.prototype._refresh.apply(_st(self), []);
  1619. _st(self)._ensureVisible_(_st(_st(self["@mapping"])._at_ifAbsent_(_st(self)._selectedItem(),(function(){
  1620. return smalltalk.withContext(function($ctx2) {
  1621. $1=self;
  1622. throw $early=[$1];
  1623. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})))._asJQuery());
  1624. return self}
  1625. catch(e) {if(e===$early)return e[0]; throw e}
  1626. }, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLListWidget)})},
  1627. messageSends: ["refresh", "ensureVisible:", "asJQuery", "at:ifAbsent:", "selectedItem"]}),
  1628. smalltalk.HLListWidget);
  1629. smalltalk.addMethod(
  1630. smalltalk.method({
  1631. selector: "registerMappingFrom:to:",
  1632. fn: function (anObject,aTag){
  1633. var self=this;
  1634. return smalltalk.withContext(function($ctx1) {
  1635. _st(self["@mapping"])._at_put_(anObject,aTag);
  1636. return self}, function($ctx1) {$ctx1.fill(self,"registerMappingFrom:to:",{anObject:anObject,aTag:aTag},smalltalk.HLListWidget)})},
  1637. messageSends: ["at:put:"]}),
  1638. smalltalk.HLListWidget);
  1639. smalltalk.addMethod(
  1640. smalltalk.method({
  1641. selector: "renderButtonsOn:",
  1642. fn: function (html){
  1643. var self=this;
  1644. return smalltalk.withContext(function($ctx1) {
  1645. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLListWidget)})},
  1646. messageSends: []}),
  1647. smalltalk.HLListWidget);
  1648. smalltalk.addMethod(
  1649. smalltalk.method({
  1650. selector: "renderContentOn:",
  1651. fn: function (html){
  1652. var self=this;
  1653. return smalltalk.withContext(function($ctx1) {
  1654. var $1,$2,$3,$4;
  1655. $1=_st(html)._ul();
  1656. _st($1)._class_("nav nav-pills nav-stacked");
  1657. $2=_st($1)._with_((function(){
  1658. return smalltalk.withContext(function($ctx2) {
  1659. return _st(self)._renderListOn_(html);
  1660. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1661. $3=_st(html)._div();
  1662. _st($3)._class_("pane_actions form-actions");
  1663. $4=_st($3)._with_((function(){
  1664. return smalltalk.withContext(function($ctx2) {
  1665. return _st(self)._renderButtonsOn_(html);
  1666. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1667. _st(self)._setupKeyBindings();
  1668. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLListWidget)})},
  1669. messageSends: ["class:", "ul", "with:", "renderListOn:", "div", "renderButtonsOn:", "setupKeyBindings"]}),
  1670. smalltalk.HLListWidget);
  1671. smalltalk.addMethod(
  1672. smalltalk.method({
  1673. selector: "renderItem:on:",
  1674. fn: function (anObject,html){
  1675. var self=this;
  1676. var li;
  1677. return smalltalk.withContext(function($ctx1) {
  1678. var $1,$3,$4,$2;
  1679. li=_st(html)._li();
  1680. _st(self)._registerMappingFrom_to_(anObject,li);
  1681. $1=li;
  1682. _st($1)._at_put_("list-data",_st(_st(_st(self)._items())._indexOf_(anObject))._asString());
  1683. _st($1)._class_(_st(self)._listCssClassForItem_(anObject));
  1684. $2=_st($1)._with_((function(){
  1685. return smalltalk.withContext(function($ctx2) {
  1686. $3=_st(html)._a();
  1687. _st($3)._with_((function(){
  1688. return smalltalk.withContext(function($ctx3) {
  1689. _st(_st(html)._tag_("i"))._class_(_st(self)._cssClassForItem_(anObject));
  1690. return _st(self)._renderItemLabel_on_(anObject,html);
  1691. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1692. $4=_st($3)._onClick_((function(){
  1693. return smalltalk.withContext(function($ctx3) {
  1694. return _st(self)._activateListItem_(_st(li)._asJQuery());
  1695. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1696. return $4;
  1697. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1698. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:on:",{anObject:anObject,html:html,li:li},smalltalk.HLListWidget)})},
  1699. messageSends: ["li", "registerMappingFrom:to:", "at:put:", "asString", "indexOf:", "items", "class:", "listCssClassForItem:", "with:", "cssClassForItem:", "tag:", "renderItemLabel:on:", "a", "onClick:", "activateListItem:", "asJQuery"]}),
  1700. smalltalk.HLListWidget);
  1701. smalltalk.addMethod(
  1702. smalltalk.method({
  1703. selector: "renderItemLabel:on:",
  1704. fn: function (anObject,html){
  1705. var self=this;
  1706. return smalltalk.withContext(function($ctx1) {
  1707. _st(html)._with_(_st(anObject)._asString());
  1708. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{anObject:anObject,html:html},smalltalk.HLListWidget)})},
  1709. messageSends: ["with:", "asString"]}),
  1710. smalltalk.HLListWidget);
  1711. smalltalk.addMethod(
  1712. smalltalk.method({
  1713. selector: "renderListOn:",
  1714. fn: function (html){
  1715. var self=this;
  1716. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  1717. return smalltalk.withContext(function($ctx1) {
  1718. self["@mapping"]=_st($Dictionary())._new();
  1719. _st(_st(self)._items())._do_((function(each){
  1720. return smalltalk.withContext(function($ctx2) {
  1721. return _st(self)._renderItem_on_(each,html);
  1722. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1723. return self}, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html},smalltalk.HLListWidget)})},
  1724. messageSends: ["new", "do:", "renderItem:on:", "items"]}),
  1725. smalltalk.HLListWidget);
  1726. smalltalk.addMethod(
  1727. smalltalk.method({
  1728. selector: "selectItem:",
  1729. fn: function (anObject){
  1730. var self=this;
  1731. return smalltalk.withContext(function($ctx1) {
  1732. _st(self)._selectedItem_(anObject);
  1733. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  1734. messageSends: ["selectedItem:"]}),
  1735. smalltalk.HLListWidget);
  1736. smalltalk.addMethod(
  1737. smalltalk.method({
  1738. selector: "selectedItem",
  1739. fn: function (){
  1740. var self=this;
  1741. return smalltalk.withContext(function($ctx1) {
  1742. var $1;
  1743. $1=self["@selectedItem"];
  1744. return $1;
  1745. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{},smalltalk.HLListWidget)})},
  1746. messageSends: []}),
  1747. smalltalk.HLListWidget);
  1748. smalltalk.addMethod(
  1749. smalltalk.method({
  1750. selector: "selectedItem:",
  1751. fn: function (anObject){
  1752. var self=this;
  1753. return smalltalk.withContext(function($ctx1) {
  1754. self["@selectedItem"]=anObject;
  1755. return self}, function($ctx1) {$ctx1.fill(self,"selectedItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  1756. messageSends: []}),
  1757. smalltalk.HLListWidget);
  1758. smalltalk.addMethod(
  1759. smalltalk.method({
  1760. selector: "setupKeyBindings",
  1761. fn: function (){
  1762. var self=this;
  1763. var active,interval,delay,repeatInterval;
  1764. return smalltalk.withContext(function($ctx1) {
  1765. var $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11;
  1766. active=false;
  1767. repeatInterval=(70);
  1768. _st(_st(_st(self)._wrapper())._asJQuery())._unbind_("keydown");
  1769. _st(_st(_st(self)._wrapper())._asJQuery())._keydown_((function(e){
  1770. return smalltalk.withContext(function($ctx2) {
  1771. $1=_st(_st(_st(e)._which()).__eq((38)))._and_((function(){
  1772. return smalltalk.withContext(function($ctx3) {
  1773. return _st(active).__eq(false);
  1774. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1775. if(smalltalk.assert($1)){
  1776. active=true;
  1777. active;
  1778. _st(e)._preventDefault();
  1779. _st(self)._activatePreviousListItem();
  1780. delay=_st((function(){
  1781. return smalltalk.withContext(function($ctx3) {
  1782. interval=_st((function(){
  1783. return smalltalk.withContext(function($ctx4) {
  1784. $2=_st(_st(_st(self)._wrapper())._asJQuery())._hasClass_(_st(self)._focusClass());
  1785. if(smalltalk.assert($2)){
  1786. return _st(self)._activatePreviousListItem();
  1787. } else {
  1788. active=false;
  1789. active;
  1790. $3=interval;
  1791. if(($receiver = $3) == nil || $receiver == undefined){
  1792. $3;
  1793. } else {
  1794. _st(interval)._clearInterval();
  1795. };
  1796. $4=delay;
  1797. if(($receiver = $4) == nil || $receiver == undefined){
  1798. return $4;
  1799. } else {
  1800. return _st(delay)._clearTimeout();
  1801. };
  1802. };
  1803. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}))._valueWithInterval_(repeatInterval);
  1804. return interval;
  1805. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}))._valueWithTimeout_((300));
  1806. delay;
  1807. false;
  1808. };
  1809. $5=_st(_st(_st(e)._which()).__eq((40)))._and_((function(){
  1810. return smalltalk.withContext(function($ctx3) {
  1811. return _st(active).__eq(false);
  1812. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  1813. if(smalltalk.assert($5)){
  1814. active=true;
  1815. active;
  1816. _st(e)._preventDefault();
  1817. _st(self)._activateNextListItem();
  1818. delay=_st((function(){
  1819. return smalltalk.withContext(function($ctx3) {
  1820. interval=_st((function(){
  1821. return smalltalk.withContext(function($ctx4) {
  1822. $6=_st(_st(_st(self)._wrapper())._asJQuery())._hasClass_(_st(self)._focusClass());
  1823. if(smalltalk.assert($6)){
  1824. return _st(self)._activateNextListItem();
  1825. } else {
  1826. active=false;
  1827. active;
  1828. $7=interval;
  1829. if(($receiver = $7) == nil || $receiver == undefined){
  1830. $7;
  1831. } else {
  1832. _st(interval)._clearInterval();
  1833. };
  1834. $8=delay;
  1835. if(($receiver = $8) == nil || $receiver == undefined){
  1836. return $8;
  1837. } else {
  1838. return _st(delay)._clearTimeout();
  1839. };
  1840. };
  1841. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}))._valueWithInterval_(repeatInterval);
  1842. return interval;
  1843. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}))._valueWithTimeout_((300));
  1844. delay;
  1845. };
  1846. return false;
  1847. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  1848. _st(_st(_st(self)._wrapper())._asJQuery())._keyup_((function(e){
  1849. return smalltalk.withContext(function($ctx2) {
  1850. $9=active;
  1851. if(smalltalk.assert($9)){
  1852. active=false;
  1853. active;
  1854. $10=interval;
  1855. if(($receiver = $10) == nil || $receiver == undefined){
  1856. $10;
  1857. } else {
  1858. _st(interval)._clearInterval();
  1859. };
  1860. $11=delay;
  1861. if(($receiver = $11) == nil || $receiver == undefined){
  1862. return $11;
  1863. } else {
  1864. return _st(delay)._clearTimeout();
  1865. };
  1866. };
  1867. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  1868. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{active:active,interval:interval,delay:delay,repeatInterval:repeatInterval},smalltalk.HLListWidget)})},
  1869. messageSends: ["unbind:", "asJQuery", "wrapper", "keydown:", "ifTrue:", "preventDefault", "activatePreviousListItem", "valueWithTimeout:", "valueWithInterval:", "ifTrue:ifFalse:", "ifNotNil:", "clearInterval", "clearTimeout", "hasClass:", "focusClass", "and:", "=", "which", "activateNextListItem", "keyup:"]}),
  1870. smalltalk.HLListWidget);
  1871. smalltalk.addClass('HLNavigationListWidget', smalltalk.HLListWidget, ['previous', 'next'], 'Helios-Core');
  1872. smalltalk.addMethod(
  1873. smalltalk.method({
  1874. selector: "next",
  1875. fn: function (){
  1876. var self=this;
  1877. return smalltalk.withContext(function($ctx1) {
  1878. var $1;
  1879. $1=self["@next"];
  1880. return $1;
  1881. }, function($ctx1) {$ctx1.fill(self,"next",{},smalltalk.HLNavigationListWidget)})},
  1882. messageSends: []}),
  1883. smalltalk.HLNavigationListWidget);
  1884. smalltalk.addMethod(
  1885. smalltalk.method({
  1886. selector: "next:",
  1887. fn: function (aWidget){
  1888. var self=this;
  1889. return smalltalk.withContext(function($ctx1) {
  1890. var $1;
  1891. self["@next"]=aWidget;
  1892. $1=_st(_st(aWidget)._previous()).__eq(self);
  1893. if(! smalltalk.assert($1)){
  1894. _st(aWidget)._previous_(self);
  1895. };
  1896. return self}, function($ctx1) {$ctx1.fill(self,"next:",{aWidget:aWidget},smalltalk.HLNavigationListWidget)})},
  1897. messageSends: ["ifFalse:", "previous:", "=", "previous"]}),
  1898. smalltalk.HLNavigationListWidget);
  1899. smalltalk.addMethod(
  1900. smalltalk.method({
  1901. selector: "nextFocus",
  1902. fn: function (){
  1903. var self=this;
  1904. return smalltalk.withContext(function($ctx1) {
  1905. var $1;
  1906. $1=_st(self)._next();
  1907. if(($receiver = $1) == nil || $receiver == undefined){
  1908. $1;
  1909. } else {
  1910. _st(_st(self)._next())._focus();
  1911. };
  1912. return self}, function($ctx1) {$ctx1.fill(self,"nextFocus",{},smalltalk.HLNavigationListWidget)})},
  1913. messageSends: ["ifNotNil:", "focus", "next"]}),
  1914. smalltalk.HLNavigationListWidget);
  1915. smalltalk.addMethod(
  1916. smalltalk.method({
  1917. selector: "previous",
  1918. fn: function (){
  1919. var self=this;
  1920. return smalltalk.withContext(function($ctx1) {
  1921. var $1;
  1922. $1=self["@previous"];
  1923. return $1;
  1924. }, function($ctx1) {$ctx1.fill(self,"previous",{},smalltalk.HLNavigationListWidget)})},
  1925. messageSends: []}),
  1926. smalltalk.HLNavigationListWidget);
  1927. smalltalk.addMethod(
  1928. smalltalk.method({
  1929. selector: "previous:",
  1930. fn: function (aWidget){
  1931. var self=this;
  1932. return smalltalk.withContext(function($ctx1) {
  1933. var $1;
  1934. self["@previous"]=aWidget;
  1935. $1=_st(_st(aWidget)._next()).__eq(self);
  1936. if(! smalltalk.assert($1)){
  1937. _st(aWidget)._next_(self);
  1938. };
  1939. return self}, function($ctx1) {$ctx1.fill(self,"previous:",{aWidget:aWidget},smalltalk.HLNavigationListWidget)})},
  1940. messageSends: ["ifFalse:", "next:", "=", "next"]}),
  1941. smalltalk.HLNavigationListWidget);
  1942. smalltalk.addMethod(
  1943. smalltalk.method({
  1944. selector: "previousFocus",
  1945. fn: function (){
  1946. var self=this;
  1947. return smalltalk.withContext(function($ctx1) {
  1948. var $1;
  1949. $1=_st(self)._previous();
  1950. if(($receiver = $1) == nil || $receiver == undefined){
  1951. $1;
  1952. } else {
  1953. _st(_st(self)._previous())._focus();
  1954. };
  1955. return self}, function($ctx1) {$ctx1.fill(self,"previousFocus",{},smalltalk.HLNavigationListWidget)})},
  1956. messageSends: ["ifNotNil:", "focus", "previous"]}),
  1957. smalltalk.HLNavigationListWidget);
  1958. smalltalk.addMethod(
  1959. smalltalk.method({
  1960. selector: "setupKeyBindings",
  1961. fn: function (){
  1962. var self=this;
  1963. return smalltalk.withContext(function($ctx1) {
  1964. var $1,$2;
  1965. smalltalk.HLListWidget.fn.prototype._setupKeyBindings.apply(_st(self), []);
  1966. _st(_st(_st(self)._wrapper())._asJQuery())._keydown_((function(e){
  1967. return smalltalk.withContext(function($ctx2) {
  1968. $1=_st(_st(e)._which()).__eq((39));
  1969. if(smalltalk.assert($1)){
  1970. _st(self)._nextFocus();
  1971. };
  1972. $2=_st(_st(e)._which()).__eq((37));
  1973. if(smalltalk.assert($2)){
  1974. return _st(self)._previousFocus();
  1975. };
  1976. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  1977. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{},smalltalk.HLNavigationListWidget)})},
  1978. messageSends: ["setupKeyBindings", "keydown:", "ifTrue:", "nextFocus", "=", "which", "previousFocus", "asJQuery", "wrapper"]}),
  1979. smalltalk.HLNavigationListWidget);
  1980. smalltalk.addClass('HLToolListWidget', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Core');
  1981. smalltalk.addMethod(
  1982. smalltalk.method({
  1983. selector: "activateListItem:",
  1984. fn: function (anItem){
  1985. var self=this;
  1986. return smalltalk.withContext(function($ctx1) {
  1987. _st(_st(self)._model())._withChangesDo_((function(){
  1988. return smalltalk.withContext(function($ctx2) {
  1989. return smalltalk.HLNavigationListWidget.fn.prototype._activateListItem_.apply(_st(self), [anItem]);
  1990. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1991. return self}, function($ctx1) {$ctx1.fill(self,"activateListItem:",{anItem:anItem},smalltalk.HLToolListWidget)})},
  1992. messageSends: ["withChangesDo:", "activateListItem:", "model"]}),
  1993. smalltalk.HLToolListWidget);
  1994. smalltalk.addMethod(
  1995. smalltalk.method({
  1996. selector: "activateNextListItem",
  1997. fn: function (){
  1998. var self=this;
  1999. return smalltalk.withContext(function($ctx1) {
  2000. _st(_st(self)._model())._withChangesDo_((function(){
  2001. return smalltalk.withContext(function($ctx2) {
  2002. return smalltalk.HLNavigationListWidget.fn.prototype._activateNextListItem.apply(_st(self), []);
  2003. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2004. return self}, function($ctx1) {$ctx1.fill(self,"activateNextListItem",{},smalltalk.HLToolListWidget)})},
  2005. messageSends: ["withChangesDo:", "activateNextListItem", "model"]}),
  2006. smalltalk.HLToolListWidget);
  2007. smalltalk.addMethod(
  2008. smalltalk.method({
  2009. selector: "activatePreviousListItem",
  2010. fn: function (){
  2011. var self=this;
  2012. return smalltalk.withContext(function($ctx1) {
  2013. _st(_st(self)._model())._withChangesDo_((function(){
  2014. return smalltalk.withContext(function($ctx2) {
  2015. return smalltalk.HLNavigationListWidget.fn.prototype._activatePreviousListItem.apply(_st(self), []);
  2016. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2017. return self}, function($ctx1) {$ctx1.fill(self,"activatePreviousListItem",{},smalltalk.HLToolListWidget)})},
  2018. messageSends: ["withChangesDo:", "activatePreviousListItem", "model"]}),
  2019. smalltalk.HLToolListWidget);
  2020. smalltalk.addMethod(
  2021. smalltalk.method({
  2022. selector: "commandCategory",
  2023. fn: function (){
  2024. var self=this;
  2025. return smalltalk.withContext(function($ctx1) {
  2026. var $1;
  2027. $1=_st(self)._label();
  2028. return $1;
  2029. }, function($ctx1) {$ctx1.fill(self,"commandCategory",{},smalltalk.HLToolListWidget)})},
  2030. messageSends: ["label"]}),
  2031. smalltalk.HLToolListWidget);
  2032. smalltalk.addMethod(
  2033. smalltalk.method({
  2034. selector: "label",
  2035. fn: function (){
  2036. var self=this;
  2037. return smalltalk.withContext(function($ctx1) {
  2038. return "List";
  2039. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToolListWidget)})},
  2040. messageSends: []}),
  2041. smalltalk.HLToolListWidget);
  2042. smalltalk.addMethod(
  2043. smalltalk.method({
  2044. selector: "menuCommands",
  2045. fn: function (){
  2046. var self=this;
  2047. function $HLToolCommand(){return smalltalk.HLToolCommand||(typeof HLToolCommand=="undefined"?nil:HLToolCommand)}
  2048. return smalltalk.withContext(function($ctx1) {
  2049. var $1;
  2050. $1=_st(_st(_st(_st($HLToolCommand())._concreteClasses())._select_((function(each){
  2051. return smalltalk.withContext(function($ctx2) {
  2052. return _st(each)._isValidFor_(_st(self)._model());
  2053. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._collect_((function(each){
  2054. return smalltalk.withContext(function($ctx2) {
  2055. return _st(each)._for_(_st(self)._model());
  2056. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})))._select_((function(each){
  2057. return smalltalk.withContext(function($ctx2) {
  2058. return _st(_st(_st(each)._category()).__eq(_st(self)._commandCategory()))._and_((function(){
  2059. return smalltalk.withContext(function($ctx3) {
  2060. return _st(_st(each)._isAction())._and_((function(){
  2061. return smalltalk.withContext(function($ctx4) {
  2062. return _st(each)._isActive();
  2063. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  2064. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2065. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2066. return $1;
  2067. }, function($ctx1) {$ctx1.fill(self,"menuCommands",{},smalltalk.HLToolListWidget)})},
  2068. messageSends: ["select:", "and:", "isActive", "isAction", "=", "commandCategory", "category", "collect:", "for:", "model", "isValidFor:", "concreteClasses"]}),
  2069. smalltalk.HLToolListWidget);
  2070. smalltalk.addMethod(
  2071. smalltalk.method({
  2072. selector: "model",
  2073. fn: function (){
  2074. var self=this;
  2075. return smalltalk.withContext(function($ctx1) {
  2076. var $1;
  2077. $1=self["@model"];
  2078. return $1;
  2079. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLToolListWidget)})},
  2080. messageSends: []}),
  2081. smalltalk.HLToolListWidget);
  2082. smalltalk.addMethod(
  2083. smalltalk.method({
  2084. selector: "model:",
  2085. fn: function (aBrowserModel){
  2086. var self=this;
  2087. return smalltalk.withContext(function($ctx1) {
  2088. var $1,$2;
  2089. self["@model"]=aBrowserModel;
  2090. $1=self;
  2091. _st($1)._observeSystem();
  2092. $2=_st($1)._observeModel();
  2093. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aBrowserModel:aBrowserModel},smalltalk.HLToolListWidget)})},
  2094. messageSends: ["observeSystem", "observeModel"]}),
  2095. smalltalk.HLToolListWidget);
  2096. smalltalk.addMethod(
  2097. smalltalk.method({
  2098. selector: "observeModel",
  2099. fn: function (){
  2100. var self=this;
  2101. return smalltalk.withContext(function($ctx1) {
  2102. return self}, function($ctx1) {$ctx1.fill(self,"observeModel",{},smalltalk.HLToolListWidget)})},
  2103. messageSends: []}),
  2104. smalltalk.HLToolListWidget);
  2105. smalltalk.addMethod(
  2106. smalltalk.method({
  2107. selector: "observeSystem",
  2108. fn: function (){
  2109. var self=this;
  2110. return smalltalk.withContext(function($ctx1) {
  2111. return self}, function($ctx1) {$ctx1.fill(self,"observeSystem",{},smalltalk.HLToolListWidget)})},
  2112. messageSends: []}),
  2113. smalltalk.HLToolListWidget);
  2114. smalltalk.addMethod(
  2115. smalltalk.method({
  2116. selector: "renderContentOn:",
  2117. fn: function (html){
  2118. var self=this;
  2119. return smalltalk.withContext(function($ctx1) {
  2120. _st(self)._renderHeadOn_(html);
  2121. smalltalk.HLNavigationListWidget.fn.prototype._renderContentOn_.apply(_st(self), [html]);
  2122. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLToolListWidget)})},
  2123. messageSends: ["renderHeadOn:", "renderContentOn:"]}),
  2124. smalltalk.HLToolListWidget);
  2125. smalltalk.addMethod(
  2126. smalltalk.method({
  2127. selector: "renderHeadOn:",
  2128. fn: function (html){
  2129. var self=this;
  2130. return smalltalk.withContext(function($ctx1) {
  2131. var $1,$2;
  2132. $1=_st(html)._div();
  2133. _st($1)._class_("list-label");
  2134. $2=_st($1)._with_((function(){
  2135. return smalltalk.withContext(function($ctx2) {
  2136. _st(html)._with_(_st(self)._label());
  2137. return _st(self)._renderMenuOn_(html);
  2138. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2139. return self}, function($ctx1) {$ctx1.fill(self,"renderHeadOn:",{html:html},smalltalk.HLToolListWidget)})},
  2140. messageSends: ["class:", "div", "with:", "label", "renderMenuOn:"]}),
  2141. smalltalk.HLToolListWidget);
  2142. smalltalk.addMethod(
  2143. smalltalk.method({
  2144. selector: "renderMenuOn:",
  2145. fn: function (html){
  2146. var self=this;
  2147. var commands;
  2148. return smalltalk.withContext(function($ctx1) {
  2149. var $1,$2,$3,$5,$6,$7,$9,$10,$8,$4;
  2150. commands=_st(self)._menuCommands();
  2151. $1=_st(commands)._isEmpty();
  2152. if(smalltalk.assert($1)){
  2153. $2=self;
  2154. return $2;
  2155. };
  2156. $3=_st(html)._div();
  2157. _st($3)._class_("btn-group cog");
  2158. $4=_st($3)._with_((function(){
  2159. return smalltalk.withContext(function($ctx2) {
  2160. $5=_st(html)._a();
  2161. _st($5)._class_("btn dropdown-toggle");
  2162. _st($5)._at_put_("data-toggle","dropdown");
  2163. $6=_st($5)._with_((function(){
  2164. return smalltalk.withContext(function($ctx3) {
  2165. return _st(_st(html)._tag_("i"))._class_("icon-cog");
  2166. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2167. $6;
  2168. $7=_st(html)._ul();
  2169. _st($7)._class_("dropdown-menu pull-right");
  2170. $8=_st($7)._with_((function(){
  2171. return smalltalk.withContext(function($ctx3) {
  2172. return _st(_st(self)._menuCommands())._do_((function(each){
  2173. return smalltalk.withContext(function($ctx4) {
  2174. return _st(_st(html)._li())._with_((function(){
  2175. return smalltalk.withContext(function($ctx5) {
  2176. $9=_st(html)._a();
  2177. _st($9)._with_(_st(each)._menuLabel());
  2178. $10=_st($9)._onClick_((function(){
  2179. return smalltalk.withContext(function($ctx6) {
  2180. return _st(self)._execute_(each);
  2181. }, function($ctx6) {$ctx6.fillBlock({},$ctx5)})}));
  2182. return $10;
  2183. }, function($ctx5) {$ctx5.fillBlock({},$ctx4)})}));
  2184. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx3)})}));
  2185. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2186. return $8;
  2187. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2188. return self}, function($ctx1) {$ctx1.fill(self,"renderMenuOn:",{html:html,commands:commands},smalltalk.HLToolListWidget)})},
  2189. messageSends: ["menuCommands", "ifTrue:", "isEmpty", "class:", "div", "with:", "a", "at:put:", "tag:", "ul", "do:", "menuLabel", "onClick:", "execute:", "li"]}),
  2190. smalltalk.HLToolListWidget);
  2191. smalltalk.addMethod(
  2192. smalltalk.method({
  2193. selector: "selectedItem:",
  2194. fn: function (anItem){
  2195. var self=this;
  2196. return smalltalk.withContext(function($ctx1) {
  2197. smalltalk.HLNavigationListWidget.fn.prototype._selectedItem_.apply(_st(self), [anItem]);
  2198. _st(self)._updateMenu();
  2199. return self}, function($ctx1) {$ctx1.fill(self,"selectedItem:",{anItem:anItem},smalltalk.HLToolListWidget)})},
  2200. messageSends: ["selectedItem:", "updateMenu"]}),
  2201. smalltalk.HLToolListWidget);
  2202. smalltalk.addMethod(
  2203. smalltalk.method({
  2204. selector: "unregister",
  2205. fn: function (){
  2206. var self=this;
  2207. return smalltalk.withContext(function($ctx1) {
  2208. smalltalk.HLNavigationListWidget.fn.prototype._unregister.apply(_st(self), []);
  2209. _st(_st(_st(self)._model())._announcer())._unsubscribe_(self);
  2210. _st(_st(_st(self)._model())._systemAnnouncer())._unsubscribe_(self);
  2211. return self}, function($ctx1) {$ctx1.fill(self,"unregister",{},smalltalk.HLToolListWidget)})},
  2212. messageSends: ["unregister", "unsubscribe:", "announcer", "model", "systemAnnouncer"]}),
  2213. smalltalk.HLToolListWidget);
  2214. smalltalk.addMethod(
  2215. smalltalk.method({
  2216. selector: "updateMenu",
  2217. fn: function (){
  2218. var self=this;
  2219. return smalltalk.withContext(function($ctx1) {
  2220. _st(_st(_st(_st(self)._wrapper())._asJQuery())._find_(".cog"))._remove();
  2221. _st((function(html){
  2222. return smalltalk.withContext(function($ctx2) {
  2223. return _st(self)._renderMenuOn_(html);
  2224. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}))._appendToJQuery_(_st(_st(_st(self)._wrapper())._asJQuery())._find_(".list-label"));
  2225. return self}, function($ctx1) {$ctx1.fill(self,"updateMenu",{},smalltalk.HLToolListWidget)})},
  2226. messageSends: ["remove", "find:", "asJQuery", "wrapper", "appendToJQuery:", "renderMenuOn:"]}),
  2227. smalltalk.HLToolListWidget);
  2228. smalltalk.addMethod(
  2229. smalltalk.method({
  2230. selector: "on:",
  2231. fn: function (aModel){
  2232. var self=this;
  2233. return smalltalk.withContext(function($ctx1) {
  2234. var $2,$3,$1;
  2235. $2=_st(self)._new();
  2236. _st($2)._model_(aModel);
  2237. $3=_st($2)._yourself();
  2238. $1=$3;
  2239. return $1;
  2240. }, function($ctx1) {$ctx1.fill(self,"on:",{aModel:aModel},smalltalk.HLToolListWidget.klass)})},
  2241. messageSends: ["model:", "new", "yourself"]}),
  2242. smalltalk.HLToolListWidget.klass);
  2243. smalltalk.addClass('HLManager', smalltalk.HLWidget, ['tabs', 'activeTab', 'keyBinder', 'environment', 'history'], 'Helios-Core');
  2244. smalltalk.addMethod(
  2245. smalltalk.method({
  2246. selector: "activate:",
  2247. fn: function (aTab){
  2248. var self=this;
  2249. return smalltalk.withContext(function($ctx1) {
  2250. var $1,$2;
  2251. _st(_st(self)._keyBinder())._flushBindings();
  2252. _st(aTab)._registerBindings();
  2253. self["@activeTab"]=aTab;
  2254. $1=self;
  2255. _st($1)._refresh();
  2256. _st($1)._addToHistory_(aTab);
  2257. $2=_st($1)._show_(aTab);
  2258. return self}, function($ctx1) {$ctx1.fill(self,"activate:",{aTab:aTab},smalltalk.HLManager)})},
  2259. messageSends: ["flushBindings", "keyBinder", "registerBindings", "refresh", "addToHistory:", "show:"]}),
  2260. smalltalk.HLManager);
  2261. smalltalk.addMethod(
  2262. smalltalk.method({
  2263. selector: "activeTab",
  2264. fn: function (){
  2265. var self=this;
  2266. return smalltalk.withContext(function($ctx1) {
  2267. var $1;
  2268. $1=self["@activeTab"];
  2269. return $1;
  2270. }, function($ctx1) {$ctx1.fill(self,"activeTab",{},smalltalk.HLManager)})},
  2271. messageSends: []}),
  2272. smalltalk.HLManager);
  2273. smalltalk.addMethod(
  2274. smalltalk.method({
  2275. selector: "addTab:",
  2276. fn: function (aTab){
  2277. var self=this;
  2278. return smalltalk.withContext(function($ctx1) {
  2279. _st(_st(self)._tabs())._add_(aTab);
  2280. _st(self)._activate_(aTab);
  2281. return self}, function($ctx1) {$ctx1.fill(self,"addTab:",{aTab:aTab},smalltalk.HLManager)})},
  2282. messageSends: ["add:", "tabs", "activate:"]}),
  2283. smalltalk.HLManager);
  2284. smalltalk.addMethod(
  2285. smalltalk.method({
  2286. selector: "addToHistory:",
  2287. fn: function (aTab){
  2288. var self=this;
  2289. return smalltalk.withContext(function($ctx1) {
  2290. _st(self)._removeFromHistory_(aTab);
  2291. _st(_st(self)._history())._add_(aTab);
  2292. return self}, function($ctx1) {$ctx1.fill(self,"addToHistory:",{aTab:aTab},smalltalk.HLManager)})},
  2293. messageSends: ["removeFromHistory:", "add:", "history"]}),
  2294. smalltalk.HLManager);
  2295. smalltalk.addMethod(
  2296. smalltalk.method({
  2297. selector: "confirm:ifFalse:",
  2298. fn: function (aString,aBlock){
  2299. var self=this;
  2300. function $HLConfirmationWidget(){return smalltalk.HLConfirmationWidget||(typeof HLConfirmationWidget=="undefined"?nil:HLConfirmationWidget)}
  2301. return smalltalk.withContext(function($ctx1) {
  2302. var $1,$2;
  2303. $1=_st($HLConfirmationWidget())._new();
  2304. _st($1)._confirmationString_(aString);
  2305. _st($1)._cancelBlock_(aBlock);
  2306. $2=_st($1)._yourself();
  2307. _st($2)._appendToJQuery_(_st("body")._asJQuery());
  2308. return self}, function($ctx1) {$ctx1.fill(self,"confirm:ifFalse:",{aString:aString,aBlock:aBlock},smalltalk.HLManager)})},
  2309. messageSends: ["appendToJQuery:", "asJQuery", "confirmationString:", "new", "cancelBlock:", "yourself"]}),
  2310. smalltalk.HLManager);
  2311. smalltalk.addMethod(
  2312. smalltalk.method({
  2313. selector: "confirm:ifTrue:",
  2314. fn: function (aString,aBlock){
  2315. var self=this;
  2316. function $HLConfirmationWidget(){return smalltalk.HLConfirmationWidget||(typeof HLConfirmationWidget=="undefined"?nil:HLConfirmationWidget)}
  2317. return smalltalk.withContext(function($ctx1) {
  2318. var $1,$2;
  2319. $1=_st($HLConfirmationWidget())._new();
  2320. _st($1)._confirmationString_(aString);
  2321. _st($1)._actionBlock_(aBlock);
  2322. $2=_st($1)._yourself();
  2323. _st($2)._appendToJQuery_(_st("body")._asJQuery());
  2324. return self}, function($ctx1) {$ctx1.fill(self,"confirm:ifTrue:",{aString:aString,aBlock:aBlock},smalltalk.HLManager)})},
  2325. messageSends: ["appendToJQuery:", "asJQuery", "confirmationString:", "new", "actionBlock:", "yourself"]}),
  2326. smalltalk.HLManager);
  2327. smalltalk.addMethod(
  2328. smalltalk.method({
  2329. selector: "defaultEnvironment",
  2330. fn: function (){
  2331. var self=this;
  2332. var parent;
  2333. function $Environment(){return smalltalk.Environment||(typeof Environment=="undefined"?nil:Environment)}
  2334. return smalltalk.withContext(function($ctx1) {
  2335. var $1,$2,$3,$4;
  2336. $1=_st(window)._opener();
  2337. if(($receiver = $1) == nil || $receiver == undefined){
  2338. parent=_st(window)._parent();
  2339. } else {
  2340. parent=$1;
  2341. };
  2342. $2=parent;
  2343. if(($receiver = $2) == nil || $receiver == undefined){
  2344. $3=_st($Environment())._new();
  2345. return $3;
  2346. } else {
  2347. $2;
  2348. };
  2349. $4=_st(_st(_st(parent)._at_("smalltalk"))._at_("Environment"))._new();
  2350. return $4;
  2351. }, function($ctx1) {$ctx1.fill(self,"defaultEnvironment",{parent:parent},smalltalk.HLManager)})},
  2352. messageSends: ["ifNil:", "parent", "opener", "new", "at:"]}),
  2353. smalltalk.HLManager);
  2354. smalltalk.addMethod(
  2355. smalltalk.method({
  2356. selector: "environment",
  2357. fn: function (){
  2358. var self=this;
  2359. return smalltalk.withContext(function($ctx1) {
  2360. var $2,$1;
  2361. $2=self["@environment"];
  2362. if(($receiver = $2) == nil || $receiver == undefined){
  2363. self["@environment"]=_st(self)._defaultEnvironment();
  2364. $1=self["@environment"];
  2365. } else {
  2366. $1=$2;
  2367. };
  2368. return $1;
  2369. }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLManager)})},
  2370. messageSends: ["ifNil:", "defaultEnvironment"]}),
  2371. smalltalk.HLManager);
  2372. smalltalk.addMethod(
  2373. smalltalk.method({
  2374. selector: "environment:",
  2375. fn: function (anEnvironment){
  2376. var self=this;
  2377. return smalltalk.withContext(function($ctx1) {
  2378. self["@environment"]=anEnvironment;
  2379. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment},smalltalk.HLManager)})},
  2380. messageSends: []}),
  2381. smalltalk.HLManager);
  2382. smalltalk.addMethod(
  2383. smalltalk.method({
  2384. selector: "history",
  2385. fn: function (){
  2386. var self=this;
  2387. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  2388. return smalltalk.withContext(function($ctx1) {
  2389. var $2,$1;
  2390. $2=self["@history"];
  2391. if(($receiver = $2) == nil || $receiver == undefined){
  2392. self["@history"]=_st($OrderedCollection())._new();
  2393. $1=self["@history"];
  2394. } else {
  2395. $1=$2;
  2396. };
  2397. return $1;
  2398. }, function($ctx1) {$ctx1.fill(self,"history",{},smalltalk.HLManager)})},
  2399. messageSends: ["ifNil:", "new"]}),
  2400. smalltalk.HLManager);
  2401. smalltalk.addMethod(
  2402. smalltalk.method({
  2403. selector: "history:",
  2404. fn: function (aCollection){
  2405. var self=this;
  2406. return smalltalk.withContext(function($ctx1) {
  2407. self["@history"]=aCollection;
  2408. return self}, function($ctx1) {$ctx1.fill(self,"history:",{aCollection:aCollection},smalltalk.HLManager)})},
  2409. messageSends: []}),
  2410. smalltalk.HLManager);
  2411. smalltalk.addMethod(
  2412. smalltalk.method({
  2413. selector: "initialize",
  2414. fn: function (){
  2415. var self=this;
  2416. function $HLErrorHandler(){return smalltalk.HLErrorHandler||(typeof HLErrorHandler=="undefined"?nil:HLErrorHandler)}
  2417. function $HLProgressHandler(){return smalltalk.HLProgressHandler||(typeof HLProgressHandler=="undefined"?nil:HLProgressHandler)}
  2418. function $HLInspector(){return smalltalk.HLInspector||(typeof HLInspector=="undefined"?nil:HLInspector)}
  2419. function $ErrorHandler(){return smalltalk.ErrorHandler||(typeof ErrorHandler=="undefined"?nil:ErrorHandler)}
  2420. function $ProgressHandler(){return smalltalk.ProgressHandler||(typeof ProgressHandler=="undefined"?nil:ProgressHandler)}
  2421. return smalltalk.withContext(function($ctx1) {
  2422. smalltalk.HLWidget.fn.prototype._initialize.apply(_st(self), []);
  2423. _st($HLErrorHandler())._register();
  2424. _st($HLProgressHandler())._register();
  2425. _st(self)._registerInspector_($HLInspector());
  2426. _st(self)._registerErrorHandler_(_st($ErrorHandler())._current());
  2427. _st(self)._registerProgressHandler_(_st($ProgressHandler())._current());
  2428. _st(_st(self)._keyBinder())._setupEvents();
  2429. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLManager)})},
  2430. messageSends: ["initialize", "register", "registerInspector:", "registerErrorHandler:", "current", "registerProgressHandler:", "setupEvents", "keyBinder"]}),
  2431. smalltalk.HLManager);
  2432. smalltalk.addMethod(
  2433. smalltalk.method({
  2434. selector: "keyBinder",
  2435. fn: function (){
  2436. var self=this;
  2437. function $HLKeyBinder(){return smalltalk.HLKeyBinder||(typeof HLKeyBinder=="undefined"?nil:HLKeyBinder)}
  2438. return smalltalk.withContext(function($ctx1) {
  2439. var $2,$1;
  2440. $2=self["@keyBinder"];
  2441. if(($receiver = $2) == nil || $receiver == undefined){
  2442. self["@keyBinder"]=_st($HLKeyBinder())._new();
  2443. $1=self["@keyBinder"];
  2444. } else {
  2445. $1=$2;
  2446. };
  2447. return $1;
  2448. }, function($ctx1) {$ctx1.fill(self,"keyBinder",{},smalltalk.HLManager)})},
  2449. messageSends: ["ifNil:", "new"]}),
  2450. smalltalk.HLManager);
  2451. smalltalk.addMethod(
  2452. smalltalk.method({
  2453. selector: "refresh",
  2454. fn: function (){
  2455. var self=this;
  2456. return smalltalk.withContext(function($ctx1) {
  2457. _st(_st(window)._jQuery_(".navbar"))._remove();
  2458. _st(self)._appendToJQuery_(_st("body")._asJQuery());
  2459. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLManager)})},
  2460. messageSends: ["remove", "jQuery:", "appendToJQuery:", "asJQuery"]}),
  2461. smalltalk.HLManager);
  2462. smalltalk.addMethod(
  2463. smalltalk.method({
  2464. selector: "registerErrorHandler:",
  2465. fn: function (anErrorHandler){
  2466. var self=this;
  2467. return smalltalk.withContext(function($ctx1) {
  2468. _st(_st(self)._environment())._registerErrorHandler_(anErrorHandler);
  2469. return self}, function($ctx1) {$ctx1.fill(self,"registerErrorHandler:",{anErrorHandler:anErrorHandler},smalltalk.HLManager)})},
  2470. messageSends: ["registerErrorHandler:", "environment"]}),
  2471. smalltalk.HLManager);
  2472. smalltalk.addMethod(
  2473. smalltalk.method({
  2474. selector: "registerInspector:",
  2475. fn: function (anInspector){
  2476. var self=this;
  2477. return smalltalk.withContext(function($ctx1) {
  2478. _st(_st(self)._environment())._registerInspector_(anInspector);
  2479. return self}, function($ctx1) {$ctx1.fill(self,"registerInspector:",{anInspector:anInspector},smalltalk.HLManager)})},
  2480. messageSends: ["registerInspector:", "environment"]}),
  2481. smalltalk.HLManager);
  2482. smalltalk.addMethod(
  2483. smalltalk.method({
  2484. selector: "registerProgressHandler:",
  2485. fn: function (aProgressHandler){
  2486. var self=this;
  2487. return smalltalk.withContext(function($ctx1) {
  2488. _st(_st(self)._environment())._registerProgressHandler_(aProgressHandler);
  2489. return self}, function($ctx1) {$ctx1.fill(self,"registerProgressHandler:",{aProgressHandler:aProgressHandler},smalltalk.HLManager)})},
  2490. messageSends: ["registerProgressHandler:", "environment"]}),
  2491. smalltalk.HLManager);
  2492. smalltalk.addMethod(
  2493. smalltalk.method({
  2494. selector: "removeActiveTab",
  2495. fn: function (){
  2496. var self=this;
  2497. return smalltalk.withContext(function($ctx1) {
  2498. _st(self)._removeTab_(_st(self)._activeTab());
  2499. return self}, function($ctx1) {$ctx1.fill(self,"removeActiveTab",{},smalltalk.HLManager)})},
  2500. messageSends: ["removeTab:", "activeTab"]}),
  2501. smalltalk.HLManager);
  2502. smalltalk.addMethod(
  2503. smalltalk.method({
  2504. selector: "removeFromHistory:",
  2505. fn: function (aTab){
  2506. var self=this;
  2507. return smalltalk.withContext(function($ctx1) {
  2508. _st(self)._history_(_st(_st(self)._history())._reject_((function(each){
  2509. return smalltalk.withContext(function($ctx2) {
  2510. return _st(each).__eq_eq(aTab);
  2511. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})));
  2512. return self}, function($ctx1) {$ctx1.fill(self,"removeFromHistory:",{aTab:aTab},smalltalk.HLManager)})},
  2513. messageSends: ["history:", "reject:", "==", "history"]}),
  2514. smalltalk.HLManager);
  2515. smalltalk.addMethod(
  2516. smalltalk.method({
  2517. selector: "removeTab:",
  2518. fn: function (aTab){
  2519. var self=this;
  2520. return smalltalk.withContext(function($ctx1) {
  2521. var $1,$2;
  2522. $1=_st(_st(self)._tabs())._includes_(aTab);
  2523. if(! smalltalk.assert($1)){
  2524. $2=self;
  2525. return $2;
  2526. };
  2527. _st(self)._removeFromHistory_(aTab);
  2528. _st(_st(self)._tabs())._remove_(aTab);
  2529. _st(_st(self)._keyBinder())._flushBindings();
  2530. _st(aTab)._remove();
  2531. _st(self)._refresh();
  2532. _st(_st(self)._history())._ifNotEmpty_((function(){
  2533. return smalltalk.withContext(function($ctx2) {
  2534. return _st(_st(_st(self)._history())._last())._activate();
  2535. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2536. return self}, function($ctx1) {$ctx1.fill(self,"removeTab:",{aTab:aTab},smalltalk.HLManager)})},
  2537. messageSends: ["ifFalse:", "includes:", "tabs", "removeFromHistory:", "remove:", "flushBindings", "keyBinder", "remove", "refresh", "ifNotEmpty:", "activate", "last", "history"]}),
  2538. smalltalk.HLManager);
  2539. smalltalk.addMethod(
  2540. smalltalk.method({
  2541. selector: "renderAddOn:",
  2542. fn: function (html){
  2543. var self=this;
  2544. function $HLWidget(){return smalltalk.HLWidget||(typeof HLWidget=="undefined"?nil:HLWidget)}
  2545. return smalltalk.withContext(function($ctx1) {
  2546. var $1,$3,$4,$5,$7,$8,$6,$2;
  2547. $1=_st(html)._li();
  2548. _st($1)._class_("dropdown");
  2549. $2=_st($1)._with_((function(){
  2550. return smalltalk.withContext(function($ctx2) {
  2551. $3=_st(html)._a();
  2552. _st($3)._class_("dropdown-toggle");
  2553. _st($3)._at_put_("data-toggle","dropdown");
  2554. $4=_st($3)._with_((function(){
  2555. return smalltalk.withContext(function($ctx3) {
  2556. _st(html)._with_("Open...");
  2557. return _st(_st(html)._tag_("b"))._class_("caret");
  2558. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2559. $4;
  2560. $5=_st(html)._ul();
  2561. _st($5)._class_("dropdown-menu");
  2562. $6=_st($5)._with_((function(){
  2563. return smalltalk.withContext(function($ctx3) {
  2564. return _st(_st(_st(_st($HLWidget())._withAllSubclasses())._select_((function(each){
  2565. return smalltalk.withContext(function($ctx4) {
  2566. return _st(each)._canBeOpenAsTab();
  2567. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx3)})})))._sorted_((function(a,b){
  2568. return smalltalk.withContext(function($ctx4) {
  2569. return _st(_st(a)._tabPriority()).__lt(_st(b)._tabPriority());
  2570. }, function($ctx4) {$ctx4.fillBlock({a:a,b:b},$ctx3)})})))._do_((function(each){
  2571. return smalltalk.withContext(function($ctx4) {
  2572. return _st(_st(html)._li())._with_((function(){
  2573. return smalltalk.withContext(function($ctx5) {
  2574. $7=_st(html)._a();
  2575. _st($7)._with_(_st(each)._tabLabel());
  2576. $8=_st($7)._onClick_((function(){
  2577. return smalltalk.withContext(function($ctx6) {
  2578. return _st(each)._openAsTab();
  2579. }, function($ctx6) {$ctx6.fillBlock({},$ctx5)})}));
  2580. return $8;
  2581. }, function($ctx5) {$ctx5.fillBlock({},$ctx4)})}));
  2582. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx3)})}));
  2583. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2584. return $6;
  2585. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2586. return self}, function($ctx1) {$ctx1.fill(self,"renderAddOn:",{html:html},smalltalk.HLManager)})},
  2587. messageSends: ["class:", "li", "with:", "a", "at:put:", "tag:", "ul", "do:", "tabLabel", "onClick:", "openAsTab", "sorted:", "<", "tabPriority", "select:", "canBeOpenAsTab", "withAllSubclasses"]}),
  2588. smalltalk.HLManager);
  2589. smalltalk.addMethod(
  2590. smalltalk.method({
  2591. selector: "renderContentOn:",
  2592. fn: function (html){
  2593. var self=this;
  2594. return smalltalk.withContext(function($ctx1) {
  2595. var $1,$3,$4,$2;
  2596. $1=_st(html)._div();
  2597. _st($1)._class_("navbar navbar-fixed-top");
  2598. $2=_st($1)._with_((function(){
  2599. return smalltalk.withContext(function($ctx2) {
  2600. $3=_st(html)._div();
  2601. _st($3)._class_("navbar-inner");
  2602. $4=_st($3)._with_((function(){
  2603. return smalltalk.withContext(function($ctx3) {
  2604. return _st(self)._renderTabsOn_(html);
  2605. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2606. return $4;
  2607. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2608. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLManager)})},
  2609. messageSends: ["class:", "div", "with:", "renderTabsOn:"]}),
  2610. smalltalk.HLManager);
  2611. smalltalk.addMethod(
  2612. smalltalk.method({
  2613. selector: "renderTabsOn:",
  2614. fn: function (html){
  2615. var self=this;
  2616. return smalltalk.withContext(function($ctx1) {
  2617. var $1,$3,$4,$6,$5,$8,$9,$10,$11,$7,$2;
  2618. $1=_st(html)._ul();
  2619. _st($1)._class_("nav");
  2620. $2=_st($1)._with_((function(){
  2621. return smalltalk.withContext(function($ctx2) {
  2622. _st(_st(self)._tabs())._do_((function(each){
  2623. return smalltalk.withContext(function($ctx3) {
  2624. $3=_st(html)._li();
  2625. $4=$3;
  2626. $6=_st(each)._isActive();
  2627. if(smalltalk.assert($6)){
  2628. $5="active";
  2629. } else {
  2630. $5="inactive";
  2631. };
  2632. _st($4)._class_($5);
  2633. $7=_st($3)._with_((function(){
  2634. return smalltalk.withContext(function($ctx4) {
  2635. $8=_st(html)._a();
  2636. _st($8)._with_((function(){
  2637. return smalltalk.withContext(function($ctx5) {
  2638. _st(_st(_st(html)._tag_("i"))._class_("close"))._onClick_((function(){
  2639. return smalltalk.withContext(function($ctx6) {
  2640. return _st(self)._removeTab_(each);
  2641. }, function($ctx6) {$ctx6.fillBlock({},$ctx5)})}));
  2642. $9=_st(html)._span();
  2643. _st($9)._class_(_st(each)._cssClass());
  2644. $10=_st($9)._with_(_st(each)._displayLabel());
  2645. return $10;
  2646. }, function($ctx5) {$ctx5.fillBlock({},$ctx4)})}));
  2647. $11=_st($8)._onClick_((function(){
  2648. return smalltalk.withContext(function($ctx5) {
  2649. return _st(each)._activate();
  2650. }, function($ctx5) {$ctx5.fillBlock({},$ctx4)})}));
  2651. return $11;
  2652. }, function($ctx4) {$ctx4.fillBlock({},$ctx3)})}));
  2653. return $7;
  2654. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx2)})}));
  2655. return _st(self)._renderAddOn_(html);
  2656. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2657. return self}, function($ctx1) {$ctx1.fill(self,"renderTabsOn:",{html:html},smalltalk.HLManager)})},
  2658. messageSends: ["class:", "ul", "with:", "do:", "ifTrue:ifFalse:", "isActive", "li", "onClick:", "removeTab:", "tag:", "cssClass", "span", "displayLabel", "a", "activate", "tabs", "renderAddOn:"]}),
  2659. smalltalk.HLManager);
  2660. smalltalk.addMethod(
  2661. smalltalk.method({
  2662. selector: "request:do:",
  2663. fn: function (aString,aBlock){
  2664. var self=this;
  2665. return smalltalk.withContext(function($ctx1) {
  2666. _st(self)._request_value_do_(aString,"",aBlock);
  2667. return self}, function($ctx1) {$ctx1.fill(self,"request:do:",{aString:aString,aBlock:aBlock},smalltalk.HLManager)})},
  2668. messageSends: ["request:value:do:"]}),
  2669. smalltalk.HLManager);
  2670. smalltalk.addMethod(
  2671. smalltalk.method({
  2672. selector: "request:value:do:",
  2673. fn: function (aString,valueString,aBlock){
  2674. var self=this;
  2675. function $HLRequestWidget(){return smalltalk.HLRequestWidget||(typeof HLRequestWidget=="undefined"?nil:HLRequestWidget)}
  2676. return smalltalk.withContext(function($ctx1) {
  2677. var $1,$2;
  2678. $1=_st($HLRequestWidget())._new();
  2679. _st($1)._confirmationString_(aString);
  2680. _st($1)._actionBlock_(aBlock);
  2681. _st($1)._value_(valueString);
  2682. $2=_st($1)._yourself();
  2683. _st($2)._appendToJQuery_(_st("body")._asJQuery());
  2684. return self}, function($ctx1) {$ctx1.fill(self,"request:value:do:",{aString:aString,valueString:valueString,aBlock:aBlock},smalltalk.HLManager)})},
  2685. messageSends: ["appendToJQuery:", "asJQuery", "confirmationString:", "new", "actionBlock:", "value:", "yourself"]}),
  2686. smalltalk.HLManager);
  2687. smalltalk.addMethod(
  2688. smalltalk.method({
  2689. selector: "show:",
  2690. fn: function (aTab){
  2691. var self=this;
  2692. return smalltalk.withContext(function($ctx1) {
  2693. var $1,$2;
  2694. _st(_st(self)._tabs())._do_((function(each){
  2695. return smalltalk.withContext(function($ctx2) {
  2696. return _st(each)._hide();
  2697. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  2698. $1=aTab;
  2699. _st($1)._show();
  2700. $2=_st($1)._focus();
  2701. return self}, function($ctx1) {$ctx1.fill(self,"show:",{aTab:aTab},smalltalk.HLManager)})},
  2702. messageSends: ["do:", "hide", "tabs", "show", "focus"]}),
  2703. smalltalk.HLManager);
  2704. smalltalk.addMethod(
  2705. smalltalk.method({
  2706. selector: "tabs",
  2707. fn: function (){
  2708. var self=this;
  2709. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  2710. return smalltalk.withContext(function($ctx1) {
  2711. var $2,$1;
  2712. $2=self["@tabs"];
  2713. if(($receiver = $2) == nil || $receiver == undefined){
  2714. self["@tabs"]=_st($OrderedCollection())._new();
  2715. $1=self["@tabs"];
  2716. } else {
  2717. $1=$2;
  2718. };
  2719. return $1;
  2720. }, function($ctx1) {$ctx1.fill(self,"tabs",{},smalltalk.HLManager)})},
  2721. messageSends: ["ifNil:", "new"]}),
  2722. smalltalk.HLManager);
  2723. smalltalk.HLManager.klass.iVarNames = ['current'];
  2724. smalltalk.addMethod(
  2725. smalltalk.method({
  2726. selector: "current",
  2727. fn: function (){
  2728. var self=this;
  2729. return smalltalk.withContext(function($ctx1) {
  2730. var $2,$1;
  2731. $2=self["@current"];
  2732. if(($receiver = $2) == nil || $receiver == undefined){
  2733. self["@current"]=_st(_st(self)._basicNew())._initialize();
  2734. $1=self["@current"];
  2735. } else {
  2736. $1=$2;
  2737. };
  2738. return $1;
  2739. }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.HLManager.klass)})},
  2740. messageSends: ["ifNil:", "initialize", "basicNew"]}),
  2741. smalltalk.HLManager.klass);
  2742. smalltalk.addMethod(
  2743. smalltalk.method({
  2744. selector: "initialize",
  2745. fn: function (){
  2746. var self=this;
  2747. return smalltalk.withContext(function($ctx1) {
  2748. _st(_st(self)._current())._appendToJQuery_(_st("body")._asJQuery());
  2749. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLManager.klass)})},
  2750. messageSends: ["appendToJQuery:", "asJQuery", "current"]}),
  2751. smalltalk.HLManager.klass);
  2752. smalltalk.addMethod(
  2753. smalltalk.method({
  2754. selector: "new",
  2755. fn: function (){
  2756. var self=this;
  2757. return smalltalk.withContext(function($ctx1) {
  2758. _st(self)._shouldNotImplement();
  2759. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.HLManager.klass)})},
  2760. messageSends: ["shouldNotImplement"]}),
  2761. smalltalk.HLManager.klass);
  2762. smalltalk.addClass('HLModalWidget', smalltalk.HLWidget, [], 'Helios-Core');
  2763. smalltalk.addMethod(
  2764. smalltalk.method({
  2765. selector: "cancel",
  2766. fn: function (){
  2767. var self=this;
  2768. return smalltalk.withContext(function($ctx1) {
  2769. _st(self)._remove();
  2770. return self}, function($ctx1) {$ctx1.fill(self,"cancel",{},smalltalk.HLModalWidget)})},
  2771. messageSends: ["remove"]}),
  2772. smalltalk.HLModalWidget);
  2773. smalltalk.addMethod(
  2774. smalltalk.method({
  2775. selector: "cssClass",
  2776. fn: function (){
  2777. var self=this;
  2778. return smalltalk.withContext(function($ctx1) {
  2779. return "";
  2780. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.HLModalWidget)})},
  2781. messageSends: []}),
  2782. smalltalk.HLModalWidget);
  2783. smalltalk.addMethod(
  2784. smalltalk.method({
  2785. selector: "remove",
  2786. fn: function (){
  2787. var self=this;
  2788. return smalltalk.withContext(function($ctx1) {
  2789. _st(_st(window)._jQuery_(".dialog"))._removeClass_("active");
  2790. _st((function(){
  2791. return smalltalk.withContext(function($ctx2) {
  2792. _st(_st(window)._jQuery_("#overlay"))._remove();
  2793. return _st(_st(window)._jQuery_(".dialog"))._remove();
  2794. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithTimeout_((300));
  2795. return self}, function($ctx1) {$ctx1.fill(self,"remove",{},smalltalk.HLModalWidget)})},
  2796. messageSends: ["removeClass:", "jQuery:", "valueWithTimeout:", "remove"]}),
  2797. smalltalk.HLModalWidget);
  2798. smalltalk.addMethod(
  2799. smalltalk.method({
  2800. selector: "renderButtonsOn:",
  2801. fn: function (html){
  2802. var self=this;
  2803. return smalltalk.withContext(function($ctx1) {
  2804. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLModalWidget)})},
  2805. messageSends: []}),
  2806. smalltalk.HLModalWidget);
  2807. smalltalk.addMethod(
  2808. smalltalk.method({
  2809. selector: "renderContentOn:",
  2810. fn: function (html){
  2811. var self=this;
  2812. var confirmButton;
  2813. return smalltalk.withContext(function($ctx1) {
  2814. var $1,$3,$4,$2;
  2815. _st(_st(html)._div())._id_("overlay");
  2816. $1=_st(html)._div();
  2817. _st($1)._class_(_st("dialog ").__comma(_st(self)._cssClass()));
  2818. $2=_st($1)._with_((function(){
  2819. return smalltalk.withContext(function($ctx2) {
  2820. $3=self;
  2821. _st($3)._renderMainOn_(html);
  2822. $4=_st($3)._renderButtonsOn_(html);
  2823. return $4;
  2824. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  2825. _st(_st(window)._jQuery_(".dialog"))._addClass_("active");
  2826. _st(self)._setupKeyBindings();
  2827. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html,confirmButton:confirmButton},smalltalk.HLModalWidget)})},
  2828. messageSends: ["id:", "div", "class:", ",", "cssClass", "with:", "renderMainOn:", "renderButtonsOn:", "addClass:", "jQuery:", "setupKeyBindings"]}),
  2829. smalltalk.HLModalWidget);
  2830. smalltalk.addMethod(
  2831. smalltalk.method({
  2832. selector: "renderMainOn:",
  2833. fn: function (html){
  2834. var self=this;
  2835. return smalltalk.withContext(function($ctx1) {
  2836. return self}, function($ctx1) {$ctx1.fill(self,"renderMainOn:",{html:html},smalltalk.HLModalWidget)})},
  2837. messageSends: []}),
  2838. smalltalk.HLModalWidget);
  2839. smalltalk.addMethod(
  2840. smalltalk.method({
  2841. selector: "setupKeyBindings",
  2842. fn: function (){
  2843. var self=this;
  2844. return smalltalk.withContext(function($ctx1) {
  2845. var $1;
  2846. _st(_st(window)._jQuery_(".dialog"))._keyup_((function(e){
  2847. return smalltalk.withContext(function($ctx2) {
  2848. $1=_st(_st(e)._keyCode()).__eq((27));
  2849. if(smalltalk.assert($1)){
  2850. return _st(self)._cancel();
  2851. };
  2852. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  2853. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{},smalltalk.HLModalWidget)})},
  2854. messageSends: ["keyup:", "ifTrue:", "cancel", "=", "keyCode", "jQuery:"]}),
  2855. smalltalk.HLModalWidget);
  2856. smalltalk.addClass('HLConfirmationWidget', smalltalk.HLModalWidget, ['confirmationString', 'actionBlock', 'cancelBlock'], 'Helios-Core');
  2857. smalltalk.addMethod(
  2858. smalltalk.method({
  2859. selector: "actionBlock",
  2860. fn: function (){
  2861. var self=this;
  2862. return smalltalk.withContext(function($ctx1) {
  2863. var $2,$1;
  2864. $2=self["@actionBlock"];
  2865. if(($receiver = $2) == nil || $receiver == undefined){
  2866. $1=(function(){
  2867. return smalltalk.withContext(function($ctx2) {
  2868. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  2869. } else {
  2870. $1=$2;
  2871. };
  2872. return $1;
  2873. }, function($ctx1) {$ctx1.fill(self,"actionBlock",{},smalltalk.HLConfirmationWidget)})},
  2874. messageSends: ["ifNil:"]}),
  2875. smalltalk.HLConfirmationWidget);
  2876. smalltalk.addMethod(
  2877. smalltalk.method({
  2878. selector: "actionBlock:",
  2879. fn: function (aBlock){
  2880. var self=this;
  2881. return smalltalk.withContext(function($ctx1) {
  2882. self["@actionBlock"]=aBlock;
  2883. return self}, function($ctx1) {$ctx1.fill(self,"actionBlock:",{aBlock:aBlock},smalltalk.HLConfirmationWidget)})},
  2884. messageSends: []}),
  2885. smalltalk.HLConfirmationWidget);
  2886. smalltalk.addMethod(
  2887. smalltalk.method({
  2888. selector: "cancel",
  2889. fn: function (){
  2890. var self=this;
  2891. return smalltalk.withContext(function($ctx1) {
  2892. _st(_st(self)._cancelBlock())._value();
  2893. _st(self)._remove();
  2894. return self}, function($ctx1) {$ctx1.fill(self,"cancel",{},smalltalk.HLConfirmationWidget)})},
  2895. messageSends: ["value", "cancelBlock", "remove"]}),
  2896. smalltalk.HLConfirmationWidget);
  2897. smalltalk.addMethod(
  2898. smalltalk.method({
  2899. selector: "cancelBlock",
  2900. fn: function (){
  2901. var self=this;
  2902. return smalltalk.withContext(function($ctx1) {
  2903. var $2,$1;
  2904. $2=self["@cancelBlock"];
  2905. if(($receiver = $2) == nil || $receiver == undefined){
  2906. $1=(function(){
  2907. return smalltalk.withContext(function($ctx2) {
  2908. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  2909. } else {
  2910. $1=$2;
  2911. };
  2912. return $1;
  2913. }, function($ctx1) {$ctx1.fill(self,"cancelBlock",{},smalltalk.HLConfirmationWidget)})},
  2914. messageSends: ["ifNil:"]}),
  2915. smalltalk.HLConfirmationWidget);
  2916. smalltalk.addMethod(
  2917. smalltalk.method({
  2918. selector: "cancelBlock:",
  2919. fn: function (aBlock){
  2920. var self=this;
  2921. return smalltalk.withContext(function($ctx1) {
  2922. self["@cancelBlock"]=aBlock;
  2923. return self}, function($ctx1) {$ctx1.fill(self,"cancelBlock:",{aBlock:aBlock},smalltalk.HLConfirmationWidget)})},
  2924. messageSends: []}),
  2925. smalltalk.HLConfirmationWidget);
  2926. smalltalk.addMethod(
  2927. smalltalk.method({
  2928. selector: "confirm",
  2929. fn: function (){
  2930. var self=this;
  2931. return smalltalk.withContext(function($ctx1) {
  2932. _st(_st(self)._actionBlock())._value();
  2933. _st(self)._remove();
  2934. return self}, function($ctx1) {$ctx1.fill(self,"confirm",{},smalltalk.HLConfirmationWidget)})},
  2935. messageSends: ["value", "actionBlock", "remove"]}),
  2936. smalltalk.HLConfirmationWidget);
  2937. smalltalk.addMethod(
  2938. smalltalk.method({
  2939. selector: "confirmationString",
  2940. fn: function (){
  2941. var self=this;
  2942. return smalltalk.withContext(function($ctx1) {
  2943. var $2,$1;
  2944. $2=self["@confirmationString"];
  2945. if(($receiver = $2) == nil || $receiver == undefined){
  2946. $1="Confirm";
  2947. } else {
  2948. $1=$2;
  2949. };
  2950. return $1;
  2951. }, function($ctx1) {$ctx1.fill(self,"confirmationString",{},smalltalk.HLConfirmationWidget)})},
  2952. messageSends: ["ifNil:"]}),
  2953. smalltalk.HLConfirmationWidget);
  2954. smalltalk.addMethod(
  2955. smalltalk.method({
  2956. selector: "confirmationString:",
  2957. fn: function (aString){
  2958. var self=this;
  2959. return smalltalk.withContext(function($ctx1) {
  2960. self["@confirmationString"]=aString;
  2961. return self}, function($ctx1) {$ctx1.fill(self,"confirmationString:",{aString:aString},smalltalk.HLConfirmationWidget)})},
  2962. messageSends: []}),
  2963. smalltalk.HLConfirmationWidget);
  2964. smalltalk.addMethod(
  2965. smalltalk.method({
  2966. selector: "remove",
  2967. fn: function (){
  2968. var self=this;
  2969. return smalltalk.withContext(function($ctx1) {
  2970. _st(_st(window)._jQuery_(".dialog"))._removeClass_("active");
  2971. _st((function(){
  2972. return smalltalk.withContext(function($ctx2) {
  2973. _st(_st(window)._jQuery_("#overlay"))._remove();
  2974. return _st(_st(window)._jQuery_(".dialog"))._remove();
  2975. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithTimeout_((300));
  2976. return self}, function($ctx1) {$ctx1.fill(self,"remove",{},smalltalk.HLConfirmationWidget)})},
  2977. messageSends: ["removeClass:", "jQuery:", "valueWithTimeout:", "remove"]}),
  2978. smalltalk.HLConfirmationWidget);
  2979. smalltalk.addMethod(
  2980. smalltalk.method({
  2981. selector: "renderButtonsOn:",
  2982. fn: function (html){
  2983. var self=this;
  2984. var confirmButton;
  2985. return smalltalk.withContext(function($ctx1) {
  2986. var $1,$3,$4,$5,$6,$2;
  2987. $1=_st(html)._div();
  2988. _st($1)._class_("buttons");
  2989. $2=_st($1)._with_((function(){
  2990. return smalltalk.withContext(function($ctx2) {
  2991. $3=_st(html)._button();
  2992. _st($3)._class_("button");
  2993. _st($3)._with_("Cancel");
  2994. $4=_st($3)._onClick_((function(){
  2995. return smalltalk.withContext(function($ctx3) {
  2996. return _st(self)._cancel();
  2997. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  2998. $4;
  2999. $5=_st(html)._button();
  3000. _st($5)._class_("button default");
  3001. _st($5)._with_("Confirm");
  3002. $6=_st($5)._onClick_((function(){
  3003. return smalltalk.withContext(function($ctx3) {
  3004. return _st(self)._confirm();
  3005. }, function($ctx3) {$ctx3.fillBlock({},$ctx2)})}));
  3006. confirmButton=$6;
  3007. return confirmButton;
  3008. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3009. _st(_st(confirmButton)._asJQuery())._focus();
  3010. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html,confirmButton:confirmButton},smalltalk.HLConfirmationWidget)})},
  3011. messageSends: ["class:", "div", "with:", "button", "onClick:", "cancel", "confirm", "focus", "asJQuery"]}),
  3012. smalltalk.HLConfirmationWidget);
  3013. smalltalk.addMethod(
  3014. smalltalk.method({
  3015. selector: "renderMainOn:",
  3016. fn: function (html){
  3017. var self=this;
  3018. return smalltalk.withContext(function($ctx1) {
  3019. _st(_st(html)._span())._with_(_st(self)._confirmationString());
  3020. return self}, function($ctx1) {$ctx1.fill(self,"renderMainOn:",{html:html},smalltalk.HLConfirmationWidget)})},
  3021. messageSends: ["with:", "confirmationString", "span"]}),
  3022. smalltalk.HLConfirmationWidget);
  3023. smalltalk.addClass('HLRequestWidget', smalltalk.HLConfirmationWidget, ['input', 'value'], 'Helios-Core');
  3024. smalltalk.addMethod(
  3025. smalltalk.method({
  3026. selector: "confirm",
  3027. fn: function (){
  3028. var self=this;
  3029. return smalltalk.withContext(function($ctx1) {
  3030. _st(_st(self)._actionBlock())._value_(_st(_st(self["@input"])._asJQuery())._val());
  3031. _st(self)._remove();
  3032. return self}, function($ctx1) {$ctx1.fill(self,"confirm",{},smalltalk.HLRequestWidget)})},
  3033. messageSends: ["value:", "val", "asJQuery", "actionBlock", "remove"]}),
  3034. smalltalk.HLRequestWidget);
  3035. smalltalk.addMethod(
  3036. smalltalk.method({
  3037. selector: "cssClass",
  3038. fn: function (){
  3039. var self=this;
  3040. return smalltalk.withContext(function($ctx1) {
  3041. return "large";
  3042. }, function($ctx1) {$ctx1.fill(self,"cssClass",{},smalltalk.HLRequestWidget)})},
  3043. messageSends: []}),
  3044. smalltalk.HLRequestWidget);
  3045. smalltalk.addMethod(
  3046. smalltalk.method({
  3047. selector: "renderMainOn:",
  3048. fn: function (html){
  3049. var self=this;
  3050. return smalltalk.withContext(function($ctx1) {
  3051. smalltalk.HLConfirmationWidget.fn.prototype._renderMainOn_.apply(_st(self), [html]);
  3052. self["@input"]=_st(html)._textarea();
  3053. _st(_st(self["@input"])._asJQuery())._val_(_st(self)._value());
  3054. return self}, function($ctx1) {$ctx1.fill(self,"renderMainOn:",{html:html},smalltalk.HLRequestWidget)})},
  3055. messageSends: ["renderMainOn:", "textarea", "val:", "value", "asJQuery"]}),
  3056. smalltalk.HLRequestWidget);
  3057. smalltalk.addMethod(
  3058. smalltalk.method({
  3059. selector: "value",
  3060. fn: function (){
  3061. var self=this;
  3062. return smalltalk.withContext(function($ctx1) {
  3063. var $2,$1;
  3064. $2=self["@value"];
  3065. if(($receiver = $2) == nil || $receiver == undefined){
  3066. $1="";
  3067. } else {
  3068. $1=$2;
  3069. };
  3070. return $1;
  3071. }, function($ctx1) {$ctx1.fill(self,"value",{},smalltalk.HLRequestWidget)})},
  3072. messageSends: ["ifNil:"]}),
  3073. smalltalk.HLRequestWidget);
  3074. smalltalk.addMethod(
  3075. smalltalk.method({
  3076. selector: "value:",
  3077. fn: function (aString){
  3078. var self=this;
  3079. return smalltalk.withContext(function($ctx1) {
  3080. self["@value"]=aString;
  3081. return self}, function($ctx1) {$ctx1.fill(self,"value:",{aString:aString},smalltalk.HLRequestWidget)})},
  3082. messageSends: []}),
  3083. smalltalk.HLRequestWidget);
  3084. smalltalk.addClass('HLProgressWidget', smalltalk.HLModalWidget, ['progressBars', 'visible'], 'Helios-Core');
  3085. smalltalk.addMethod(
  3086. smalltalk.method({
  3087. selector: "addProgressBar:",
  3088. fn: function (aProgressBar){
  3089. var self=this;
  3090. return smalltalk.withContext(function($ctx1) {
  3091. _st(self)._show();
  3092. _st(_st(self)._progressBars())._add_(aProgressBar);
  3093. _st(aProgressBar)._appendToJQuery_(_st(_st(_st(self)._wrapper())._asJQuery())._find_(".dialog"));
  3094. return self}, function($ctx1) {$ctx1.fill(self,"addProgressBar:",{aProgressBar:aProgressBar},smalltalk.HLProgressWidget)})},
  3095. messageSends: ["show", "add:", "progressBars", "appendToJQuery:", "find:", "asJQuery", "wrapper"]}),
  3096. smalltalk.HLProgressWidget);
  3097. smalltalk.addMethod(
  3098. smalltalk.method({
  3099. selector: "do:on:displaying:",
  3100. fn: function (aBlock,aCollection,aString){
  3101. var self=this;
  3102. var progressBar;
  3103. function $HLProgressBarWidget(){return smalltalk.HLProgressBarWidget||(typeof HLProgressBarWidget=="undefined"?nil:HLProgressBarWidget)}
  3104. return smalltalk.withContext(function($ctx1) {
  3105. var $1,$2;
  3106. $1=_st($HLProgressBarWidget())._new();
  3107. _st($1)._parent_(self);
  3108. _st($1)._label_(aString);
  3109. _st($1)._workBlock_(aBlock);
  3110. _st($1)._collection_(aCollection);
  3111. $2=_st($1)._yourself();
  3112. progressBar=$2;
  3113. _st(self)._addProgressBar_(progressBar);
  3114. _st(progressBar)._start();
  3115. return self}, function($ctx1) {$ctx1.fill(self,"do:on:displaying:",{aBlock:aBlock,aCollection:aCollection,aString:aString,progressBar:progressBar},smalltalk.HLProgressWidget)})},
  3116. messageSends: ["parent:", "new", "label:", "workBlock:", "collection:", "yourself", "addProgressBar:", "start"]}),
  3117. smalltalk.HLProgressWidget);
  3118. smalltalk.addMethod(
  3119. smalltalk.method({
  3120. selector: "isVisible",
  3121. fn: function (){
  3122. var self=this;
  3123. return smalltalk.withContext(function($ctx1) {
  3124. var $2,$1;
  3125. $2=self["@visible"];
  3126. if(($receiver = $2) == nil || $receiver == undefined){
  3127. $1=false;
  3128. } else {
  3129. $1=$2;
  3130. };
  3131. return $1;
  3132. }, function($ctx1) {$ctx1.fill(self,"isVisible",{},smalltalk.HLProgressWidget)})},
  3133. messageSends: ["ifNil:"]}),
  3134. smalltalk.HLProgressWidget);
  3135. smalltalk.addMethod(
  3136. smalltalk.method({
  3137. selector: "progressBars",
  3138. fn: function (){
  3139. var self=this;
  3140. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  3141. return smalltalk.withContext(function($ctx1) {
  3142. var $2,$1;
  3143. $2=self["@progressBars"];
  3144. if(($receiver = $2) == nil || $receiver == undefined){
  3145. self["@progressBars"]=_st($OrderedCollection())._new();
  3146. $1=self["@progressBars"];
  3147. } else {
  3148. $1=$2;
  3149. };
  3150. return $1;
  3151. }, function($ctx1) {$ctx1.fill(self,"progressBars",{},smalltalk.HLProgressWidget)})},
  3152. messageSends: ["ifNil:", "new"]}),
  3153. smalltalk.HLProgressWidget);
  3154. smalltalk.addMethod(
  3155. smalltalk.method({
  3156. selector: "remove",
  3157. fn: function (){
  3158. var self=this;
  3159. return smalltalk.withContext(function($ctx1) {
  3160. var $1;
  3161. $1=_st(self)._isVisible();
  3162. if(smalltalk.assert($1)){
  3163. self["@visible"]=false;
  3164. self["@visible"];
  3165. smalltalk.HLModalWidget.fn.prototype._remove.apply(_st(self), []);
  3166. };
  3167. return self}, function($ctx1) {$ctx1.fill(self,"remove",{},smalltalk.HLProgressWidget)})},
  3168. messageSends: ["ifTrue:", "remove", "isVisible"]}),
  3169. smalltalk.HLProgressWidget);
  3170. smalltalk.addMethod(
  3171. smalltalk.method({
  3172. selector: "removeProgressBar:",
  3173. fn: function (aProgressBar){
  3174. var self=this;
  3175. return smalltalk.withContext(function($ctx1) {
  3176. _st(_st(self)._progressBars())._remove_ifAbsent_(aProgressBar,(function(){
  3177. return smalltalk.withContext(function($ctx2) {
  3178. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3179. _st(_st(_st(aProgressBar)._wrapper())._asJQuery())._remove();
  3180. _st(_st(self)._progressBars())._ifEmpty_((function(){
  3181. return smalltalk.withContext(function($ctx2) {
  3182. return _st(self)._remove();
  3183. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3184. return self}, function($ctx1) {$ctx1.fill(self,"removeProgressBar:",{aProgressBar:aProgressBar},smalltalk.HLProgressWidget)})},
  3185. messageSends: ["remove:ifAbsent:", "progressBars", "remove", "asJQuery", "wrapper", "ifEmpty:"]}),
  3186. smalltalk.HLProgressWidget);
  3187. smalltalk.addMethod(
  3188. smalltalk.method({
  3189. selector: "renderButtonsOn:",
  3190. fn: function (html){
  3191. var self=this;
  3192. return smalltalk.withContext(function($ctx1) {
  3193. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLProgressWidget)})},
  3194. messageSends: []}),
  3195. smalltalk.HLProgressWidget);
  3196. smalltalk.addMethod(
  3197. smalltalk.method({
  3198. selector: "renderMainOn:",
  3199. fn: function (html){
  3200. var self=this;
  3201. return smalltalk.withContext(function($ctx1) {
  3202. _st(_st(self)._progressBars())._do_((function(each){
  3203. return smalltalk.withContext(function($ctx2) {
  3204. return _st(html)._with_(each);
  3205. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  3206. return self}, function($ctx1) {$ctx1.fill(self,"renderMainOn:",{html:html},smalltalk.HLProgressWidget)})},
  3207. messageSends: ["do:", "with:", "progressBars"]}),
  3208. smalltalk.HLProgressWidget);
  3209. smalltalk.addMethod(
  3210. smalltalk.method({
  3211. selector: "show",
  3212. fn: function (){
  3213. var self=this;
  3214. return smalltalk.withContext(function($ctx1) {
  3215. var $1;
  3216. $1=_st(self)._isVisible();
  3217. if(! smalltalk.assert($1)){
  3218. self["@visible"]=true;
  3219. self["@visible"];
  3220. _st(self)._appendToJQuery_(_st("body")._asJQuery());
  3221. };
  3222. return self}, function($ctx1) {$ctx1.fill(self,"show",{},smalltalk.HLProgressWidget)})},
  3223. messageSends: ["ifFalse:", "appendToJQuery:", "asJQuery", "isVisible"]}),
  3224. smalltalk.HLProgressWidget);
  3225. smalltalk.HLProgressWidget.klass.iVarNames = ['default'];
  3226. smalltalk.addMethod(
  3227. smalltalk.method({
  3228. selector: "default",
  3229. fn: function (){
  3230. var self=this;
  3231. return smalltalk.withContext(function($ctx1) {
  3232. var $2,$1;
  3233. $2=self["@default"];
  3234. if(($receiver = $2) == nil || $receiver == undefined){
  3235. self["@default"]=_st(self)._new();
  3236. $1=self["@default"];
  3237. } else {
  3238. $1=$2;
  3239. };
  3240. return $1;
  3241. }, function($ctx1) {$ctx1.fill(self,"default",{},smalltalk.HLProgressWidget.klass)})},
  3242. messageSends: ["ifNil:", "new"]}),
  3243. smalltalk.HLProgressWidget.klass);
  3244. smalltalk.addClass('HLProgressBarWidget', smalltalk.HLWidget, ['label', 'parent', 'workBlock', 'collection', 'bar'], 'Helios-Core');
  3245. smalltalk.addMethod(
  3246. smalltalk.method({
  3247. selector: "collection",
  3248. fn: function (){
  3249. var self=this;
  3250. return smalltalk.withContext(function($ctx1) {
  3251. var $1;
  3252. $1=self["@collection"];
  3253. return $1;
  3254. }, function($ctx1) {$ctx1.fill(self,"collection",{},smalltalk.HLProgressBarWidget)})},
  3255. messageSends: []}),
  3256. smalltalk.HLProgressBarWidget);
  3257. smalltalk.addMethod(
  3258. smalltalk.method({
  3259. selector: "collection:",
  3260. fn: function (aCollection){
  3261. var self=this;
  3262. return smalltalk.withContext(function($ctx1) {
  3263. self["@collection"]=aCollection;
  3264. return self}, function($ctx1) {$ctx1.fill(self,"collection:",{aCollection:aCollection},smalltalk.HLProgressBarWidget)})},
  3265. messageSends: []}),
  3266. smalltalk.HLProgressBarWidget);
  3267. smalltalk.addMethod(
  3268. smalltalk.method({
  3269. selector: "evaluateAt:",
  3270. fn: function (anInteger){
  3271. var self=this;
  3272. return smalltalk.withContext(function($ctx1) {
  3273. var $1;
  3274. _st(self)._updateProgress_(_st(_st(anInteger).__slash(_st(_st(self)._collection())._size())).__star((100)));
  3275. $1=_st(anInteger).__lt_eq(_st(_st(self)._collection())._size());
  3276. if(smalltalk.assert($1)){
  3277. _st((function(){
  3278. return smalltalk.withContext(function($ctx2) {
  3279. _st(_st(self)._workBlock())._value_(_st(_st(self)._collection())._at_(anInteger));
  3280. return _st(self)._evaluateAt_(_st(anInteger).__plus((1)));
  3281. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithTimeout_((10));
  3282. } else {
  3283. _st((function(){
  3284. return smalltalk.withContext(function($ctx2) {
  3285. return _st(self)._remove();
  3286. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithTimeout_((500));
  3287. };
  3288. return self}, function($ctx1) {$ctx1.fill(self,"evaluateAt:",{anInteger:anInteger},smalltalk.HLProgressBarWidget)})},
  3289. messageSends: ["updateProgress:", "*", "/", "size", "collection", "ifTrue:ifFalse:", "valueWithTimeout:", "value:", "at:", "workBlock", "evaluateAt:", "+", "remove", "<="]}),
  3290. smalltalk.HLProgressBarWidget);
  3291. smalltalk.addMethod(
  3292. smalltalk.method({
  3293. selector: "label",
  3294. fn: function (){
  3295. var self=this;
  3296. return smalltalk.withContext(function($ctx1) {
  3297. var $1;
  3298. $1=self["@label"];
  3299. return $1;
  3300. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLProgressBarWidget)})},
  3301. messageSends: []}),
  3302. smalltalk.HLProgressBarWidget);
  3303. smalltalk.addMethod(
  3304. smalltalk.method({
  3305. selector: "label:",
  3306. fn: function (aString){
  3307. var self=this;
  3308. return smalltalk.withContext(function($ctx1) {
  3309. self["@label"]=aString;
  3310. return self}, function($ctx1) {$ctx1.fill(self,"label:",{aString:aString},smalltalk.HLProgressBarWidget)})},
  3311. messageSends: []}),
  3312. smalltalk.HLProgressBarWidget);
  3313. smalltalk.addMethod(
  3314. smalltalk.method({
  3315. selector: "parent",
  3316. fn: function (){
  3317. var self=this;
  3318. return smalltalk.withContext(function($ctx1) {
  3319. var $1;
  3320. $1=self["@parent"];
  3321. return $1;
  3322. }, function($ctx1) {$ctx1.fill(self,"parent",{},smalltalk.HLProgressBarWidget)})},
  3323. messageSends: []}),
  3324. smalltalk.HLProgressBarWidget);
  3325. smalltalk.addMethod(
  3326. smalltalk.method({
  3327. selector: "parent:",
  3328. fn: function (aProgress){
  3329. var self=this;
  3330. return smalltalk.withContext(function($ctx1) {
  3331. self["@parent"]=aProgress;
  3332. return self}, function($ctx1) {$ctx1.fill(self,"parent:",{aProgress:aProgress},smalltalk.HLProgressBarWidget)})},
  3333. messageSends: []}),
  3334. smalltalk.HLProgressBarWidget);
  3335. smalltalk.addMethod(
  3336. smalltalk.method({
  3337. selector: "remove",
  3338. fn: function (){
  3339. var self=this;
  3340. return smalltalk.withContext(function($ctx1) {
  3341. _st(_st(self)._parent())._removeProgressBar_(self);
  3342. return self}, function($ctx1) {$ctx1.fill(self,"remove",{},smalltalk.HLProgressBarWidget)})},
  3343. messageSends: ["removeProgressBar:", "parent"]}),
  3344. smalltalk.HLProgressBarWidget);
  3345. smalltalk.addMethod(
  3346. smalltalk.method({
  3347. selector: "renderContentOn:",
  3348. fn: function (html){
  3349. var self=this;
  3350. return smalltalk.withContext(function($ctx1) {
  3351. var $1,$3,$4,$2;
  3352. _st(_st(html)._span())._with_(_st(self)._label());
  3353. $1=_st(html)._div();
  3354. _st($1)._class_("progress");
  3355. $2=_st($1)._with_((function(){
  3356. return smalltalk.withContext(function($ctx2) {
  3357. $3=_st(html)._div();
  3358. _st($3)._class_("bar");
  3359. $4=_st($3)._style_("width: 0%");
  3360. self["@bar"]=$4;
  3361. return self["@bar"];
  3362. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  3363. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLProgressBarWidget)})},
  3364. messageSends: ["with:", "label", "span", "class:", "div", "style:"]}),
  3365. smalltalk.HLProgressBarWidget);
  3366. smalltalk.addMethod(
  3367. smalltalk.method({
  3368. selector: "start",
  3369. fn: function (){
  3370. var self=this;
  3371. return smalltalk.withContext(function($ctx1) {
  3372. _st(self)._evaluateAt_((1));
  3373. return self}, function($ctx1) {$ctx1.fill(self,"start",{},smalltalk.HLProgressBarWidget)})},
  3374. messageSends: ["evaluateAt:"]}),
  3375. smalltalk.HLProgressBarWidget);
  3376. smalltalk.addMethod(
  3377. smalltalk.method({
  3378. selector: "updateProgress:",
  3379. fn: function (anInteger){
  3380. var self=this;
  3381. return smalltalk.withContext(function($ctx1) {
  3382. _st(_st(self["@bar"])._asJQuery())._css_put_("width",_st(_st(anInteger)._asString()).__comma("%"));
  3383. return self}, function($ctx1) {$ctx1.fill(self,"updateProgress:",{anInteger:anInteger},smalltalk.HLProgressBarWidget)})},
  3384. messageSends: ["css:put:", ",", "asString", "asJQuery"]}),
  3385. smalltalk.HLProgressBarWidget);
  3386. smalltalk.addMethod(
  3387. smalltalk.method({
  3388. selector: "workBlock",
  3389. fn: function (){
  3390. var self=this;
  3391. return smalltalk.withContext(function($ctx1) {
  3392. var $1;
  3393. $1=self["@workBlock"];
  3394. return $1;
  3395. }, function($ctx1) {$ctx1.fill(self,"workBlock",{},smalltalk.HLProgressBarWidget)})},
  3396. messageSends: []}),
  3397. smalltalk.HLProgressBarWidget);
  3398. smalltalk.addMethod(
  3399. smalltalk.method({
  3400. selector: "workBlock:",
  3401. fn: function (aBlock){
  3402. var self=this;
  3403. return smalltalk.withContext(function($ctx1) {
  3404. self["@workBlock"]=aBlock;
  3405. return self}, function($ctx1) {$ctx1.fill(self,"workBlock:",{aBlock:aBlock},smalltalk.HLProgressBarWidget)})},
  3406. messageSends: []}),
  3407. smalltalk.HLProgressBarWidget);
  3408. smalltalk.HLProgressBarWidget.klass.iVarNames = ['default'];
  3409. smalltalk.addMethod(
  3410. smalltalk.method({
  3411. selector: "default",
  3412. fn: function (){
  3413. var self=this;
  3414. return smalltalk.withContext(function($ctx1) {
  3415. var $2,$1;
  3416. $2=self["@default"];
  3417. if(($receiver = $2) == nil || $receiver == undefined){
  3418. self["@default"]=_st(self)._new();
  3419. $1=self["@default"];
  3420. } else {
  3421. $1=$2;
  3422. };
  3423. return $1;
  3424. }, function($ctx1) {$ctx1.fill(self,"default",{},smalltalk.HLProgressBarWidget.klass)})},
  3425. messageSends: ["ifNil:", "new"]}),
  3426. smalltalk.HLProgressBarWidget.klass);
  3427. smalltalk.addClass('HLSUnit', smalltalk.HLWidget, [], 'Helios-Core');
  3428. smalltalk.addMethod(
  3429. smalltalk.method({
  3430. selector: "canBeOpenAsTab",
  3431. fn: function (){
  3432. var self=this;
  3433. return smalltalk.withContext(function($ctx1) {
  3434. return true;
  3435. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLSUnit.klass)})},
  3436. messageSends: []}),
  3437. smalltalk.HLSUnit.klass);
  3438. smalltalk.addMethod(
  3439. smalltalk.method({
  3440. selector: "tabClass",
  3441. fn: function (){
  3442. var self=this;
  3443. return smalltalk.withContext(function($ctx1) {
  3444. return "sunit";
  3445. }, function($ctx1) {$ctx1.fill(self,"tabClass",{},smalltalk.HLSUnit.klass)})},
  3446. messageSends: []}),
  3447. smalltalk.HLSUnit.klass);
  3448. smalltalk.addMethod(
  3449. smalltalk.method({
  3450. selector: "tabLabel",
  3451. fn: function (){
  3452. var self=this;
  3453. return smalltalk.withContext(function($ctx1) {
  3454. return "SUnit";
  3455. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLSUnit.klass)})},
  3456. messageSends: []}),
  3457. smalltalk.HLSUnit.klass);
  3458. smalltalk.addMethod(
  3459. smalltalk.method({
  3460. selector: "tabPriority",
  3461. fn: function (){
  3462. var self=this;
  3463. return smalltalk.withContext(function($ctx1) {
  3464. return (1000);
  3465. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLSUnit.klass)})},
  3466. messageSends: []}),
  3467. smalltalk.HLSUnit.klass);