2
0

Helios-Core.deploy.js 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994
  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: "manager",
  52. fn: function (){
  53. var self=this;
  54. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  55. return smalltalk.withContext(function($ctx1) {
  56. var $1;
  57. $1=_st($HLManager())._current();
  58. return $1;
  59. }, function($ctx1) {$ctx1.fill(self,"manager",{},smalltalk.HLModel)})},
  60. messageSends: ["current"]}),
  61. smalltalk.HLModel);
  62. smalltalk.addMethod(
  63. smalltalk.method({
  64. selector: "systemAnnouncer",
  65. fn: function (){
  66. var self=this;
  67. return smalltalk.withContext(function($ctx1) {
  68. var $1;
  69. $1=_st(_st(self)._environment())._systemAnnouncer();
  70. return $1;
  71. }, function($ctx1) {$ctx1.fill(self,"systemAnnouncer",{},smalltalk.HLModel)})},
  72. messageSends: ["systemAnnouncer", "environment"]}),
  73. smalltalk.HLModel);
  74. smalltalk.addClass('HLTab', smalltalk.Widget, ['widget', 'label', 'root'], 'Helios-Core');
  75. smalltalk.addMethod(
  76. smalltalk.method({
  77. selector: "activate",
  78. fn: function (){
  79. var self=this;
  80. return smalltalk.withContext(function($ctx1) {
  81. _st(_st(self)._manager())._activate_(self);
  82. return self}, function($ctx1) {$ctx1.fill(self,"activate",{},smalltalk.HLTab)})},
  83. messageSends: ["activate:", "manager"]}),
  84. smalltalk.HLTab);
  85. smalltalk.addMethod(
  86. smalltalk.method({
  87. selector: "add",
  88. fn: function (){
  89. var self=this;
  90. return smalltalk.withContext(function($ctx1) {
  91. _st(_st(self)._manager())._addTab_(self);
  92. return self}, function($ctx1) {$ctx1.fill(self,"add",{},smalltalk.HLTab)})},
  93. messageSends: ["addTab:", "manager"]}),
  94. smalltalk.HLTab);
  95. smalltalk.addMethod(
  96. smalltalk.method({
  97. selector: "displayLabel",
  98. fn: function (){
  99. var self=this;
  100. return smalltalk.withContext(function($ctx1) {
  101. var $2,$1;
  102. $2=_st(_st(_st(self)._label())._size()).__gt((20));
  103. if(smalltalk.assert($2)){
  104. $1=_st(_st(_st(self)._label())._first_((20))).__comma("...");
  105. } else {
  106. $1=_st(self)._label();
  107. };
  108. return $1;
  109. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLTab)})},
  110. messageSends: ["ifTrue:ifFalse:", ",", "first:", "label", ">", "size"]}),
  111. smalltalk.HLTab);
  112. smalltalk.addMethod(
  113. smalltalk.method({
  114. selector: "focus",
  115. fn: function (){
  116. var self=this;
  117. return smalltalk.withContext(function($ctx1) {
  118. var $1;
  119. $1=_st(_st(self)._widget())._canHaveFocus();
  120. if(smalltalk.assert($1)){
  121. _st(_st(self)._widget())._focus();
  122. };
  123. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLTab)})},
  124. messageSends: ["ifTrue:", "focus", "widget", "canHaveFocus"]}),
  125. smalltalk.HLTab);
  126. smalltalk.addMethod(
  127. smalltalk.method({
  128. selector: "hide",
  129. fn: function (){
  130. var self=this;
  131. return smalltalk.withContext(function($ctx1) {
  132. var $1;
  133. $1=self["@root"];
  134. if(($receiver = $1) == nil || $receiver == undefined){
  135. $1;
  136. } else {
  137. _st(_st(self["@root"])._asJQuery())._css_put_("visibility","hidden");
  138. };
  139. return self}, function($ctx1) {$ctx1.fill(self,"hide",{},smalltalk.HLTab)})},
  140. messageSends: ["ifNotNil:", "css:put:", "asJQuery"]}),
  141. smalltalk.HLTab);
  142. smalltalk.addMethod(
  143. smalltalk.method({
  144. selector: "isActive",
  145. fn: function (){
  146. var self=this;
  147. return smalltalk.withContext(function($ctx1) {
  148. var $1;
  149. $1=_st(_st(_st(self)._manager())._activeTab()).__eq(self);
  150. return $1;
  151. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLTab)})},
  152. messageSends: ["=", "activeTab", "manager"]}),
  153. smalltalk.HLTab);
  154. smalltalk.addMethod(
  155. smalltalk.method({
  156. selector: "label",
  157. fn: function (){
  158. var self=this;
  159. return smalltalk.withContext(function($ctx1) {
  160. var $2,$1;
  161. $2=self["@label"];
  162. if(($receiver = $2) == nil || $receiver == undefined){
  163. $1="";
  164. } else {
  165. $1=$2;
  166. };
  167. return $1;
  168. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLTab)})},
  169. messageSends: ["ifNil:"]}),
  170. smalltalk.HLTab);
  171. smalltalk.addMethod(
  172. smalltalk.method({
  173. selector: "label:",
  174. fn: function (aString){
  175. var self=this;
  176. return smalltalk.withContext(function($ctx1) {
  177. self["@label"]=aString;
  178. return self}, function($ctx1) {$ctx1.fill(self,"label:",{aString:aString},smalltalk.HLTab)})},
  179. messageSends: []}),
  180. smalltalk.HLTab);
  181. smalltalk.addMethod(
  182. smalltalk.method({
  183. selector: "manager",
  184. fn: function (){
  185. var self=this;
  186. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  187. return smalltalk.withContext(function($ctx1) {
  188. var $1;
  189. $1=_st($HLManager())._current();
  190. return $1;
  191. }, function($ctx1) {$ctx1.fill(self,"manager",{},smalltalk.HLTab)})},
  192. messageSends: ["current"]}),
  193. smalltalk.HLTab);
  194. smalltalk.addMethod(
  195. smalltalk.method({
  196. selector: "registerBindings",
  197. fn: function (){
  198. var self=this;
  199. return smalltalk.withContext(function($ctx1) {
  200. _st(_st(self)._widget())._registerBindings();
  201. return self}, function($ctx1) {$ctx1.fill(self,"registerBindings",{},smalltalk.HLTab)})},
  202. messageSends: ["registerBindings", "widget"]}),
  203. smalltalk.HLTab);
  204. smalltalk.addMethod(
  205. smalltalk.method({
  206. selector: "remove",
  207. fn: function (){
  208. var self=this;
  209. return smalltalk.withContext(function($ctx1) {
  210. var $1;
  211. $1=self["@root"];
  212. if(($receiver = $1) == nil || $receiver == undefined){
  213. $1;
  214. } else {
  215. _st(_st(self["@root"])._asJQuery())._remove();
  216. };
  217. return self}, function($ctx1) {$ctx1.fill(self,"remove",{},smalltalk.HLTab)})},
  218. messageSends: ["ifNotNil:", "remove", "asJQuery"]}),
  219. smalltalk.HLTab);
  220. smalltalk.addMethod(
  221. smalltalk.method({
  222. selector: "renderOn:",
  223. fn: function (html){
  224. var self=this;
  225. return smalltalk.withContext(function($ctx1) {
  226. var $1,$2;
  227. $1=_st(html)._div();
  228. _st($1)._class_("tab");
  229. $2=_st($1)._yourself();
  230. self["@root"]=$2;
  231. _st(self)._renderTab();
  232. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.HLTab)})},
  233. messageSends: ["class:", "div", "yourself", "renderTab"]}),
  234. smalltalk.HLTab);
  235. smalltalk.addMethod(
  236. smalltalk.method({
  237. selector: "renderTab",
  238. fn: function (){
  239. var self=this;
  240. return smalltalk.withContext(function($ctx1) {
  241. var $1,$2;
  242. _st(self["@root"])._contents_((function(html){
  243. return smalltalk.withContext(function($ctx2) {
  244. $1=_st(html)._div();
  245. _st($1)._class_("amber_box");
  246. $2=_st($1)._with_((function(){
  247. return smalltalk.withContext(function($ctx3) {
  248. return _st(_st(self)._widget())._renderOn_(html);
  249. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  250. return $2;
  251. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}));
  252. return self}, function($ctx1) {$ctx1.fill(self,"renderTab",{},smalltalk.HLTab)})},
  253. messageSends: ["contents:", "class:", "div", "with:", "renderOn:", "widget"]}),
  254. smalltalk.HLTab);
  255. smalltalk.addMethod(
  256. smalltalk.method({
  257. selector: "show",
  258. fn: function (){
  259. var self=this;
  260. return smalltalk.withContext(function($ctx1) {
  261. var $1;
  262. $1=self["@root"];
  263. if(($receiver = $1) == nil || $receiver == undefined){
  264. _st(self)._appendToJQuery_(_st("body")._asJQuery());
  265. } else {
  266. _st(_st(self["@root"])._asJQuery())._css_put_("visibility","visible");
  267. };
  268. return self}, function($ctx1) {$ctx1.fill(self,"show",{},smalltalk.HLTab)})},
  269. messageSends: ["ifNil:ifNotNil:", "appendToJQuery:", "asJQuery", "css:put:"]}),
  270. smalltalk.HLTab);
  271. smalltalk.addMethod(
  272. smalltalk.method({
  273. selector: "widget",
  274. fn: function (){
  275. var self=this;
  276. return smalltalk.withContext(function($ctx1) {
  277. var $1;
  278. $1=self["@widget"];
  279. return $1;
  280. }, function($ctx1) {$ctx1.fill(self,"widget",{},smalltalk.HLTab)})},
  281. messageSends: []}),
  282. smalltalk.HLTab);
  283. smalltalk.addMethod(
  284. smalltalk.method({
  285. selector: "widget:",
  286. fn: function (aWidget){
  287. var self=this;
  288. return smalltalk.withContext(function($ctx1) {
  289. self["@widget"]=aWidget;
  290. return self}, function($ctx1) {$ctx1.fill(self,"widget:",{aWidget:aWidget},smalltalk.HLTab)})},
  291. messageSends: []}),
  292. smalltalk.HLTab);
  293. smalltalk.addMethod(
  294. smalltalk.method({
  295. selector: "on:labelled:",
  296. fn: function (aWidget,aString){
  297. var self=this;
  298. return smalltalk.withContext(function($ctx1) {
  299. var $2,$3,$1;
  300. $2=_st(self)._new();
  301. _st($2)._widget_(aWidget);
  302. _st($2)._label_(aString);
  303. $3=_st($2)._yourself();
  304. $1=$3;
  305. return $1;
  306. }, function($ctx1) {$ctx1.fill(self,"on:labelled:",{aWidget:aWidget,aString:aString},smalltalk.HLTab.klass)})},
  307. messageSends: ["widget:", "new", "label:", "yourself"]}),
  308. smalltalk.HLTab.klass);
  309. smalltalk.addClass('HLWidget', smalltalk.Widget, ['wrapper'], 'Helios-Core');
  310. smalltalk.addMethod(
  311. smalltalk.method({
  312. selector: "alert:",
  313. fn: function (aString){
  314. var self=this;
  315. return smalltalk.withContext(function($ctx1) {
  316. _st(window)._alert_(aString);
  317. return self}, function($ctx1) {$ctx1.fill(self,"alert:",{aString:aString},smalltalk.HLWidget)})},
  318. messageSends: ["alert:"]}),
  319. smalltalk.HLWidget);
  320. smalltalk.addMethod(
  321. smalltalk.method({
  322. selector: "canHaveFocus",
  323. fn: function (){
  324. var self=this;
  325. return smalltalk.withContext(function($ctx1) {
  326. return false;
  327. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLWidget)})},
  328. messageSends: []}),
  329. smalltalk.HLWidget);
  330. smalltalk.addMethod(
  331. smalltalk.method({
  332. selector: "confirm:ifTrue:",
  333. fn: function (aString,aBlock){
  334. var self=this;
  335. return smalltalk.withContext(function($ctx1) {
  336. _st(_st(self)._manager())._confirm_ifTrue_(aString,aBlock);
  337. return self}, function($ctx1) {$ctx1.fill(self,"confirm:ifTrue:",{aString:aString,aBlock:aBlock},smalltalk.HLWidget)})},
  338. messageSends: ["confirm:ifTrue:", "manager"]}),
  339. smalltalk.HLWidget);
  340. smalltalk.addMethod(
  341. smalltalk.method({
  342. selector: "execute:",
  343. fn: function (aCommand){
  344. var self=this;
  345. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  346. return smalltalk.withContext(function($ctx1) {
  347. var $1,$2;
  348. $1=_st(_st($HLManager())._current())._keyBinder();
  349. _st($1)._activate();
  350. $2=_st($1)._applyBinding_(_st(aCommand)._asBinding());
  351. return self}, function($ctx1) {$ctx1.fill(self,"execute:",{aCommand:aCommand},smalltalk.HLWidget)})},
  352. messageSends: ["activate", "keyBinder", "current", "applyBinding:", "asBinding"]}),
  353. smalltalk.HLWidget);
  354. smalltalk.addMethod(
  355. smalltalk.method({
  356. selector: "manager",
  357. fn: function (){
  358. var self=this;
  359. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  360. return smalltalk.withContext(function($ctx1) {
  361. var $1;
  362. $1=_st($HLManager())._current();
  363. return $1;
  364. }, function($ctx1) {$ctx1.fill(self,"manager",{},smalltalk.HLWidget)})},
  365. messageSends: ["current"]}),
  366. smalltalk.HLWidget);
  367. smalltalk.addMethod(
  368. smalltalk.method({
  369. selector: "refresh",
  370. fn: function (){
  371. var self=this;
  372. return smalltalk.withContext(function($ctx1) {
  373. var $1,$2;
  374. $1=_st(self)._wrapper();
  375. if(($receiver = $1) == nil || $receiver == undefined){
  376. $2=self;
  377. return $2;
  378. } else {
  379. $1;
  380. };
  381. _st(_st(_st(self)._wrapper())._asJQuery())._empty();
  382. _st((function(html){
  383. return smalltalk.withContext(function($ctx2) {
  384. return _st(self)._renderContentOn_(html);
  385. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}))._appendToJQuery_(_st(_st(self)._wrapper())._asJQuery());
  386. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLWidget)})},
  387. messageSends: ["ifNil:", "wrapper", "empty", "asJQuery", "appendToJQuery:", "renderContentOn:"]}),
  388. smalltalk.HLWidget);
  389. smalltalk.addMethod(
  390. smalltalk.method({
  391. selector: "registerBindings",
  392. fn: function (){
  393. var self=this;
  394. return smalltalk.withContext(function($ctx1) {
  395. _st(self)._registerBindingsOn_(_st(_st(_st(self)._manager())._keyBinder())._bindings());
  396. return self}, function($ctx1) {$ctx1.fill(self,"registerBindings",{},smalltalk.HLWidget)})},
  397. messageSends: ["registerBindingsOn:", "bindings", "keyBinder", "manager"]}),
  398. smalltalk.HLWidget);
  399. smalltalk.addMethod(
  400. smalltalk.method({
  401. selector: "registerBindingsOn:",
  402. fn: function (aBindingGroup){
  403. var self=this;
  404. return smalltalk.withContext(function($ctx1) {
  405. return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup},smalltalk.HLWidget)})},
  406. messageSends: []}),
  407. smalltalk.HLWidget);
  408. smalltalk.addMethod(
  409. smalltalk.method({
  410. selector: "renderContentOn:",
  411. fn: function (html){
  412. var self=this;
  413. return smalltalk.withContext(function($ctx1) {
  414. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLWidget)})},
  415. messageSends: []}),
  416. smalltalk.HLWidget);
  417. smalltalk.addMethod(
  418. smalltalk.method({
  419. selector: "renderOn:",
  420. fn: function (html){
  421. var self=this;
  422. return smalltalk.withContext(function($ctx1) {
  423. self["@wrapper"]=_st(html)._div();
  424. _st((function(renderer){
  425. return smalltalk.withContext(function($ctx2) {
  426. return _st(self)._renderContentOn_(renderer);
  427. }, function($ctx2) {$ctx2.fillBlock({renderer:renderer},$ctx1)})}))._appendToJQuery_(_st(self["@wrapper"])._asJQuery());
  428. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.HLWidget)})},
  429. messageSends: ["div", "appendToJQuery:", "asJQuery", "renderContentOn:"]}),
  430. smalltalk.HLWidget);
  431. smalltalk.addMethod(
  432. smalltalk.method({
  433. selector: "wrapper",
  434. fn: function (){
  435. var self=this;
  436. return smalltalk.withContext(function($ctx1) {
  437. var $1;
  438. $1=self["@wrapper"];
  439. return $1;
  440. }, function($ctx1) {$ctx1.fill(self,"wrapper",{},smalltalk.HLWidget)})},
  441. messageSends: []}),
  442. smalltalk.HLWidget);
  443. smalltalk.addMethod(
  444. smalltalk.method({
  445. selector: "canBeOpenAsTab",
  446. fn: function (){
  447. var self=this;
  448. return smalltalk.withContext(function($ctx1) {
  449. return false;
  450. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLWidget.klass)})},
  451. messageSends: []}),
  452. smalltalk.HLWidget.klass);
  453. smalltalk.addMethod(
  454. smalltalk.method({
  455. selector: "openAsTab",
  456. fn: function (){
  457. var self=this;
  458. function $HLTab(){return smalltalk.HLTab||(typeof HLTab=="undefined"?nil:HLTab)}
  459. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  460. return smalltalk.withContext(function($ctx1) {
  461. var $1,$2;
  462. $1=_st(self)._canBeOpenAsTab();
  463. if(! smalltalk.assert($1)){
  464. $2=self;
  465. return $2;
  466. };
  467. _st(_st($HLManager())._current())._addTab_(_st($HLTab())._on_labelled_(_st(self)._new(),_st(self)._tabLabel()));
  468. return self}, function($ctx1) {$ctx1.fill(self,"openAsTab",{},smalltalk.HLWidget.klass)})},
  469. messageSends: ["ifFalse:", "canBeOpenAsTab", "addTab:", "on:labelled:", "new", "tabLabel", "current"]}),
  470. smalltalk.HLWidget.klass);
  471. smalltalk.addMethod(
  472. smalltalk.method({
  473. selector: "tabLabel",
  474. fn: function (){
  475. var self=this;
  476. return smalltalk.withContext(function($ctx1) {
  477. return "Tab";
  478. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLWidget.klass)})},
  479. messageSends: []}),
  480. smalltalk.HLWidget.klass);
  481. smalltalk.addMethod(
  482. smalltalk.method({
  483. selector: "tabPriority",
  484. fn: function (){
  485. var self=this;
  486. return smalltalk.withContext(function($ctx1) {
  487. var $1;
  488. $1=(500);
  489. return $1;
  490. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLWidget.klass)})},
  491. messageSends: []}),
  492. smalltalk.HLWidget.klass);
  493. smalltalk.addClass('HLConfirmation', smalltalk.HLWidget, ['confirmationString', 'actionBlock', 'cancelBlock'], 'Helios-Core');
  494. smalltalk.addMethod(
  495. smalltalk.method({
  496. selector: "actionBlock",
  497. fn: function (){
  498. var self=this;
  499. return smalltalk.withContext(function($ctx1) {
  500. var $2,$1;
  501. $2=self["@actionBlock"];
  502. if(($receiver = $2) == nil || $receiver == undefined){
  503. $1=(function(){
  504. return smalltalk.withContext(function($ctx2) {
  505. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  506. } else {
  507. $1=$2;
  508. };
  509. return $1;
  510. }, function($ctx1) {$ctx1.fill(self,"actionBlock",{},smalltalk.HLConfirmation)})},
  511. messageSends: ["ifNil:"]}),
  512. smalltalk.HLConfirmation);
  513. smalltalk.addMethod(
  514. smalltalk.method({
  515. selector: "actionBlock:",
  516. fn: function (aBlock){
  517. var self=this;
  518. return smalltalk.withContext(function($ctx1) {
  519. self["@actionBlock"]=aBlock;
  520. return self}, function($ctx1) {$ctx1.fill(self,"actionBlock:",{aBlock:aBlock},smalltalk.HLConfirmation)})},
  521. messageSends: []}),
  522. smalltalk.HLConfirmation);
  523. smalltalk.addMethod(
  524. smalltalk.method({
  525. selector: "cancel",
  526. fn: function (){
  527. var self=this;
  528. return smalltalk.withContext(function($ctx1) {
  529. _st(_st(self)._cancelBlock())._value();
  530. _st(self)._remove();
  531. return self}, function($ctx1) {$ctx1.fill(self,"cancel",{},smalltalk.HLConfirmation)})},
  532. messageSends: ["value", "cancelBlock", "remove"]}),
  533. smalltalk.HLConfirmation);
  534. smalltalk.addMethod(
  535. smalltalk.method({
  536. selector: "cancelBlock",
  537. fn: function (){
  538. var self=this;
  539. return smalltalk.withContext(function($ctx1) {
  540. var $2,$1;
  541. $2=self["@cancelBlock"];
  542. if(($receiver = $2) == nil || $receiver == undefined){
  543. $1=(function(){
  544. return smalltalk.withContext(function($ctx2) {
  545. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  546. } else {
  547. $1=$2;
  548. };
  549. return $1;
  550. }, function($ctx1) {$ctx1.fill(self,"cancelBlock",{},smalltalk.HLConfirmation)})},
  551. messageSends: ["ifNil:"]}),
  552. smalltalk.HLConfirmation);
  553. smalltalk.addMethod(
  554. smalltalk.method({
  555. selector: "cancelBlock:",
  556. fn: function (aBlock){
  557. var self=this;
  558. return smalltalk.withContext(function($ctx1) {
  559. self["@cancelBlock"]=aBlock;
  560. return self}, function($ctx1) {$ctx1.fill(self,"cancelBlock:",{aBlock:aBlock},smalltalk.HLConfirmation)})},
  561. messageSends: []}),
  562. smalltalk.HLConfirmation);
  563. smalltalk.addMethod(
  564. smalltalk.method({
  565. selector: "confirm",
  566. fn: function (){
  567. var self=this;
  568. return smalltalk.withContext(function($ctx1) {
  569. _st(_st(self)._actionBlock())._value();
  570. _st(self)._remove();
  571. return self}, function($ctx1) {$ctx1.fill(self,"confirm",{},smalltalk.HLConfirmation)})},
  572. messageSends: ["value", "actionBlock", "remove"]}),
  573. smalltalk.HLConfirmation);
  574. smalltalk.addMethod(
  575. smalltalk.method({
  576. selector: "confirmationString",
  577. fn: function (){
  578. var self=this;
  579. return smalltalk.withContext(function($ctx1) {
  580. var $2,$1;
  581. $2=self["@confirmationString"];
  582. if(($receiver = $2) == nil || $receiver == undefined){
  583. $1="Confirm";
  584. } else {
  585. $1=$2;
  586. };
  587. return $1;
  588. }, function($ctx1) {$ctx1.fill(self,"confirmationString",{},smalltalk.HLConfirmation)})},
  589. messageSends: ["ifNil:"]}),
  590. smalltalk.HLConfirmation);
  591. smalltalk.addMethod(
  592. smalltalk.method({
  593. selector: "confirmationString:",
  594. fn: function (aString){
  595. var self=this;
  596. return smalltalk.withContext(function($ctx1) {
  597. self["@confirmationString"]=aString;
  598. return self}, function($ctx1) {$ctx1.fill(self,"confirmationString:",{aString:aString},smalltalk.HLConfirmation)})},
  599. messageSends: []}),
  600. smalltalk.HLConfirmation);
  601. smalltalk.addMethod(
  602. smalltalk.method({
  603. selector: "remove",
  604. fn: function (){
  605. var self=this;
  606. return smalltalk.withContext(function($ctx1) {
  607. _st(_st(window)._jQuery_(".confirmation"))._removeClass_("active");
  608. _st((function(){
  609. return smalltalk.withContext(function($ctx2) {
  610. _st(_st(window)._jQuery_("#overlay"))._remove();
  611. return _st(_st(window)._jQuery_(".confirmation"))._remove();
  612. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}))._valueWithTimeout_((300));
  613. return self}, function($ctx1) {$ctx1.fill(self,"remove",{},smalltalk.HLConfirmation)})},
  614. messageSends: ["removeClass:", "jQuery:", "valueWithTimeout:", "remove"]}),
  615. smalltalk.HLConfirmation);
  616. smalltalk.addMethod(
  617. smalltalk.method({
  618. selector: "renderContentOn:",
  619. fn: function (html){
  620. var self=this;
  621. var confirmButton;
  622. return smalltalk.withContext(function($ctx1) {
  623. var $1,$3,$5,$6,$7,$8,$4,$2;
  624. _st(_st(html)._div())._id_("overlay");
  625. $1=_st(html)._div();
  626. _st($1)._class_("confirmation");
  627. $2=_st($1)._with_((function(){
  628. return smalltalk.withContext(function($ctx2) {
  629. _st(_st(html)._span())._with_(_st(self)._confirmationString());
  630. $3=_st(html)._div();
  631. _st($3)._class_("buttons");
  632. $4=_st($3)._with_((function(){
  633. return smalltalk.withContext(function($ctx3) {
  634. $5=_st(html)._button();
  635. _st($5)._class_("button");
  636. _st($5)._with_("Cancel");
  637. $6=_st($5)._onClick_((function(){
  638. return smalltalk.withContext(function($ctx4) {
  639. return _st(self)._cancel();
  640. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
  641. $6;
  642. $7=_st(html)._button();
  643. _st($7)._class_("button default");
  644. _st($7)._with_("Confirm");
  645. $8=_st($7)._onClick_((function(){
  646. return smalltalk.withContext(function($ctx4) {
  647. return _st(self)._confirm();
  648. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
  649. confirmButton=$8;
  650. return confirmButton;
  651. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  652. return $4;
  653. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  654. _st(_st(confirmButton)._asJQuery())._focus();
  655. _st(_st(window)._jQuery_(".confirmation"))._addClass_("active");
  656. _st(self)._setupKeyBindings();
  657. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html,confirmButton:confirmButton},smalltalk.HLConfirmation)})},
  658. messageSends: ["id:", "div", "class:", "with:", "confirmationString", "span", "button", "onClick:", "cancel", "confirm", "focus", "asJQuery", "addClass:", "jQuery:", "setupKeyBindings"]}),
  659. smalltalk.HLConfirmation);
  660. smalltalk.addMethod(
  661. smalltalk.method({
  662. selector: "setupKeyBindings",
  663. fn: function (){
  664. var self=this;
  665. return smalltalk.withContext(function($ctx1) {
  666. var $1;
  667. _st(_st(window)._jQuery_(".confirmation"))._keyup_((function(e){
  668. return smalltalk.withContext(function($ctx2) {
  669. $1=_st(_st(e)._keyCode()).__eq((27));
  670. if(smalltalk.assert($1)){
  671. return _st(self)._cancel();
  672. };
  673. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  674. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{},smalltalk.HLConfirmation)})},
  675. messageSends: ["keyup:", "ifTrue:", "cancel", "=", "keyCode", "jQuery:"]}),
  676. smalltalk.HLConfirmation);
  677. smalltalk.addClass('HLDebugger', smalltalk.HLWidget, [], 'Helios-Core');
  678. smalltalk.addClass('HLFocusableWidget', smalltalk.HLWidget, [], 'Helios-Core');
  679. smalltalk.addMethod(
  680. smalltalk.method({
  681. selector: "blur",
  682. fn: function (){
  683. var self=this;
  684. return smalltalk.withContext(function($ctx1) {
  685. _st(_st(_st(self)._wrapper())._asJQuery())._blur();
  686. return self}, function($ctx1) {$ctx1.fill(self,"blur",{},smalltalk.HLFocusableWidget)})},
  687. messageSends: ["blur", "asJQuery", "wrapper"]}),
  688. smalltalk.HLFocusableWidget);
  689. smalltalk.addMethod(
  690. smalltalk.method({
  691. selector: "canHaveFocus",
  692. fn: function (){
  693. var self=this;
  694. return smalltalk.withContext(function($ctx1) {
  695. return true;
  696. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLFocusableWidget)})},
  697. messageSends: []}),
  698. smalltalk.HLFocusableWidget);
  699. smalltalk.addMethod(
  700. smalltalk.method({
  701. selector: "focus",
  702. fn: function (){
  703. var self=this;
  704. return smalltalk.withContext(function($ctx1) {
  705. _st(_st(_st(self)._wrapper())._asJQuery())._focus();
  706. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLFocusableWidget)})},
  707. messageSends: ["focus", "asJQuery", "wrapper"]}),
  708. smalltalk.HLFocusableWidget);
  709. smalltalk.addMethod(
  710. smalltalk.method({
  711. selector: "focusClass",
  712. fn: function (){
  713. var self=this;
  714. return smalltalk.withContext(function($ctx1) {
  715. return "focused";
  716. }, function($ctx1) {$ctx1.fill(self,"focusClass",{},smalltalk.HLFocusableWidget)})},
  717. messageSends: []}),
  718. smalltalk.HLFocusableWidget);
  719. smalltalk.addMethod(
  720. smalltalk.method({
  721. selector: "hasFocus",
  722. fn: function (){
  723. var self=this;
  724. return smalltalk.withContext(function($ctx1) {
  725. var $1;
  726. $1=_st(_st(_st(self)._wrapper())._notNil())._and_((function(){
  727. return smalltalk.withContext(function($ctx2) {
  728. return _st(_st(_st(self)._wrapper())._asJQuery())._is_(":focus");
  729. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  730. return $1;
  731. }, function($ctx1) {$ctx1.fill(self,"hasFocus",{},smalltalk.HLFocusableWidget)})},
  732. messageSends: ["and:", "is:", "asJQuery", "wrapper", "notNil"]}),
  733. smalltalk.HLFocusableWidget);
  734. smalltalk.addMethod(
  735. smalltalk.method({
  736. selector: "renderContentOn:",
  737. fn: function (html){
  738. var self=this;
  739. return smalltalk.withContext(function($ctx1) {
  740. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLFocusableWidget)})},
  741. messageSends: []}),
  742. smalltalk.HLFocusableWidget);
  743. smalltalk.addMethod(
  744. smalltalk.method({
  745. selector: "renderOn:",
  746. fn: function (html){
  747. var self=this;
  748. return smalltalk.withContext(function($ctx1) {
  749. var $1,$2,$3,$4;
  750. _st(self)._registerBindings();
  751. $1=_st(html)._div();
  752. _st($1)._class_("hl_widget");
  753. $2=_st($1)._yourself();
  754. self["@wrapper"]=$2;
  755. _st(self["@wrapper"])._with_((function(){
  756. return smalltalk.withContext(function($ctx2) {
  757. return _st(self)._renderContentOn_(html);
  758. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  759. $3=self["@wrapper"];
  760. _st($3)._at_put_("tabindex","0");
  761. _st($3)._onBlur_((function(){
  762. return smalltalk.withContext(function($ctx2) {
  763. return _st(_st(_st(self)._wrapper())._asJQuery())._removeClass_(_st(self)._focusClass());
  764. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  765. $4=_st($3)._onFocus_((function(){
  766. return smalltalk.withContext(function($ctx2) {
  767. return _st(_st(_st(self)._wrapper())._asJQuery())._addClass_(_st(self)._focusClass());
  768. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  769. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html},smalltalk.HLFocusableWidget)})},
  770. messageSends: ["registerBindings", "class:", "div", "yourself", "with:", "renderContentOn:", "at:put:", "onBlur:", "removeClass:", "focusClass", "asJQuery", "wrapper", "onFocus:", "addClass:"]}),
  771. smalltalk.HLFocusableWidget);
  772. smalltalk.addClass('HLListWidget', smalltalk.HLFocusableWidget, ['items', 'selectedItem', 'mapping'], 'Helios-Core');
  773. smalltalk.addMethod(
  774. smalltalk.method({
  775. selector: "activateFirstListItem",
  776. fn: function (){
  777. var self=this;
  778. return smalltalk.withContext(function($ctx1) {
  779. _st(self)._activateListItem_(_st(window)._jQuery_(_st(_st(_st(self["@wrapper"])._asJQuery())._find_("li.inactive"))._get_((0))));
  780. return self}, function($ctx1) {$ctx1.fill(self,"activateFirstListItem",{},smalltalk.HLListWidget)})},
  781. messageSends: ["activateListItem:", "jQuery:", "get:", "find:", "asJQuery"]}),
  782. smalltalk.HLListWidget);
  783. smalltalk.addMethod(
  784. smalltalk.method({
  785. selector: "activateItem:",
  786. fn: function (anObject){
  787. var self=this;
  788. return smalltalk.withContext(function($ctx1) {
  789. var $1;
  790. var $early={};
  791. try {
  792. _st(self)._activateListItem_(_st(_st(self["@mapping"])._at_ifAbsent_(anObject,(function(){
  793. return smalltalk.withContext(function($ctx2) {
  794. $1=self;
  795. throw $early=[$1];
  796. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})))._asJQuery());
  797. return self}
  798. catch(e) {if(e===$early)return e[0]; throw e}
  799. }, function($ctx1) {$ctx1.fill(self,"activateItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  800. messageSends: ["activateListItem:", "asJQuery", "at:ifAbsent:"]}),
  801. smalltalk.HLListWidget);
  802. smalltalk.addMethod(
  803. smalltalk.method({
  804. selector: "activateListItem:",
  805. fn: function (aListItem){
  806. var self=this;
  807. var item;
  808. return smalltalk.withContext(function($ctx1) {
  809. var $1,$2,$3;
  810. $1=_st(aListItem)._get_((0));
  811. if(($receiver = $1) == nil || $receiver == undefined){
  812. $2=self;
  813. return $2;
  814. } else {
  815. $1;
  816. };
  817. _st(_st(_st(aListItem)._parent())._children())._removeClass_("active");
  818. _st(aListItem)._addClass_("active");
  819. _st(self)._ensureVisible_(aListItem);
  820. item=_st(_st(self)._items())._at_(_st(_st(aListItem)._attr_("list-data"))._asNumber());
  821. $3=_st(_st(self)._selectedItem()).__eq_eq(item);
  822. if(! smalltalk.assert($3)){
  823. _st(self)._selectItem_(item);
  824. };
  825. return self}, function($ctx1) {$ctx1.fill(self,"activateListItem:",{aListItem:aListItem,item:item},smalltalk.HLListWidget)})},
  826. messageSends: ["ifNil:", "get:", "removeClass:", "children", "parent", "addClass:", "ensureVisible:", "at:", "asNumber", "attr:", "items", "ifFalse:", "selectItem:", "==", "selectedItem"]}),
  827. smalltalk.HLListWidget);
  828. smalltalk.addMethod(
  829. smalltalk.method({
  830. selector: "activateNextListItem",
  831. fn: function (){
  832. var self=this;
  833. return smalltalk.withContext(function($ctx1) {
  834. _st(self)._activateListItem_(_st(_st(window)._jQuery_(".focused .nav-pills .active"))._next());
  835. return self}, function($ctx1) {$ctx1.fill(self,"activateNextListItem",{},smalltalk.HLListWidget)})},
  836. messageSends: ["activateListItem:", "next", "jQuery:"]}),
  837. smalltalk.HLListWidget);
  838. smalltalk.addMethod(
  839. smalltalk.method({
  840. selector: "activatePreviousListItem",
  841. fn: function (){
  842. var self=this;
  843. return smalltalk.withContext(function($ctx1) {
  844. _st(self)._activateListItem_(_st(_st(window)._jQuery_(".focused .nav-pills .active"))._prev());
  845. return self}, function($ctx1) {$ctx1.fill(self,"activatePreviousListItem",{},smalltalk.HLListWidget)})},
  846. messageSends: ["activateListItem:", "prev", "jQuery:"]}),
  847. smalltalk.HLListWidget);
  848. smalltalk.addMethod(
  849. smalltalk.method({
  850. selector: "cssClassForItem:",
  851. fn: function (anObject){
  852. var self=this;
  853. return smalltalk.withContext(function($ctx1) {
  854. var $2,$1;
  855. $2=_st(_st(self)._selectedItem()).__eq(anObject);
  856. if(smalltalk.assert($2)){
  857. $1="active";
  858. } else {
  859. $1="inactive";
  860. };
  861. return $1;
  862. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  863. messageSends: ["ifTrue:ifFalse:", "=", "selectedItem"]}),
  864. smalltalk.HLListWidget);
  865. smalltalk.addMethod(
  866. smalltalk.method({
  867. selector: "defaultItems",
  868. fn: function (){
  869. var self=this;
  870. return smalltalk.withContext(function($ctx1) {
  871. var $1;
  872. $1=[];
  873. return $1;
  874. }, function($ctx1) {$ctx1.fill(self,"defaultItems",{},smalltalk.HLListWidget)})},
  875. messageSends: []}),
  876. smalltalk.HLListWidget);
  877. smalltalk.addMethod(
  878. smalltalk.method({
  879. selector: "ensureVisible:",
  880. fn: function (aListItem){
  881. var self=this;
  882. var perent,position;
  883. return smalltalk.withContext(function($ctx1) {
  884. var $1,$2;
  885. position=_st(self)._positionOf_(aListItem);
  886. parent=_st(aListItem)._parent();
  887. $1=_st(_st(_st(aListItem)._position())._top()).__lt((0));
  888. if(smalltalk.assert($1)){
  889. _st(_st(parent)._get_((0)))._scrollTop_(_st(_st(_st(_st(parent)._get_((0)))._scrollTop()).__plus(_st(_st(aListItem)._position())._top())).__minus((10)));
  890. };
  891. $2=_st(_st(_st(_st(aListItem)._position())._top()).__plus(_st(aListItem)._height())).__gt(_st(parent)._height());
  892. if(smalltalk.assert($2)){
  893. _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)));
  894. };
  895. return self}, function($ctx1) {$ctx1.fill(self,"ensureVisible:",{aListItem:aListItem,perent:perent,position:position},smalltalk.HLListWidget)})},
  896. messageSends: ["positionOf:", "parent", "ifTrue:", "scrollTop:", "-", "+", "top", "position", "scrollTop", "get:", "<", "height", ">"]}),
  897. smalltalk.HLListWidget);
  898. smalltalk.addMethod(
  899. smalltalk.method({
  900. selector: "focus",
  901. fn: function (){
  902. var self=this;
  903. return smalltalk.withContext(function($ctx1) {
  904. var $1,$2;
  905. smalltalk.HLFocusableWidget.fn.prototype._focus.apply(_st(self), []);
  906. $1=_st(_st(self)._items())._isEmpty();
  907. if(! smalltalk.assert($1)){
  908. $2=_st(self)._selectedItem();
  909. if(($receiver = $2) == nil || $receiver == undefined){
  910. _st(self)._activateFirstListItem();
  911. } else {
  912. $2;
  913. };
  914. };
  915. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLListWidget)})},
  916. messageSends: ["focus", "ifFalse:", "ifNil:", "activateFirstListItem", "selectedItem", "isEmpty", "items"]}),
  917. smalltalk.HLListWidget);
  918. smalltalk.addMethod(
  919. smalltalk.method({
  920. selector: "iconForItem:",
  921. fn: function (anObject){
  922. var self=this;
  923. return smalltalk.withContext(function($ctx1) {
  924. return "";
  925. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  926. messageSends: []}),
  927. smalltalk.HLListWidget);
  928. smalltalk.addMethod(
  929. smalltalk.method({
  930. selector: "initialize",
  931. fn: function (){
  932. var self=this;
  933. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  934. return smalltalk.withContext(function($ctx1) {
  935. smalltalk.HLFocusableWidget.fn.prototype._initialize.apply(_st(self), []);
  936. self["@mapping"]=_st($Dictionary())._new();
  937. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLListWidget)})},
  938. messageSends: ["initialize", "new"]}),
  939. smalltalk.HLListWidget);
  940. smalltalk.addMethod(
  941. smalltalk.method({
  942. selector: "items",
  943. fn: function (){
  944. var self=this;
  945. return smalltalk.withContext(function($ctx1) {
  946. var $2,$1;
  947. $2=self["@items"];
  948. if(($receiver = $2) == nil || $receiver == undefined){
  949. self["@items"]=_st(self)._defaultItems();
  950. $1=self["@items"];
  951. } else {
  952. $1=$2;
  953. };
  954. return $1;
  955. }, function($ctx1) {$ctx1.fill(self,"items",{},smalltalk.HLListWidget)})},
  956. messageSends: ["ifNil:", "defaultItems"]}),
  957. smalltalk.HLListWidget);
  958. smalltalk.addMethod(
  959. smalltalk.method({
  960. selector: "items:",
  961. fn: function (aCollection){
  962. var self=this;
  963. return smalltalk.withContext(function($ctx1) {
  964. self["@items"]=aCollection;
  965. return self}, function($ctx1) {$ctx1.fill(self,"items:",{aCollection:aCollection},smalltalk.HLListWidget)})},
  966. messageSends: []}),
  967. smalltalk.HLListWidget);
  968. smalltalk.addMethod(
  969. smalltalk.method({
  970. selector: "positionOf:",
  971. fn: function (aListItem){
  972. var self=this;
  973. return smalltalk.withContext(function($ctx1) {
  974. return aListItem.parent().children().get().indexOf(aListItem.get(0)) + 1
  975. ;
  976. return self}, function($ctx1) {$ctx1.fill(self,"positionOf:",{aListItem:aListItem},smalltalk.HLListWidget)})},
  977. messageSends: []}),
  978. smalltalk.HLListWidget);
  979. smalltalk.addMethod(
  980. smalltalk.method({
  981. selector: "refresh",
  982. fn: function (){
  983. var self=this;
  984. return smalltalk.withContext(function($ctx1) {
  985. var $1;
  986. var $early={};
  987. try {
  988. smalltalk.HLFocusableWidget.fn.prototype._refresh.apply(_st(self), []);
  989. _st(self)._ensureVisible_(_st(_st(self["@mapping"])._at_ifAbsent_(_st(self)._selectedItem(),(function(){
  990. return smalltalk.withContext(function($ctx2) {
  991. $1=self;
  992. throw $early=[$1];
  993. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})))._asJQuery());
  994. return self}
  995. catch(e) {if(e===$early)return e[0]; throw e}
  996. }, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLListWidget)})},
  997. messageSends: ["refresh", "ensureVisible:", "asJQuery", "at:ifAbsent:", "selectedItem"]}),
  998. smalltalk.HLListWidget);
  999. smalltalk.addMethod(
  1000. smalltalk.method({
  1001. selector: "registerMappingFrom:to:",
  1002. fn: function (anObject,aTag){
  1003. var self=this;
  1004. return smalltalk.withContext(function($ctx1) {
  1005. _st(self["@mapping"])._at_put_(anObject,aTag);
  1006. return self}, function($ctx1) {$ctx1.fill(self,"registerMappingFrom:to:",{anObject:anObject,aTag:aTag},smalltalk.HLListWidget)})},
  1007. messageSends: ["at:put:"]}),
  1008. smalltalk.HLListWidget);
  1009. smalltalk.addMethod(
  1010. smalltalk.method({
  1011. selector: "renderButtonsOn:",
  1012. fn: function (html){
  1013. var self=this;
  1014. return smalltalk.withContext(function($ctx1) {
  1015. return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLListWidget)})},
  1016. messageSends: []}),
  1017. smalltalk.HLListWidget);
  1018. smalltalk.addMethod(
  1019. smalltalk.method({
  1020. selector: "renderContentOn:",
  1021. fn: function (html){
  1022. var self=this;
  1023. return smalltalk.withContext(function($ctx1) {
  1024. var $1,$2,$3,$4;
  1025. $1=_st(html)._ul();
  1026. _st($1)._class_("nav nav-pills nav-stacked");
  1027. $2=_st($1)._with_((function(){
  1028. return smalltalk.withContext(function($ctx2) {
  1029. return _st(self)._renderListOn_(html);
  1030. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1031. $3=_st(html)._div();
  1032. _st($3)._class_("pane_actions form-actions");
  1033. $4=_st($3)._with_((function(){
  1034. return smalltalk.withContext(function($ctx2) {
  1035. return _st(self)._renderButtonsOn_(html);
  1036. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1037. _st(self)._setupKeyBindings();
  1038. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLListWidget)})},
  1039. messageSends: ["class:", "ul", "with:", "renderListOn:", "div", "renderButtonsOn:", "setupKeyBindings"]}),
  1040. smalltalk.HLListWidget);
  1041. smalltalk.addMethod(
  1042. smalltalk.method({
  1043. selector: "renderItem:on:",
  1044. fn: function (anObject,html){
  1045. var self=this;
  1046. var li;
  1047. return smalltalk.withContext(function($ctx1) {
  1048. var $1,$3,$4,$2;
  1049. li=_st(html)._li();
  1050. _st(self)._registerMappingFrom_to_(anObject,li);
  1051. $1=li;
  1052. _st($1)._class_(_st(self)._cssClassForItem_(anObject));
  1053. _st($1)._at_put_("list-data",_st(_st(_st(self)._items())._indexOf_(anObject))._asString());
  1054. $2=_st($1)._with_((function(){
  1055. return smalltalk.withContext(function($ctx2) {
  1056. $3=_st(html)._a();
  1057. _st($3)._with_((function(){
  1058. return smalltalk.withContext(function($ctx3) {
  1059. _st(_st(html)._tag_("i"))._class_(_st(self)._iconForItem_(anObject));
  1060. return _st(self)._renderItemLabel_on_(anObject,html);
  1061. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1062. $4=_st($3)._onClick_((function(){
  1063. return smalltalk.withContext(function($ctx3) {
  1064. return _st(self)._activateListItem_(_st(li)._asJQuery());
  1065. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1066. return $4;
  1067. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1068. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:on:",{anObject:anObject,html:html,li:li},smalltalk.HLListWidget)})},
  1069. messageSends: ["li", "registerMappingFrom:to:", "class:", "cssClassForItem:", "at:put:", "asString", "indexOf:", "items", "with:", "iconForItem:", "tag:", "renderItemLabel:on:", "a", "onClick:", "activateListItem:", "asJQuery"]}),
  1070. smalltalk.HLListWidget);
  1071. smalltalk.addMethod(
  1072. smalltalk.method({
  1073. selector: "renderItemLabel:on:",
  1074. fn: function (anObject,html){
  1075. var self=this;
  1076. return smalltalk.withContext(function($ctx1) {
  1077. _st(html)._with_(_st(anObject)._asString());
  1078. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{anObject:anObject,html:html},smalltalk.HLListWidget)})},
  1079. messageSends: ["with:", "asString"]}),
  1080. smalltalk.HLListWidget);
  1081. smalltalk.addMethod(
  1082. smalltalk.method({
  1083. selector: "renderListOn:",
  1084. fn: function (html){
  1085. var self=this;
  1086. function $Dictionary(){return smalltalk.Dictionary||(typeof Dictionary=="undefined"?nil:Dictionary)}
  1087. return smalltalk.withContext(function($ctx1) {
  1088. self["@mapping"]=_st($Dictionary())._new();
  1089. _st(_st(self)._items())._do_((function(each){
  1090. return smalltalk.withContext(function($ctx2) {
  1091. return _st(self)._renderItem_on_(each,html);
  1092. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1093. return self}, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html},smalltalk.HLListWidget)})},
  1094. messageSends: ["new", "do:", "renderItem:on:", "items"]}),
  1095. smalltalk.HLListWidget);
  1096. smalltalk.addMethod(
  1097. smalltalk.method({
  1098. selector: "selectItem:",
  1099. fn: function (anObject){
  1100. var self=this;
  1101. return smalltalk.withContext(function($ctx1) {
  1102. _st(self)._selectedItem_(anObject);
  1103. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  1104. messageSends: ["selectedItem:"]}),
  1105. smalltalk.HLListWidget);
  1106. smalltalk.addMethod(
  1107. smalltalk.method({
  1108. selector: "selectedItem",
  1109. fn: function (){
  1110. var self=this;
  1111. return smalltalk.withContext(function($ctx1) {
  1112. var $1;
  1113. $1=self["@selectedItem"];
  1114. return $1;
  1115. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{},smalltalk.HLListWidget)})},
  1116. messageSends: []}),
  1117. smalltalk.HLListWidget);
  1118. smalltalk.addMethod(
  1119. smalltalk.method({
  1120. selector: "selectedItem:",
  1121. fn: function (anObject){
  1122. var self=this;
  1123. return smalltalk.withContext(function($ctx1) {
  1124. self["@selectedItem"]=anObject;
  1125. return self}, function($ctx1) {$ctx1.fill(self,"selectedItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  1126. messageSends: []}),
  1127. smalltalk.HLListWidget);
  1128. smalltalk.addMethod(
  1129. smalltalk.method({
  1130. selector: "setupKeyBindings",
  1131. fn: function (){
  1132. var self=this;
  1133. var active,interval,delay,repeatInterval;
  1134. return smalltalk.withContext(function($ctx1) {
  1135. var $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11;
  1136. active=false;
  1137. repeatInterval=(70);
  1138. _st(_st(_st(self)._wrapper())._asJQuery())._unbind_("keydown");
  1139. _st(_st(_st(self)._wrapper())._asJQuery())._keydown_((function(e){
  1140. return smalltalk.withContext(function($ctx2) {
  1141. $1=_st(_st(_st(e)._which()).__eq((38)))._and_((function(){
  1142. return smalltalk.withContext(function($ctx3) {
  1143. return _st(active).__eq(false);
  1144. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1145. if(smalltalk.assert($1)){
  1146. active=true;
  1147. active;
  1148. _st(self)._activatePreviousListItem();
  1149. delay=_st((function(){
  1150. return smalltalk.withContext(function($ctx3) {
  1151. interval=_st((function(){
  1152. return smalltalk.withContext(function($ctx4) {
  1153. $2=_st(_st(_st(self)._wrapper())._asJQuery())._hasClass_(_st(self)._focusClass());
  1154. if(smalltalk.assert($2)){
  1155. return _st(self)._activatePreviousListItem();
  1156. } else {
  1157. active=false;
  1158. active;
  1159. $3=interval;
  1160. if(($receiver = $3) == nil || $receiver == undefined){
  1161. $3;
  1162. } else {
  1163. _st(interval)._clearInterval();
  1164. };
  1165. $4=delay;
  1166. if(($receiver = $4) == nil || $receiver == undefined){
  1167. return $4;
  1168. } else {
  1169. return _st(delay)._clearTimeout();
  1170. };
  1171. };
  1172. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}))._valueWithInterval_(repeatInterval);
  1173. return interval;
  1174. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}))._valueWithTimeout_((300));
  1175. delay;
  1176. };
  1177. $5=_st(_st(_st(e)._which()).__eq((40)))._and_((function(){
  1178. return smalltalk.withContext(function($ctx3) {
  1179. return _st(active).__eq(false);
  1180. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1181. if(smalltalk.assert($5)){
  1182. active=true;
  1183. active;
  1184. _st(self)._activateNextListItem();
  1185. delay=_st((function(){
  1186. return smalltalk.withContext(function($ctx3) {
  1187. interval=_st((function(){
  1188. return smalltalk.withContext(function($ctx4) {
  1189. $6=_st(_st(_st(self)._wrapper())._asJQuery())._hasClass_(_st(self)._focusClass());
  1190. if(smalltalk.assert($6)){
  1191. return _st(self)._activateNextListItem();
  1192. } else {
  1193. active=false;
  1194. active;
  1195. $7=interval;
  1196. if(($receiver = $7) == nil || $receiver == undefined){
  1197. $7;
  1198. } else {
  1199. _st(interval)._clearInterval();
  1200. };
  1201. $8=delay;
  1202. if(($receiver = $8) == nil || $receiver == undefined){
  1203. return $8;
  1204. } else {
  1205. return _st(delay)._clearTimeout();
  1206. };
  1207. };
  1208. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}))._valueWithInterval_(repeatInterval);
  1209. return interval;
  1210. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}))._valueWithTimeout_((300));
  1211. return delay;
  1212. };
  1213. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  1214. _st(_st(_st(self)._wrapper())._asJQuery())._keyup_((function(e){
  1215. return smalltalk.withContext(function($ctx2) {
  1216. $9=active;
  1217. if(smalltalk.assert($9)){
  1218. active=false;
  1219. active;
  1220. $10=interval;
  1221. if(($receiver = $10) == nil || $receiver == undefined){
  1222. $10;
  1223. } else {
  1224. _st(interval)._clearInterval();
  1225. };
  1226. $11=delay;
  1227. if(($receiver = $11) == nil || $receiver == undefined){
  1228. return $11;
  1229. } else {
  1230. return _st(delay)._clearTimeout();
  1231. };
  1232. };
  1233. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  1234. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{active:active,interval:interval,delay:delay,repeatInterval:repeatInterval},smalltalk.HLListWidget)})},
  1235. messageSends: ["unbind:", "asJQuery", "wrapper", "keydown:", "ifTrue:", "activatePreviousListItem", "valueWithTimeout:", "valueWithInterval:", "ifTrue:ifFalse:", "ifNotNil:", "clearInterval", "clearTimeout", "hasClass:", "focusClass", "and:", "=", "which", "activateNextListItem", "keyup:"]}),
  1236. smalltalk.HLListWidget);
  1237. smalltalk.addClass('HLNavigationListWidget', smalltalk.HLListWidget, ['previous', 'next'], 'Helios-Core');
  1238. smalltalk.addMethod(
  1239. smalltalk.method({
  1240. selector: "next",
  1241. fn: function (){
  1242. var self=this;
  1243. return smalltalk.withContext(function($ctx1) {
  1244. var $1;
  1245. $1=self["@next"];
  1246. return $1;
  1247. }, function($ctx1) {$ctx1.fill(self,"next",{},smalltalk.HLNavigationListWidget)})},
  1248. messageSends: []}),
  1249. smalltalk.HLNavigationListWidget);
  1250. smalltalk.addMethod(
  1251. smalltalk.method({
  1252. selector: "next:",
  1253. fn: function (aWidget){
  1254. var self=this;
  1255. return smalltalk.withContext(function($ctx1) {
  1256. var $1;
  1257. self["@next"]=aWidget;
  1258. $1=_st(_st(aWidget)._previous()).__eq(self);
  1259. if(! smalltalk.assert($1)){
  1260. _st(aWidget)._previous_(self);
  1261. };
  1262. return self}, function($ctx1) {$ctx1.fill(self,"next:",{aWidget:aWidget},smalltalk.HLNavigationListWidget)})},
  1263. messageSends: ["ifFalse:", "previous:", "=", "previous"]}),
  1264. smalltalk.HLNavigationListWidget);
  1265. smalltalk.addMethod(
  1266. smalltalk.method({
  1267. selector: "nextFocus",
  1268. fn: function (){
  1269. var self=this;
  1270. return smalltalk.withContext(function($ctx1) {
  1271. var $1;
  1272. $1=_st(self)._next();
  1273. if(($receiver = $1) == nil || $receiver == undefined){
  1274. $1;
  1275. } else {
  1276. _st(_st(self)._next())._focus();
  1277. };
  1278. return self}, function($ctx1) {$ctx1.fill(self,"nextFocus",{},smalltalk.HLNavigationListWidget)})},
  1279. messageSends: ["ifNotNil:", "focus", "next"]}),
  1280. smalltalk.HLNavigationListWidget);
  1281. smalltalk.addMethod(
  1282. smalltalk.method({
  1283. selector: "previous",
  1284. fn: function (){
  1285. var self=this;
  1286. return smalltalk.withContext(function($ctx1) {
  1287. var $1;
  1288. $1=self["@previous"];
  1289. return $1;
  1290. }, function($ctx1) {$ctx1.fill(self,"previous",{},smalltalk.HLNavigationListWidget)})},
  1291. messageSends: []}),
  1292. smalltalk.HLNavigationListWidget);
  1293. smalltalk.addMethod(
  1294. smalltalk.method({
  1295. selector: "previous:",
  1296. fn: function (aWidget){
  1297. var self=this;
  1298. return smalltalk.withContext(function($ctx1) {
  1299. var $1;
  1300. self["@previous"]=aWidget;
  1301. $1=_st(_st(aWidget)._next()).__eq(self);
  1302. if(! smalltalk.assert($1)){
  1303. _st(aWidget)._next_(self);
  1304. };
  1305. return self}, function($ctx1) {$ctx1.fill(self,"previous:",{aWidget:aWidget},smalltalk.HLNavigationListWidget)})},
  1306. messageSends: ["ifFalse:", "next:", "=", "next"]}),
  1307. smalltalk.HLNavigationListWidget);
  1308. smalltalk.addMethod(
  1309. smalltalk.method({
  1310. selector: "previousFocus",
  1311. fn: function (){
  1312. var self=this;
  1313. return smalltalk.withContext(function($ctx1) {
  1314. var $1;
  1315. $1=_st(self)._previous();
  1316. if(($receiver = $1) == nil || $receiver == undefined){
  1317. $1;
  1318. } else {
  1319. _st(_st(self)._previous())._focus();
  1320. };
  1321. return self}, function($ctx1) {$ctx1.fill(self,"previousFocus",{},smalltalk.HLNavigationListWidget)})},
  1322. messageSends: ["ifNotNil:", "focus", "previous"]}),
  1323. smalltalk.HLNavigationListWidget);
  1324. smalltalk.addMethod(
  1325. smalltalk.method({
  1326. selector: "setupKeyBindings",
  1327. fn: function (){
  1328. var self=this;
  1329. return smalltalk.withContext(function($ctx1) {
  1330. var $1,$2;
  1331. smalltalk.HLListWidget.fn.prototype._setupKeyBindings.apply(_st(self), []);
  1332. _st(_st(_st(self)._wrapper())._asJQuery())._keydown_((function(e){
  1333. return smalltalk.withContext(function($ctx2) {
  1334. $1=_st(_st(e)._which()).__eq((39));
  1335. if(smalltalk.assert($1)){
  1336. _st(self)._nextFocus();
  1337. };
  1338. $2=_st(_st(e)._which()).__eq((37));
  1339. if(smalltalk.assert($2)){
  1340. return _st(self)._previousFocus();
  1341. };
  1342. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  1343. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{},smalltalk.HLNavigationListWidget)})},
  1344. messageSends: ["setupKeyBindings", "keydown:", "ifTrue:", "nextFocus", "=", "which", "previousFocus", "asJQuery", "wrapper"]}),
  1345. smalltalk.HLNavigationListWidget);
  1346. smalltalk.addClass('HLManager', smalltalk.HLWidget, ['tabs', 'activeTab', 'keyBinder', 'environment', 'history'], 'Helios-Core');
  1347. smalltalk.addMethod(
  1348. smalltalk.method({
  1349. selector: "activate:",
  1350. fn: function (aTab){
  1351. var self=this;
  1352. return smalltalk.withContext(function($ctx1) {
  1353. var $1,$2;
  1354. _st(_st(self)._keyBinder())._flushBindings();
  1355. _st(aTab)._registerBindings();
  1356. self["@activeTab"]=aTab;
  1357. $1=self;
  1358. _st($1)._refresh();
  1359. _st($1)._addToHistory_(aTab);
  1360. $2=_st($1)._show_(aTab);
  1361. return self}, function($ctx1) {$ctx1.fill(self,"activate:",{aTab:aTab},smalltalk.HLManager)})},
  1362. messageSends: ["flushBindings", "keyBinder", "registerBindings", "refresh", "addToHistory:", "show:"]}),
  1363. smalltalk.HLManager);
  1364. smalltalk.addMethod(
  1365. smalltalk.method({
  1366. selector: "activeTab",
  1367. fn: function (){
  1368. var self=this;
  1369. return smalltalk.withContext(function($ctx1) {
  1370. var $1;
  1371. $1=self["@activeTab"];
  1372. return $1;
  1373. }, function($ctx1) {$ctx1.fill(self,"activeTab",{},smalltalk.HLManager)})},
  1374. messageSends: []}),
  1375. smalltalk.HLManager);
  1376. smalltalk.addMethod(
  1377. smalltalk.method({
  1378. selector: "addTab:",
  1379. fn: function (aTab){
  1380. var self=this;
  1381. return smalltalk.withContext(function($ctx1) {
  1382. _st(_st(self)._tabs())._add_(aTab);
  1383. _st(self)._activate_(aTab);
  1384. return self}, function($ctx1) {$ctx1.fill(self,"addTab:",{aTab:aTab},smalltalk.HLManager)})},
  1385. messageSends: ["add:", "tabs", "activate:"]}),
  1386. smalltalk.HLManager);
  1387. smalltalk.addMethod(
  1388. smalltalk.method({
  1389. selector: "addToHistory:",
  1390. fn: function (aTab){
  1391. var self=this;
  1392. return smalltalk.withContext(function($ctx1) {
  1393. _st(self)._removeFromHistory_(aTab);
  1394. _st(_st(self)._history())._add_(aTab);
  1395. return self}, function($ctx1) {$ctx1.fill(self,"addToHistory:",{aTab:aTab},smalltalk.HLManager)})},
  1396. messageSends: ["removeFromHistory:", "add:", "history"]}),
  1397. smalltalk.HLManager);
  1398. smalltalk.addMethod(
  1399. smalltalk.method({
  1400. selector: "confirm:ifFalse:",
  1401. fn: function (aString,aBlock){
  1402. var self=this;
  1403. function $HLConfirmation(){return smalltalk.HLConfirmation||(typeof HLConfirmation=="undefined"?nil:HLConfirmation)}
  1404. return smalltalk.withContext(function($ctx1) {
  1405. var $1,$2;
  1406. $1=_st($HLConfirmation())._new();
  1407. _st($1)._confirmationString_(aString);
  1408. _st($1)._cancelBlock_(aBlock);
  1409. $2=_st($1)._yourself();
  1410. _st($2)._appendToJQuery_(_st("body")._asJQuery());
  1411. return self}, function($ctx1) {$ctx1.fill(self,"confirm:ifFalse:",{aString:aString,aBlock:aBlock},smalltalk.HLManager)})},
  1412. messageSends: ["appendToJQuery:", "asJQuery", "confirmationString:", "new", "cancelBlock:", "yourself"]}),
  1413. smalltalk.HLManager);
  1414. smalltalk.addMethod(
  1415. smalltalk.method({
  1416. selector: "confirm:ifTrue:",
  1417. fn: function (aString,aBlock){
  1418. var self=this;
  1419. function $HLConfirmation(){return smalltalk.HLConfirmation||(typeof HLConfirmation=="undefined"?nil:HLConfirmation)}
  1420. return smalltalk.withContext(function($ctx1) {
  1421. var $1,$2;
  1422. $1=_st($HLConfirmation())._new();
  1423. _st($1)._confirmationString_(aString);
  1424. _st($1)._actionBlock_(aBlock);
  1425. $2=_st($1)._yourself();
  1426. _st($2)._appendToJQuery_(_st("body")._asJQuery());
  1427. return self}, function($ctx1) {$ctx1.fill(self,"confirm:ifTrue:",{aString:aString,aBlock:aBlock},smalltalk.HLManager)})},
  1428. messageSends: ["appendToJQuery:", "asJQuery", "confirmationString:", "new", "actionBlock:", "yourself"]}),
  1429. smalltalk.HLManager);
  1430. smalltalk.addMethod(
  1431. smalltalk.method({
  1432. selector: "defaultEnvironment",
  1433. fn: function (){
  1434. var self=this;
  1435. function $Environment(){return smalltalk.Environment||(typeof Environment=="undefined"?nil:Environment)}
  1436. return smalltalk.withContext(function($ctx1) {
  1437. var $1,$2,$3;
  1438. $1=_st(window)._parent();
  1439. if(($receiver = $1) == nil || $receiver == undefined){
  1440. $2=_st($Environment())._new();
  1441. return $2;
  1442. } else {
  1443. $1;
  1444. };
  1445. $3=_st(_st(_st(_st(window)._parent())._at_("smalltalk"))._at_("Environment"))._new();
  1446. return $3;
  1447. }, function($ctx1) {$ctx1.fill(self,"defaultEnvironment",{},smalltalk.HLManager)})},
  1448. messageSends: ["ifNil:", "new", "parent", "at:"]}),
  1449. smalltalk.HLManager);
  1450. smalltalk.addMethod(
  1451. smalltalk.method({
  1452. selector: "environment",
  1453. fn: function (){
  1454. var self=this;
  1455. return smalltalk.withContext(function($ctx1) {
  1456. var $2,$1;
  1457. $2=self["@environment"];
  1458. if(($receiver = $2) == nil || $receiver == undefined){
  1459. self["@environment"]=_st(self)._defaultEnvironment();
  1460. $1=self["@environment"];
  1461. } else {
  1462. $1=$2;
  1463. };
  1464. return $1;
  1465. }, function($ctx1) {$ctx1.fill(self,"environment",{},smalltalk.HLManager)})},
  1466. messageSends: ["ifNil:", "defaultEnvironment"]}),
  1467. smalltalk.HLManager);
  1468. smalltalk.addMethod(
  1469. smalltalk.method({
  1470. selector: "environment:",
  1471. fn: function (anEnvironment){
  1472. var self=this;
  1473. return smalltalk.withContext(function($ctx1) {
  1474. self["@environment"]=anEnvironment;
  1475. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment},smalltalk.HLManager)})},
  1476. messageSends: []}),
  1477. smalltalk.HLManager);
  1478. smalltalk.addMethod(
  1479. smalltalk.method({
  1480. selector: "history",
  1481. fn: function (){
  1482. var self=this;
  1483. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  1484. return smalltalk.withContext(function($ctx1) {
  1485. var $2,$1;
  1486. $2=self["@history"];
  1487. if(($receiver = $2) == nil || $receiver == undefined){
  1488. self["@history"]=_st($OrderedCollection())._new();
  1489. $1=self["@history"];
  1490. } else {
  1491. $1=$2;
  1492. };
  1493. return $1;
  1494. }, function($ctx1) {$ctx1.fill(self,"history",{},smalltalk.HLManager)})},
  1495. messageSends: ["ifNil:", "new"]}),
  1496. smalltalk.HLManager);
  1497. smalltalk.addMethod(
  1498. smalltalk.method({
  1499. selector: "history:",
  1500. fn: function (aCollection){
  1501. var self=this;
  1502. return smalltalk.withContext(function($ctx1) {
  1503. self["@history"]=aCollection;
  1504. return self}, function($ctx1) {$ctx1.fill(self,"history:",{aCollection:aCollection},smalltalk.HLManager)})},
  1505. messageSends: []}),
  1506. smalltalk.HLManager);
  1507. smalltalk.addMethod(
  1508. smalltalk.method({
  1509. selector: "initialize",
  1510. fn: function (){
  1511. var self=this;
  1512. return smalltalk.withContext(function($ctx1) {
  1513. smalltalk.HLWidget.fn.prototype._initialize.apply(_st(self), []);
  1514. _st(_st(self)._keyBinder())._setupEvents();
  1515. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLManager)})},
  1516. messageSends: ["initialize", "setupEvents", "keyBinder"]}),
  1517. smalltalk.HLManager);
  1518. smalltalk.addMethod(
  1519. smalltalk.method({
  1520. selector: "keyBinder",
  1521. fn: function (){
  1522. var self=this;
  1523. function $HLKeyBinder(){return smalltalk.HLKeyBinder||(typeof HLKeyBinder=="undefined"?nil:HLKeyBinder)}
  1524. return smalltalk.withContext(function($ctx1) {
  1525. var $2,$1;
  1526. $2=self["@keyBinder"];
  1527. if(($receiver = $2) == nil || $receiver == undefined){
  1528. self["@keyBinder"]=_st($HLKeyBinder())._new();
  1529. $1=self["@keyBinder"];
  1530. } else {
  1531. $1=$2;
  1532. };
  1533. return $1;
  1534. }, function($ctx1) {$ctx1.fill(self,"keyBinder",{},smalltalk.HLManager)})},
  1535. messageSends: ["ifNil:", "new"]}),
  1536. smalltalk.HLManager);
  1537. smalltalk.addMethod(
  1538. smalltalk.method({
  1539. selector: "refresh",
  1540. fn: function (){
  1541. var self=this;
  1542. return smalltalk.withContext(function($ctx1) {
  1543. _st(_st(window)._jQuery_(".navbar"))._remove();
  1544. _st(self)._appendToJQuery_(_st("body")._asJQuery());
  1545. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.HLManager)})},
  1546. messageSends: ["remove", "jQuery:", "appendToJQuery:", "asJQuery"]}),
  1547. smalltalk.HLManager);
  1548. smalltalk.addMethod(
  1549. smalltalk.method({
  1550. selector: "removeActiveTab",
  1551. fn: function (){
  1552. var self=this;
  1553. return smalltalk.withContext(function($ctx1) {
  1554. _st(self)._removeTab_(_st(self)._activeTab());
  1555. return self}, function($ctx1) {$ctx1.fill(self,"removeActiveTab",{},smalltalk.HLManager)})},
  1556. messageSends: ["removeTab:", "activeTab"]}),
  1557. smalltalk.HLManager);
  1558. smalltalk.addMethod(
  1559. smalltalk.method({
  1560. selector: "removeFromHistory:",
  1561. fn: function (aTab){
  1562. var self=this;
  1563. return smalltalk.withContext(function($ctx1) {
  1564. _st(self)._history_(_st(_st(self)._history())._reject_((function(each){
  1565. return smalltalk.withContext(function($ctx2) {
  1566. return _st(each).__eq_eq(aTab);
  1567. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})));
  1568. return self}, function($ctx1) {$ctx1.fill(self,"removeFromHistory:",{aTab:aTab},smalltalk.HLManager)})},
  1569. messageSends: ["history:", "reject:", "==", "history"]}),
  1570. smalltalk.HLManager);
  1571. smalltalk.addMethod(
  1572. smalltalk.method({
  1573. selector: "removeTab:",
  1574. fn: function (aTab){
  1575. var self=this;
  1576. return smalltalk.withContext(function($ctx1) {
  1577. var $1,$2;
  1578. $1=_st(_st(self)._tabs())._includes_(aTab);
  1579. if(! smalltalk.assert($1)){
  1580. $2=self;
  1581. return $2;
  1582. };
  1583. _st(self)._removeFromHistory_(aTab);
  1584. _st(_st(self)._tabs())._remove_(aTab);
  1585. _st(_st(self)._keyBinder())._flushBindings();
  1586. _st(aTab)._remove();
  1587. _st(self)._refresh();
  1588. _st(_st(self)._history())._ifNotEmpty_((function(){
  1589. return smalltalk.withContext(function($ctx2) {
  1590. return _st(_st(_st(self)._history())._last())._activate();
  1591. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1592. return self}, function($ctx1) {$ctx1.fill(self,"removeTab:",{aTab:aTab},smalltalk.HLManager)})},
  1593. messageSends: ["ifFalse:", "includes:", "tabs", "removeFromHistory:", "remove:", "flushBindings", "keyBinder", "remove", "refresh", "ifNotEmpty:", "activate", "last", "history"]}),
  1594. smalltalk.HLManager);
  1595. smalltalk.addMethod(
  1596. smalltalk.method({
  1597. selector: "renderAddOn:",
  1598. fn: function (html){
  1599. var self=this;
  1600. function $HLWidget(){return smalltalk.HLWidget||(typeof HLWidget=="undefined"?nil:HLWidget)}
  1601. return smalltalk.withContext(function($ctx1) {
  1602. var $1,$3,$4,$5,$7,$8,$6,$2;
  1603. $1=_st(html)._li();
  1604. _st($1)._class_("dropdown");
  1605. $2=_st($1)._with_((function(){
  1606. return smalltalk.withContext(function($ctx2) {
  1607. $3=_st(html)._a();
  1608. _st($3)._class_("dropdown-toggle");
  1609. _st($3)._at_put_("data-toggle","dropdown");
  1610. $4=_st($3)._with_((function(){
  1611. return smalltalk.withContext(function($ctx3) {
  1612. _st(html)._with_("Open...");
  1613. return _st(_st(html)._tag_("b"))._class_("caret");
  1614. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1615. $4;
  1616. $5=_st(html)._ul();
  1617. _st($5)._class_("dropdown-menu");
  1618. $6=_st($5)._with_((function(){
  1619. return smalltalk.withContext(function($ctx3) {
  1620. return _st(_st(_st(_st($HLWidget())._withAllSubclasses())._select_((function(each){
  1621. return smalltalk.withContext(function($ctx4) {
  1622. return _st(each)._canBeOpenAsTab();
  1623. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx1)})})))._sorted_((function(a,b){
  1624. return smalltalk.withContext(function($ctx4) {
  1625. return _st(_st(a)._tabPriority()).__lt(_st(b)._tabPriority());
  1626. }, function($ctx4) {$ctx4.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(each){
  1627. return smalltalk.withContext(function($ctx4) {
  1628. return _st(_st(html)._li())._with_((function(){
  1629. return smalltalk.withContext(function($ctx5) {
  1630. $7=_st(html)._a();
  1631. _st($7)._with_(_st(each)._tabLabel());
  1632. $8=_st($7)._onClick_((function(){
  1633. return smalltalk.withContext(function($ctx6) {
  1634. return _st(each)._openAsTab();
  1635. }, function($ctx6) {$ctx6.fillBlock({},$ctx1)})}));
  1636. return $8;
  1637. }, function($ctx5) {$ctx5.fillBlock({},$ctx1)})}));
  1638. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx1)})}));
  1639. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1640. return $6;
  1641. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1642. return self}, function($ctx1) {$ctx1.fill(self,"renderAddOn:",{html:html},smalltalk.HLManager)})},
  1643. messageSends: ["class:", "li", "with:", "a", "at:put:", "tag:", "ul", "do:", "tabLabel", "onClick:", "openAsTab", "sorted:", "<", "tabPriority", "select:", "canBeOpenAsTab", "withAllSubclasses"]}),
  1644. smalltalk.HLManager);
  1645. smalltalk.addMethod(
  1646. smalltalk.method({
  1647. selector: "renderContentOn:",
  1648. fn: function (html){
  1649. var self=this;
  1650. return smalltalk.withContext(function($ctx1) {
  1651. var $1,$3,$4,$2;
  1652. $1=_st(html)._div();
  1653. _st($1)._class_("navbar navbar-fixed-top");
  1654. $2=_st($1)._with_((function(){
  1655. return smalltalk.withContext(function($ctx2) {
  1656. $3=_st(html)._div();
  1657. _st($3)._class_("navbar-inner");
  1658. $4=_st($3)._with_((function(){
  1659. return smalltalk.withContext(function($ctx3) {
  1660. return _st(self)._renderTabsOn_(html);
  1661. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1662. return $4;
  1663. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1664. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html},smalltalk.HLManager)})},
  1665. messageSends: ["class:", "div", "with:", "renderTabsOn:"]}),
  1666. smalltalk.HLManager);
  1667. smalltalk.addMethod(
  1668. smalltalk.method({
  1669. selector: "renderTabsOn:",
  1670. fn: function (html){
  1671. var self=this;
  1672. return smalltalk.withContext(function($ctx1) {
  1673. var $1,$3,$4,$6,$5,$8,$9,$7,$2;
  1674. $1=_st(html)._ul();
  1675. _st($1)._class_("nav");
  1676. $2=_st($1)._with_((function(){
  1677. return smalltalk.withContext(function($ctx2) {
  1678. _st(_st(self)._tabs())._do_((function(each){
  1679. return smalltalk.withContext(function($ctx3) {
  1680. $3=_st(html)._li();
  1681. $4=$3;
  1682. $6=_st(each)._isActive();
  1683. if(smalltalk.assert($6)){
  1684. $5="active";
  1685. } else {
  1686. $5="inactive";
  1687. };
  1688. _st($4)._class_($5);
  1689. $7=_st($3)._with_((function(){
  1690. return smalltalk.withContext(function($ctx4) {
  1691. $8=_st(html)._a();
  1692. _st($8)._with_((function(){
  1693. return smalltalk.withContext(function($ctx5) {
  1694. _st(_st(_st(html)._tag_("i"))._class_("icon-remove"))._onClick_((function(){
  1695. return smalltalk.withContext(function($ctx6) {
  1696. return _st(self)._removeTab_(each);
  1697. }, function($ctx6) {$ctx6.fillBlock({},$ctx1)})}));
  1698. return _st(html)._with_(_st(each)._displayLabel());
  1699. }, function($ctx5) {$ctx5.fillBlock({},$ctx1)})}));
  1700. $9=_st($8)._onClick_((function(){
  1701. return smalltalk.withContext(function($ctx5) {
  1702. return _st(each)._activate();
  1703. }, function($ctx5) {$ctx5.fillBlock({},$ctx1)})}));
  1704. return $9;
  1705. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
  1706. return $7;
  1707. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
  1708. return _st(self)._renderAddOn_(html);
  1709. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1710. return self}, function($ctx1) {$ctx1.fill(self,"renderTabsOn:",{html:html},smalltalk.HLManager)})},
  1711. messageSends: ["class:", "ul", "with:", "do:", "ifTrue:ifFalse:", "isActive", "li", "onClick:", "removeTab:", "tag:", "displayLabel", "a", "activate", "tabs", "renderAddOn:"]}),
  1712. smalltalk.HLManager);
  1713. smalltalk.addMethod(
  1714. smalltalk.method({
  1715. selector: "show:",
  1716. fn: function (aTab){
  1717. var self=this;
  1718. return smalltalk.withContext(function($ctx1) {
  1719. var $1,$2;
  1720. _st(_st(self)._tabs())._do_((function(each){
  1721. return smalltalk.withContext(function($ctx2) {
  1722. return _st(each)._hide();
  1723. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  1724. $1=aTab;
  1725. _st($1)._show();
  1726. $2=_st($1)._focus();
  1727. return self}, function($ctx1) {$ctx1.fill(self,"show:",{aTab:aTab},smalltalk.HLManager)})},
  1728. messageSends: ["do:", "hide", "tabs", "show", "focus"]}),
  1729. smalltalk.HLManager);
  1730. smalltalk.addMethod(
  1731. smalltalk.method({
  1732. selector: "tabs",
  1733. fn: function (){
  1734. var self=this;
  1735. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  1736. return smalltalk.withContext(function($ctx1) {
  1737. var $2,$1;
  1738. $2=self["@tabs"];
  1739. if(($receiver = $2) == nil || $receiver == undefined){
  1740. self["@tabs"]=_st($OrderedCollection())._new();
  1741. $1=self["@tabs"];
  1742. } else {
  1743. $1=$2;
  1744. };
  1745. return $1;
  1746. }, function($ctx1) {$ctx1.fill(self,"tabs",{},smalltalk.HLManager)})},
  1747. messageSends: ["ifNil:", "new"]}),
  1748. smalltalk.HLManager);
  1749. smalltalk.HLManager.klass.iVarNames = ['current'];
  1750. smalltalk.addMethod(
  1751. smalltalk.method({
  1752. selector: "current",
  1753. fn: function (){
  1754. var self=this;
  1755. return smalltalk.withContext(function($ctx1) {
  1756. var $2,$1;
  1757. $2=self["@current"];
  1758. if(($receiver = $2) == nil || $receiver == undefined){
  1759. self["@current"]=_st(_st(self)._basicNew())._initialize();
  1760. $1=self["@current"];
  1761. } else {
  1762. $1=$2;
  1763. };
  1764. return $1;
  1765. }, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.HLManager.klass)})},
  1766. messageSends: ["ifNil:", "initialize", "basicNew"]}),
  1767. smalltalk.HLManager.klass);
  1768. smalltalk.addMethod(
  1769. smalltalk.method({
  1770. selector: "initialize",
  1771. fn: function (){
  1772. var self=this;
  1773. return smalltalk.withContext(function($ctx1) {
  1774. _st(_st(self)._current())._appendToJQuery_(_st("body")._asJQuery());
  1775. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLManager.klass)})},
  1776. messageSends: ["appendToJQuery:", "asJQuery", "current"]}),
  1777. smalltalk.HLManager.klass);
  1778. smalltalk.addMethod(
  1779. smalltalk.method({
  1780. selector: "new",
  1781. fn: function (){
  1782. var self=this;
  1783. return smalltalk.withContext(function($ctx1) {
  1784. _st(self)._shouldNotImplement();
  1785. return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.HLManager.klass)})},
  1786. messageSends: ["shouldNotImplement"]}),
  1787. smalltalk.HLManager.klass);
  1788. smalltalk.addClass('HLSUnit', smalltalk.HLWidget, [], 'Helios-Core');
  1789. smalltalk.addMethod(
  1790. smalltalk.method({
  1791. selector: "canBeOpenAsTab",
  1792. fn: function (){
  1793. var self=this;
  1794. return smalltalk.withContext(function($ctx1) {
  1795. return true;
  1796. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLSUnit.klass)})},
  1797. messageSends: []}),
  1798. smalltalk.HLSUnit.klass);
  1799. smalltalk.addMethod(
  1800. smalltalk.method({
  1801. selector: "tabLabel",
  1802. fn: function (){
  1803. var self=this;
  1804. return smalltalk.withContext(function($ctx1) {
  1805. return "SUnit";
  1806. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLSUnit.klass)})},
  1807. messageSends: []}),
  1808. smalltalk.HLSUnit.klass);
  1809. smalltalk.addMethod(
  1810. smalltalk.method({
  1811. selector: "tabPriority",
  1812. fn: function (){
  1813. var self=this;
  1814. return smalltalk.withContext(function($ctx1) {
  1815. var $1;
  1816. $1=(1000);
  1817. return $1;
  1818. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLSUnit.klass)})},
  1819. messageSends: []}),
  1820. smalltalk.HLSUnit.klass);
  1821. smalltalk.addClass('HLTranscript', smalltalk.HLWidget, [], 'Helios-Core');
  1822. smalltalk.addMethod(
  1823. smalltalk.method({
  1824. selector: "canBeOpenAsTab",
  1825. fn: function (){
  1826. var self=this;
  1827. return smalltalk.withContext(function($ctx1) {
  1828. return true;
  1829. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{},smalltalk.HLTranscript.klass)})},
  1830. messageSends: []}),
  1831. smalltalk.HLTranscript.klass);
  1832. smalltalk.addMethod(
  1833. smalltalk.method({
  1834. selector: "tabLabel",
  1835. fn: function (){
  1836. var self=this;
  1837. return smalltalk.withContext(function($ctx1) {
  1838. return "Transcript";
  1839. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{},smalltalk.HLTranscript.klass)})},
  1840. messageSends: []}),
  1841. smalltalk.HLTranscript.klass);
  1842. smalltalk.addMethod(
  1843. smalltalk.method({
  1844. selector: "tabPriority",
  1845. fn: function (){
  1846. var self=this;
  1847. return smalltalk.withContext(function($ctx1) {
  1848. var $1;
  1849. $1=(600);
  1850. return $1;
  1851. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{},smalltalk.HLTranscript.klass)})},
  1852. messageSends: []}),
  1853. smalltalk.HLTranscript.klass);