Helios-Core.deploy.js 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438
  1. smalltalk.addPackage('Helios-Core');
  2. smalltalk.addClass('HLTab', smalltalk.Object, ['widget', 'label'], 'Helios-Core');
  3. smalltalk.addMethod(
  4. "_activate",
  5. smalltalk.method({
  6. selector: "activate",
  7. fn: function (){
  8. var self=this;
  9. return smalltalk.withContext(function($ctx1) { _st(_st(self)._manager())._activate_(self);
  10. return self}, function($ctx1) {$ctx1.fill(self,"activate",{}, smalltalk.HLTab)})},
  11. messageSends: ["activate:", "manager"]}),
  12. smalltalk.HLTab);
  13. smalltalk.addMethod(
  14. "_add",
  15. smalltalk.method({
  16. selector: "add",
  17. fn: function (){
  18. var self=this;
  19. return smalltalk.withContext(function($ctx1) { _st(_st(self)._manager())._addTab_(self);
  20. return self}, function($ctx1) {$ctx1.fill(self,"add",{}, smalltalk.HLTab)})},
  21. messageSends: ["addTab:", "manager"]}),
  22. smalltalk.HLTab);
  23. smalltalk.addMethod(
  24. "_displayLabel",
  25. smalltalk.method({
  26. selector: "displayLabel",
  27. fn: function (){
  28. var self=this;
  29. return smalltalk.withContext(function($ctx1) { var $2,$1;
  30. $2=_st(_st(_st(self)._label())._size()).__gt((20));
  31. if(smalltalk.assert($2)){
  32. $1=_st(_st(_st(self)._label())._first_((20))).__comma("...");
  33. } else {
  34. $1=_st(self)._label();
  35. };
  36. return $1;
  37. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLTab)})},
  38. messageSends: ["ifTrue:ifFalse:", ",", "first:", "label", ">", "size"]}),
  39. smalltalk.HLTab);
  40. smalltalk.addMethod(
  41. "_focus",
  42. smalltalk.method({
  43. selector: "focus",
  44. fn: function (){
  45. var self=this;
  46. return smalltalk.withContext(function($ctx1) { var $1;
  47. $1=_st(_st(self)._widget())._canHaveFocus();
  48. if(smalltalk.assert($1)){
  49. _st(_st(self)._widget())._focus();
  50. };
  51. return self}, function($ctx1) {$ctx1.fill(self,"focus",{},smalltalk.HLTab)})},
  52. messageSends: ["ifTrue:", "focus", "widget", "canHaveFocus"]}),
  53. smalltalk.HLTab);
  54. smalltalk.addMethod(
  55. "_isActive",
  56. smalltalk.method({
  57. selector: "isActive",
  58. fn: function (){
  59. var self=this;
  60. return smalltalk.withContext(function($ctx1) { var $1;
  61. $1=_st(_st(_st(self)._manager())._activeTab()).__eq(self);
  62. return $1;
  63. }, function($ctx1) {$ctx1.fill(self,"isActive",{}, smalltalk.HLTab)})},
  64. messageSends: ["=", "activeTab", "manager"]}),
  65. smalltalk.HLTab);
  66. smalltalk.addMethod(
  67. "_label",
  68. smalltalk.method({
  69. selector: "label",
  70. fn: function (){
  71. var self=this;
  72. return smalltalk.withContext(function($ctx1) { var $2,$1;
  73. $2=self["@label"];
  74. if(($receiver = $2) == nil || $receiver == undefined){
  75. $1="";
  76. } else {
  77. $1=$2;
  78. };
  79. return $1;
  80. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLTab)})},
  81. messageSends: ["ifNil:"]}),
  82. smalltalk.HLTab);
  83. smalltalk.addMethod(
  84. "_label_",
  85. smalltalk.method({
  86. selector: "label:",
  87. fn: function (aString){
  88. var self=this;
  89. return smalltalk.withContext(function($ctx1) { self["@label"]=aString;
  90. return self}, function($ctx1) {$ctx1.fill(self,"label:",{aString:aString}, smalltalk.HLTab)})},
  91. messageSends: []}),
  92. smalltalk.HLTab);
  93. smalltalk.addMethod(
  94. "_manager",
  95. smalltalk.method({
  96. selector: "manager",
  97. fn: function (){
  98. var self=this;
  99. return smalltalk.withContext(function($ctx1) { var $1;
  100. $1=_st((smalltalk.HLManager || HLManager))._current();
  101. return $1;
  102. }, function($ctx1) {$ctx1.fill(self,"manager",{}, smalltalk.HLTab)})},
  103. messageSends: ["current"]}),
  104. smalltalk.HLTab);
  105. smalltalk.addMethod(
  106. "_widget",
  107. smalltalk.method({
  108. selector: "widget",
  109. fn: function (){
  110. var self=this;
  111. return smalltalk.withContext(function($ctx1) { var $1;
  112. $1=self["@widget"];
  113. return $1;
  114. }, function($ctx1) {$ctx1.fill(self,"widget",{}, smalltalk.HLTab)})},
  115. messageSends: []}),
  116. smalltalk.HLTab);
  117. smalltalk.addMethod(
  118. "_widget_",
  119. smalltalk.method({
  120. selector: "widget:",
  121. fn: function (aWidget){
  122. var self=this;
  123. return smalltalk.withContext(function($ctx1) { self["@widget"]=aWidget;
  124. return self}, function($ctx1) {$ctx1.fill(self,"widget:",{aWidget:aWidget}, smalltalk.HLTab)})},
  125. messageSends: []}),
  126. smalltalk.HLTab);
  127. smalltalk.addMethod(
  128. "_on_labelled_",
  129. smalltalk.method({
  130. selector: "on:labelled:",
  131. fn: function (aWidget,aString){
  132. var self=this;
  133. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  134. $2=_st(self)._new();
  135. _st($2)._widget_(aWidget);
  136. _st($2)._label_(aString);
  137. $3=_st($2)._yourself();
  138. $1=$3;
  139. return $1;
  140. }, function($ctx1) {$ctx1.fill(self,"on:labelled:",{aWidget:aWidget,aString:aString}, smalltalk.HLTab.klass)})},
  141. messageSends: ["widget:", "new", "label:", "yourself"]}),
  142. smalltalk.HLTab.klass);
  143. smalltalk.addClass('HLWidget', smalltalk.Widget, ['wrapper'], 'Helios-Core');
  144. smalltalk.addMethod(
  145. "_alert_",
  146. smalltalk.method({
  147. selector: "alert:",
  148. fn: function (aString){
  149. var self=this;
  150. return smalltalk.withContext(function($ctx1) { _st(window)._alert_(aString);
  151. return self}, function($ctx1) {$ctx1.fill(self,"alert:",{aString:aString}, smalltalk.HLWidget)})},
  152. messageSends: ["alert:"]}),
  153. smalltalk.HLWidget);
  154. smalltalk.addMethod(
  155. "_canHaveFocus",
  156. smalltalk.method({
  157. selector: "canHaveFocus",
  158. fn: function (){
  159. var self=this;
  160. return smalltalk.withContext(function($ctx1) { return false;
  161. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLWidget)})},
  162. messageSends: []}),
  163. smalltalk.HLWidget);
  164. smalltalk.addMethod(
  165. "_confirm_",
  166. smalltalk.method({
  167. selector: "confirm:",
  168. fn: function (aString){
  169. var self=this;
  170. return smalltalk.withContext(function($ctx1) { var $1;
  171. $1=_st(window)._confirm_(aString);
  172. return $1;
  173. }, function($ctx1) {$ctx1.fill(self,"confirm:",{aString:aString}, smalltalk.HLWidget)})},
  174. messageSends: ["confirm:"]}),
  175. smalltalk.HLWidget);
  176. smalltalk.addMethod(
  177. "_manager",
  178. smalltalk.method({
  179. selector: "manager",
  180. fn: function (){
  181. var self=this;
  182. return smalltalk.withContext(function($ctx1) { var $1;
  183. $1=_st((smalltalk.HLManager || HLManager))._current();
  184. return $1;
  185. }, function($ctx1) {$ctx1.fill(self,"manager",{}, smalltalk.HLWidget)})},
  186. messageSends: ["current"]}),
  187. smalltalk.HLWidget);
  188. smalltalk.addMethod(
  189. "_refresh",
  190. smalltalk.method({
  191. selector: "refresh",
  192. fn: function (){
  193. var self=this;
  194. return smalltalk.withContext(function($ctx1) { var $1,$2;
  195. $1=_st(self)._wrapper();
  196. if(($receiver = $1) == nil || $receiver == undefined){
  197. $2=self;
  198. return $2;
  199. } else {
  200. $1;
  201. };
  202. _st(_st(_st(self)._wrapper())._asJQuery())._empty();
  203. _st((function(html){
  204. return smalltalk.withContext(function($ctx2) { return _st(self)._renderContentOn_(html);
  205. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1)})}))._appendToJQuery_(_st(_st(self)._wrapper())._asJQuery());
  206. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{}, smalltalk.HLWidget)})},
  207. messageSends: ["ifNil:", "wrapper", "empty", "asJQuery", "appendToJQuery:", "renderContentOn:"]}),
  208. smalltalk.HLWidget);
  209. smalltalk.addMethod(
  210. "_registerBindings",
  211. smalltalk.method({
  212. selector: "registerBindings",
  213. fn: function (){
  214. var self=this;
  215. return smalltalk.withContext(function($ctx1) { _st(self)._registerBindingsOn_(_st(_st(_st(self)._manager())._keyBinder())._bindings());
  216. return self}, function($ctx1) {$ctx1.fill(self,"registerBindings",{}, smalltalk.HLWidget)})},
  217. messageSends: ["registerBindingsOn:", "bindings", "keyBinder", "manager"]}),
  218. smalltalk.HLWidget);
  219. smalltalk.addMethod(
  220. "_registerBindingsOn_",
  221. smalltalk.method({
  222. selector: "registerBindingsOn:",
  223. fn: function (aBindingGroup){
  224. var self=this;
  225. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"registerBindingsOn:",{aBindingGroup:aBindingGroup}, smalltalk.HLWidget)})},
  226. messageSends: []}),
  227. smalltalk.HLWidget);
  228. smalltalk.addMethod(
  229. "_renderContentOn_",
  230. smalltalk.method({
  231. selector: "renderContentOn:",
  232. fn: function (html){
  233. var self=this;
  234. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLWidget)})},
  235. messageSends: []}),
  236. smalltalk.HLWidget);
  237. smalltalk.addMethod(
  238. "_renderOn_",
  239. smalltalk.method({
  240. selector: "renderOn:",
  241. fn: function (html){
  242. var self=this;
  243. return smalltalk.withContext(function($ctx1) { _st(self)._registerBindings();
  244. self["@wrapper"]=_st(html)._div();
  245. _st((function(renderer){
  246. return smalltalk.withContext(function($ctx2) { return _st(self)._renderContentOn_(renderer);
  247. }, function($ctx2) {$ctx2.fillBlock({renderer:renderer},$ctx1)})}))._appendToJQuery_(_st(self["@wrapper"])._asJQuery());
  248. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html}, smalltalk.HLWidget)})},
  249. messageSends: ["registerBindings", "div", "appendToJQuery:", "asJQuery", "renderContentOn:"]}),
  250. smalltalk.HLWidget);
  251. smalltalk.addMethod(
  252. "_wrapper",
  253. smalltalk.method({
  254. selector: "wrapper",
  255. fn: function (){
  256. var self=this;
  257. return smalltalk.withContext(function($ctx1) { var $1;
  258. $1=self["@wrapper"];
  259. return $1;
  260. }, function($ctx1) {$ctx1.fill(self,"wrapper",{}, smalltalk.HLWidget)})},
  261. messageSends: []}),
  262. smalltalk.HLWidget);
  263. smalltalk.addMethod(
  264. "_canBeOpenAsTab",
  265. smalltalk.method({
  266. selector: "canBeOpenAsTab",
  267. fn: function (){
  268. var self=this;
  269. return smalltalk.withContext(function($ctx1) { return false;
  270. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{}, smalltalk.HLWidget.klass)})},
  271. messageSends: []}),
  272. smalltalk.HLWidget.klass);
  273. smalltalk.addMethod(
  274. "_openAsTab",
  275. smalltalk.method({
  276. selector: "openAsTab",
  277. fn: function (){
  278. var self=this;
  279. return smalltalk.withContext(function($ctx1) { var $1,$2;
  280. $1=_st(self)._canBeOpenAsTab();
  281. if(! smalltalk.assert($1)){
  282. $2=self;
  283. return $2;
  284. };
  285. _st(_st((smalltalk.HLManager || HLManager))._current())._addTab_(_st((smalltalk.HLTab || HLTab))._on_labelled_(_st(self)._new(),_st(self)._tabLabel()));
  286. return self}, function($ctx1) {$ctx1.fill(self,"openAsTab",{}, smalltalk.HLWidget.klass)})},
  287. messageSends: ["ifFalse:", "canBeOpenAsTab", "addTab:", "on:labelled:", "new", "tabLabel", "current"]}),
  288. smalltalk.HLWidget.klass);
  289. smalltalk.addMethod(
  290. "_tabLabel",
  291. smalltalk.method({
  292. selector: "tabLabel",
  293. fn: function (){
  294. var self=this;
  295. return smalltalk.withContext(function($ctx1) { return "Tab";
  296. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{}, smalltalk.HLWidget.klass)})},
  297. messageSends: []}),
  298. smalltalk.HLWidget.klass);
  299. smalltalk.addMethod(
  300. "_tabPriority",
  301. smalltalk.method({
  302. selector: "tabPriority",
  303. fn: function (){
  304. var self=this;
  305. return smalltalk.withContext(function($ctx1) { return (500);
  306. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{}, smalltalk.HLWidget.klass)})},
  307. messageSends: []}),
  308. smalltalk.HLWidget.klass);
  309. smalltalk.addClass('HLDebugger', smalltalk.HLWidget, [], 'Helios-Core');
  310. smalltalk.addClass('HLFocusableWidget', smalltalk.HLWidget, ['hiddenInput'], 'Helios-Core');
  311. smalltalk.addMethod(
  312. "_blur",
  313. smalltalk.method({
  314. selector: "blur",
  315. fn: function (){
  316. var self=this;
  317. return smalltalk.withContext(function($ctx1) { _st(_st(self["@hiddenInput"])._asJQuery())._blur();
  318. return self}, function($ctx1) {$ctx1.fill(self,"blur",{}, smalltalk.HLFocusableWidget)})},
  319. messageSends: ["blur", "asJQuery"]}),
  320. smalltalk.HLFocusableWidget);
  321. smalltalk.addMethod(
  322. "_canHaveFocus",
  323. smalltalk.method({
  324. selector: "canHaveFocus",
  325. fn: function (){
  326. var self=this;
  327. return smalltalk.withContext(function($ctx1) { return true;
  328. }, function($ctx1) {$ctx1.fill(self,"canHaveFocus",{},smalltalk.HLFocusableWidget)})},
  329. messageSends: []}),
  330. smalltalk.HLFocusableWidget);
  331. smalltalk.addMethod(
  332. "_focus",
  333. smalltalk.method({
  334. selector: "focus",
  335. fn: function (){
  336. var self=this;
  337. return smalltalk.withContext(function($ctx1) { _st(_st(self["@hiddenInput"])._asJQuery())._focus();
  338. return self}, function($ctx1) {$ctx1.fill(self,"focus",{}, smalltalk.HLFocusableWidget)})},
  339. messageSends: ["focus", "asJQuery"]}),
  340. smalltalk.HLFocusableWidget);
  341. smalltalk.addMethod(
  342. "_focusClass",
  343. smalltalk.method({
  344. selector: "focusClass",
  345. fn: function (){
  346. var self=this;
  347. return smalltalk.withContext(function($ctx1) { return "focused";
  348. }, function($ctx1) {$ctx1.fill(self,"focusClass",{}, smalltalk.HLFocusableWidget)})},
  349. messageSends: []}),
  350. smalltalk.HLFocusableWidget);
  351. smalltalk.addMethod(
  352. "_hasFocus",
  353. smalltalk.method({
  354. selector: "hasFocus",
  355. fn: function (){
  356. var self=this;
  357. return smalltalk.withContext(function($ctx1) { var $1;
  358. $1=_st(_st(_st(self)._wrapper())._notNil())._and_((function(){
  359. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(self)._wrapper())._asJQuery())._hasClass_(_st(self)._focusClass());
  360. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  361. return $1;
  362. }, function($ctx1) {$ctx1.fill(self,"hasFocus",{}, smalltalk.HLFocusableWidget)})},
  363. messageSends: ["and:", "hasClass:", "focusClass", "asJQuery", "wrapper", "notNil"]}),
  364. smalltalk.HLFocusableWidget);
  365. smalltalk.addMethod(
  366. "_renderContentOn_",
  367. smalltalk.method({
  368. selector: "renderContentOn:",
  369. fn: function (html){
  370. var self=this;
  371. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLFocusableWidget)})},
  372. messageSends: []}),
  373. smalltalk.HLFocusableWidget);
  374. smalltalk.addMethod(
  375. "_renderHiddenInputOn_",
  376. smalltalk.method({
  377. selector: "renderHiddenInputOn:",
  378. fn: function (html){
  379. var self=this;
  380. return smalltalk.withContext(function($ctx1) { var $1,$2;
  381. $1=_st(html)._input();
  382. _st($1)._style_("position: absolute; left: -100000px;");
  383. _st($1)._onBlur_((function(){
  384. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(self)._wrapper())._asJQuery())._removeClass_(_st(self)._focusClass());
  385. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  386. $2=_st($1)._onFocus_((function(){
  387. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(self)._wrapper())._asJQuery())._addClass_(_st(self)._focusClass());
  388. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  389. self["@hiddenInput"]=$2;
  390. return self}, function($ctx1) {$ctx1.fill(self,"renderHiddenInputOn:",{html:html}, smalltalk.HLFocusableWidget)})},
  391. messageSends: ["style:", "input", "onBlur:", "removeClass:", "focusClass", "asJQuery", "wrapper", "onFocus:", "addClass:"]}),
  392. smalltalk.HLFocusableWidget);
  393. smalltalk.addMethod(
  394. "_renderOn_",
  395. smalltalk.method({
  396. selector: "renderOn:",
  397. fn: function (html){
  398. var self=this;
  399. return smalltalk.withContext(function($ctx1) { var $1,$2;
  400. _st(self)._registerBindings();
  401. _st(self)._renderHiddenInputOn_(html);
  402. $1=_st(html)._div();
  403. _st($1)._class_("hl_widget");
  404. _st($1)._onClick_((function(){
  405. return smalltalk.withContext(function($ctx2) { return _st(_st(self["@hiddenInput"])._asJQuery())._focus();
  406. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  407. $2=_st($1)._with_((function(){
  408. return smalltalk.withContext(function($ctx2) { return _st(self)._renderContentOn_(html);
  409. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  410. self["@wrapper"]=$2;
  411. return self}, function($ctx1) {$ctx1.fill(self,"renderOn:",{html:html}, smalltalk.HLFocusableWidget)})},
  412. messageSends: ["registerBindings", "renderHiddenInputOn:", "class:", "div", "onClick:", "focus", "asJQuery", "with:", "renderContentOn:"]}),
  413. smalltalk.HLFocusableWidget);
  414. smalltalk.addClass('HLListWidget', smalltalk.HLFocusableWidget, ['items', 'selectedItem', 'mapping'], 'Helios-Core');
  415. smalltalk.addMethod(
  416. "_activateFirstListItem",
  417. smalltalk.method({
  418. selector: "activateFirstListItem",
  419. fn: function (){
  420. var self=this;
  421. return smalltalk.withContext(function($ctx1) { _st(self)._activateListItem_(_st(window)._jQuery_(_st(_st(_st(self["@wrapper"])._asJQuery())._find_("li"))._get_((0))));
  422. return self}, function($ctx1) {$ctx1.fill(self,"activateFirstListItem",{}, smalltalk.HLListWidget)})},
  423. messageSends: ["activateListItem:", "jQuery:", "get:", "find:", "asJQuery"]}),
  424. smalltalk.HLListWidget);
  425. smalltalk.addMethod(
  426. "_activateItem_",
  427. smalltalk.method({
  428. selector: "activateItem:",
  429. fn: function (anObject){
  430. var self=this;
  431. return smalltalk.withContext(function($ctx1) { var $1;
  432. var $early={};
  433. try {
  434. _st(self)._activateListItem_(_st(_st(self["@mapping"])._at_ifAbsent_(anObject,(function(){
  435. return smalltalk.withContext(function($ctx2) { $1=self;
  436. throw $early=[$1];
  437. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})))._asJQuery());
  438. return self}
  439. catch(e) {if(e===$early)return e[0]; throw e}
  440. }, function($ctx1) {$ctx1.fill(self,"activateItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  441. messageSends: ["activateListItem:", "asJQuery", "at:ifAbsent:"]}),
  442. smalltalk.HLListWidget);
  443. smalltalk.addMethod(
  444. "_activateListItem_",
  445. smalltalk.method({
  446. selector: "activateListItem:",
  447. fn: function (aListItem){
  448. var self=this;
  449. var parent,position;
  450. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  451. $1=_st(aListItem)._get_((0));
  452. if(($receiver = $1) == nil || $receiver == undefined){
  453. $2=self;
  454. return $2;
  455. } else {
  456. $1;
  457. };
  458. position=_st(self)._positionOf_(aListItem);
  459. parent=_st(aListItem)._parent();
  460. _st(_st(parent)._children())._removeClass_("active");
  461. _st(aListItem)._addClass_("active");
  462. $3=_st(_st(_st(aListItem)._position())._top()).__lt((0));
  463. if(smalltalk.assert($3)){
  464. _st(_st(parent)._get_((0)))._scrollTop_(_st(_st(_st(_st(parent)._get_((0)))._scrollTop()).__plus(_st(_st(aListItem)._position())._top())).__minus((10)));
  465. };
  466. $4=_st(_st(_st(_st(aListItem)._position())._top()).__plus(_st(aListItem)._height())).__gt(_st(parent)._height());
  467. if(smalltalk.assert($4)){
  468. _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)));
  469. };
  470. _st(self)._selectItem_(_st(_st(self)._items())._at_(_st(_st(aListItem)._attr_("list-data"))._asNumber()));
  471. return self}, function($ctx1) {$ctx1.fill(self,"activateListItem:",{aListItem:aListItem,parent:parent,position:position}, smalltalk.HLListWidget)})},
  472. messageSends: ["ifNil:", "get:", "positionOf:", "parent", "removeClass:", "children", "addClass:", "ifTrue:", "scrollTop:", "-", "+", "top", "position", "scrollTop", "<", "height", ">", "selectItem:", "at:", "asNumber", "attr:", "items"]}),
  473. smalltalk.HLListWidget);
  474. smalltalk.addMethod(
  475. "_cssClassForItem_",
  476. smalltalk.method({
  477. selector: "cssClassForItem:",
  478. fn: function (anObject){
  479. var self=this;
  480. return smalltalk.withContext(function($ctx1) { var $2,$1;
  481. $2=_st(_st(self)._selectedItem()).__eq(anObject);
  482. if(smalltalk.assert($2)){
  483. $1="active";
  484. } else {
  485. $1="inactive";
  486. };
  487. return $1;
  488. }, function($ctx1) {$ctx1.fill(self,"cssClassForItem:",{anObject:anObject}, smalltalk.HLListWidget)})},
  489. messageSends: ["ifTrue:ifFalse:", "=", "selectedItem"]}),
  490. smalltalk.HLListWidget);
  491. smalltalk.addMethod(
  492. "_defaultItems",
  493. smalltalk.method({
  494. selector: "defaultItems",
  495. fn: function (){
  496. var self=this;
  497. return smalltalk.withContext(function($ctx1) { return [];
  498. }, function($ctx1) {$ctx1.fill(self,"defaultItems",{}, smalltalk.HLListWidget)})},
  499. messageSends: []}),
  500. smalltalk.HLListWidget);
  501. smalltalk.addMethod(
  502. "_focus",
  503. smalltalk.method({
  504. selector: "focus",
  505. fn: function (){
  506. var self=this;
  507. return smalltalk.withContext(function($ctx1) { var $1,$2;
  508. smalltalk.HLFocusableWidget.fn.prototype._focus.apply(_st(self), []);
  509. $1=_st(_st(self)._items())._isEmpty();
  510. if(! smalltalk.assert($1)){
  511. $2=_st(self)._selectedItem();
  512. if(($receiver = $2) == nil || $receiver == undefined){
  513. _st(self)._activateFirstListItem();
  514. } else {
  515. $2;
  516. };
  517. };
  518. return self}, function($ctx1) {$ctx1.fill(self,"focus",{}, smalltalk.HLListWidget)})},
  519. messageSends: ["focus", "ifFalse:", "ifNil:", "activateFirstListItem", "selectedItem", "isEmpty", "items"]}),
  520. smalltalk.HLListWidget);
  521. smalltalk.addMethod(
  522. "_iconForItem_",
  523. smalltalk.method({
  524. selector: "iconForItem:",
  525. fn: function (anObject){
  526. var self=this;
  527. return smalltalk.withContext(function($ctx1) { return "";
  528. }, function($ctx1) {$ctx1.fill(self,"iconForItem:",{anObject:anObject}, smalltalk.HLListWidget)})},
  529. messageSends: []}),
  530. smalltalk.HLListWidget);
  531. smalltalk.addMethod(
  532. "_initialize",
  533. smalltalk.method({
  534. selector: "initialize",
  535. fn: function (){
  536. var self=this;
  537. return smalltalk.withContext(function($ctx1) { smalltalk.HLFocusableWidget.fn.prototype._initialize.apply(_st(self), []);
  538. self["@mapping"]=_st((smalltalk.Dictionary || Dictionary))._new();
  539. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.HLListWidget)})},
  540. messageSends: ["initialize", "new"]}),
  541. smalltalk.HLListWidget);
  542. smalltalk.addMethod(
  543. "_items",
  544. smalltalk.method({
  545. selector: "items",
  546. fn: function (){
  547. var self=this;
  548. return smalltalk.withContext(function($ctx1) { var $2,$1;
  549. $2=self["@items"];
  550. if(($receiver = $2) == nil || $receiver == undefined){
  551. self["@items"]=_st(self)._defaultItems();
  552. $1=self["@items"];
  553. } else {
  554. $1=$2;
  555. };
  556. return $1;
  557. }, function($ctx1) {$ctx1.fill(self,"items",{}, smalltalk.HLListWidget)})},
  558. messageSends: ["ifNil:", "defaultItems"]}),
  559. smalltalk.HLListWidget);
  560. smalltalk.addMethod(
  561. "_items_",
  562. smalltalk.method({
  563. selector: "items:",
  564. fn: function (aCollection){
  565. var self=this;
  566. return smalltalk.withContext(function($ctx1) { self["@items"]=aCollection;
  567. return self}, function($ctx1) {$ctx1.fill(self,"items:",{aCollection:aCollection}, smalltalk.HLListWidget)})},
  568. messageSends: []}),
  569. smalltalk.HLListWidget);
  570. smalltalk.addMethod(
  571. "_positionOf_",
  572. smalltalk.method({
  573. selector: "positionOf:",
  574. fn: function (aListItem){
  575. var self=this;
  576. return smalltalk.withContext(function($ctx1) {
  577. return aListItem.parent().children().get().indexOf(aListItem.get(0)) + 1
  578. ;
  579. return self}, function($ctx1) {$ctx1.fill(self,"positionOf:",{aListItem:aListItem}, smalltalk.HLListWidget)})},
  580. messageSends: []}),
  581. smalltalk.HLListWidget);
  582. smalltalk.addMethod(
  583. "_registerMappingFrom_to_",
  584. smalltalk.method({
  585. selector: "registerMappingFrom:to:",
  586. fn: function (anObject,aTag){
  587. var self=this;
  588. return smalltalk.withContext(function($ctx1) { _st(self["@mapping"])._at_put_(anObject,aTag);
  589. return self}, function($ctx1) {$ctx1.fill(self,"registerMappingFrom:to:",{anObject:anObject,aTag:aTag},smalltalk.HLListWidget)})},
  590. messageSends: ["at:put:"]}),
  591. smalltalk.HLListWidget);
  592. smalltalk.addMethod(
  593. "_renderButtonsOn_",
  594. smalltalk.method({
  595. selector: "renderButtonsOn:",
  596. fn: function (html){
  597. var self=this;
  598. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html}, smalltalk.HLListWidget)})},
  599. messageSends: []}),
  600. smalltalk.HLListWidget);
  601. smalltalk.addMethod(
  602. "_renderContentOn_",
  603. smalltalk.method({
  604. selector: "renderContentOn:",
  605. fn: function (html){
  606. var self=this;
  607. return smalltalk.withContext(function($ctx1) { var $1,$2,$3,$4;
  608. $1=_st(html)._ul();
  609. _st($1)._class_("nav nav-pills nav-stacked");
  610. $2=_st($1)._with_((function(){
  611. return smalltalk.withContext(function($ctx2) { return _st(self)._renderListOn_(html);
  612. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  613. $3=_st(html)._div();
  614. _st($3)._class_("pane_actions form-actions");
  615. $4=_st($3)._with_((function(){
  616. return smalltalk.withContext(function($ctx2) { return _st(self)._renderButtonsOn_(html);
  617. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  618. _st(self)._setupKeyBindings();
  619. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLListWidget)})},
  620. messageSends: ["class:", "ul", "with:", "renderListOn:", "div", "renderButtonsOn:", "setupKeyBindings"]}),
  621. smalltalk.HLListWidget);
  622. smalltalk.addMethod(
  623. "_renderItem_on_",
  624. smalltalk.method({
  625. selector: "renderItem:on:",
  626. fn: function (anObject,html){
  627. var self=this;
  628. var li;
  629. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$2;
  630. li=_st(html)._li();
  631. _st(self)._registerMappingFrom_to_(anObject,li);
  632. $1=li;
  633. _st($1)._class_(_st(self)._cssClassForItem_(anObject));
  634. _st($1)._at_put_("list-data",_st(_st(_st(self)._items())._indexOf_(anObject))._asString());
  635. $2=_st($1)._with_((function(){
  636. return smalltalk.withContext(function($ctx2) { $3=_st(html)._a();
  637. _st($3)._with_((function(){
  638. return smalltalk.withContext(function($ctx3) { _st(_st(html)._tag_("i"))._class_(_st(self)._iconForItem_(anObject));
  639. return _st(self)._renderItemLabel_on_(anObject,html);
  640. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  641. $4=_st($3)._onClick_((function(){
  642. return smalltalk.withContext(function($ctx3) { return _st(self)._activateListItem_(_st(li)._asJQuery());
  643. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  644. return $4;
  645. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  646. return self}, function($ctx1) {$ctx1.fill(self,"renderItem:on:",{anObject:anObject,html:html,li:li},smalltalk.HLListWidget)})},
  647. messageSends: ["li", "registerMappingFrom:to:", "class:", "cssClassForItem:", "at:put:", "asString", "indexOf:", "items", "with:", "iconForItem:", "tag:", "renderItemLabel:on:", "a", "onClick:", "activateListItem:", "asJQuery"]}),
  648. smalltalk.HLListWidget);
  649. smalltalk.addMethod(
  650. "_renderItemLabel_on_",
  651. smalltalk.method({
  652. selector: "renderItemLabel:on:",
  653. fn: function (anObject,html){
  654. var self=this;
  655. return smalltalk.withContext(function($ctx1) { _st(html)._with_(_st(anObject)._asString());
  656. return self}, function($ctx1) {$ctx1.fill(self,"renderItemLabel:on:",{anObject:anObject,html:html}, smalltalk.HLListWidget)})},
  657. messageSends: ["with:", "asString"]}),
  658. smalltalk.HLListWidget);
  659. smalltalk.addMethod(
  660. "_renderListOn_",
  661. smalltalk.method({
  662. selector: "renderListOn:",
  663. fn: function (html){
  664. var self=this;
  665. return smalltalk.withContext(function($ctx1) { self["@mapping"]=_st((smalltalk.Dictionary || Dictionary))._new();
  666. _st(_st(self)._items())._do_((function(each){
  667. return smalltalk.withContext(function($ctx2) { return _st(self)._renderItem_on_(each,html);
  668. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  669. return self}, function($ctx1) {$ctx1.fill(self,"renderListOn:",{html:html},smalltalk.HLListWidget)})},
  670. messageSends: ["new", "do:", "renderItem:on:", "items"]}),
  671. smalltalk.HLListWidget);
  672. smalltalk.addMethod(
  673. "_selectItem_",
  674. smalltalk.method({
  675. selector: "selectItem:",
  676. fn: function (anObject){
  677. var self=this;
  678. return smalltalk.withContext(function($ctx1) { _st(self)._selectedItem_(anObject);
  679. return self}, function($ctx1) {$ctx1.fill(self,"selectItem:",{anObject:anObject}, smalltalk.HLListWidget)})},
  680. messageSends: ["selectedItem:"]}),
  681. smalltalk.HLListWidget);
  682. smalltalk.addMethod(
  683. "_selectListItem_",
  684. smalltalk.method({
  685. selector: "selectListItem:",
  686. fn: function (anObject){
  687. var self=this;
  688. return smalltalk.withContext(function($ctx1) { var $1;
  689. var $early={};
  690. try {
  691. _st(self)._selectListItem_(_st(_st(self["@mapping"])._at_ifAbsent_(anObject,(function(){
  692. return smalltalk.withContext(function($ctx2) { $1=self;
  693. throw $early=[$1];
  694. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})})))._asJQuery());
  695. return self}
  696. catch(e) {if(e===$early)return e[0]; throw e}
  697. }, function($ctx1) {$ctx1.fill(self,"selectListItem:",{anObject:anObject},smalltalk.HLListWidget)})},
  698. messageSends: ["selectListItem:", "asJQuery", "at:ifAbsent:"]}),
  699. smalltalk.HLListWidget);
  700. smalltalk.addMethod(
  701. "_selectedItem",
  702. smalltalk.method({
  703. selector: "selectedItem",
  704. fn: function (){
  705. var self=this;
  706. return smalltalk.withContext(function($ctx1) { var $1;
  707. $1=self["@selectedItem"];
  708. return $1;
  709. }, function($ctx1) {$ctx1.fill(self,"selectedItem",{}, smalltalk.HLListWidget)})},
  710. messageSends: []}),
  711. smalltalk.HLListWidget);
  712. smalltalk.addMethod(
  713. "_selectedItem_",
  714. smalltalk.method({
  715. selector: "selectedItem:",
  716. fn: function (anObject){
  717. var self=this;
  718. return smalltalk.withContext(function($ctx1) { self["@selectedItem"]=anObject;
  719. return self}, function($ctx1) {$ctx1.fill(self,"selectedItem:",{anObject:anObject}, smalltalk.HLListWidget)})},
  720. messageSends: []}),
  721. smalltalk.HLListWidget);
  722. smalltalk.addMethod(
  723. "_setupKeyBindings",
  724. smalltalk.method({
  725. selector: "setupKeyBindings",
  726. fn: function (){
  727. var self=this;
  728. var next;
  729. return smalltalk.withContext(function($ctx1) { var $1,$2,$3;
  730. _st(_st(self["@hiddenInput"])._asJQuery())._unbind_("keydown");
  731. _st(_st(self["@hiddenInput"])._asJQuery())._keydown_((function(e){
  732. var selected;
  733. return smalltalk.withContext(function($ctx2) { selected=_st(window)._jQuery_(".focused .nav-pills .active");
  734. selected;
  735. $1=_st(_st(e)._which()).__eq((38));
  736. if(smalltalk.assert($1)){
  737. _st(self)._activateListItem_(_st(selected)._prev());
  738. };
  739. $2=_st(_st(e)._which()).__eq((40));
  740. if(smalltalk.assert($2)){
  741. next=_st(selected)._next();
  742. next;
  743. $3=_st(next)._get_((0));
  744. if(($receiver = $3) == nil || $receiver == undefined){
  745. next=_st(window)._jQuery_(".focused .nav-pills li:first-child");
  746. next;
  747. } else {
  748. $3;
  749. };
  750. return _st(self)._activateListItem_(next);
  751. };
  752. }, function($ctx2) {$ctx2.fillBlock({e:e,selected:selected},$ctx1)})}));
  753. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{next:next}, smalltalk.HLListWidget)})},
  754. messageSends: ["unbind:", "asJQuery", "keydown:", "jQuery:", "ifTrue:", "activateListItem:", "prev", "=", "which", "next", "ifNil:", "get:"]}),
  755. smalltalk.HLListWidget);
  756. smalltalk.addClass('HLNavigationListWidget', smalltalk.HLListWidget, ['previous', 'next'], 'Helios-Core');
  757. smalltalk.addMethod(
  758. "_next",
  759. smalltalk.method({
  760. selector: "next",
  761. fn: function (){
  762. var self=this;
  763. return smalltalk.withContext(function($ctx1) { var $1;
  764. $1=self["@next"];
  765. return $1;
  766. }, function($ctx1) {$ctx1.fill(self,"next",{}, smalltalk.HLNavigationListWidget)})},
  767. messageSends: []}),
  768. smalltalk.HLNavigationListWidget);
  769. smalltalk.addMethod(
  770. "_next_",
  771. smalltalk.method({
  772. selector: "next:",
  773. fn: function (aWidget){
  774. var self=this;
  775. return smalltalk.withContext(function($ctx1) { var $1;
  776. self["@next"]=aWidget;
  777. $1=_st(_st(aWidget)._previous()).__eq(self);
  778. if(! smalltalk.assert($1)){
  779. _st(aWidget)._previous_(self);
  780. };
  781. return self}, function($ctx1) {$ctx1.fill(self,"next:",{aWidget:aWidget}, smalltalk.HLNavigationListWidget)})},
  782. messageSends: ["ifFalse:", "previous:", "=", "previous"]}),
  783. smalltalk.HLNavigationListWidget);
  784. smalltalk.addMethod(
  785. "_nextFocus",
  786. smalltalk.method({
  787. selector: "nextFocus",
  788. fn: function (){
  789. var self=this;
  790. return smalltalk.withContext(function($ctx1) { var $1;
  791. $1=_st(self)._next();
  792. if(($receiver = $1) == nil || $receiver == undefined){
  793. $1;
  794. } else {
  795. _st(_st(self)._next())._focus();
  796. };
  797. return self}, function($ctx1) {$ctx1.fill(self,"nextFocus",{}, smalltalk.HLNavigationListWidget)})},
  798. messageSends: ["ifNotNil:", "focus", "next"]}),
  799. smalltalk.HLNavigationListWidget);
  800. smalltalk.addMethod(
  801. "_previous",
  802. smalltalk.method({
  803. selector: "previous",
  804. fn: function (){
  805. var self=this;
  806. return smalltalk.withContext(function($ctx1) { var $1;
  807. $1=self["@previous"];
  808. return $1;
  809. }, function($ctx1) {$ctx1.fill(self,"previous",{}, smalltalk.HLNavigationListWidget)})},
  810. messageSends: []}),
  811. smalltalk.HLNavigationListWidget);
  812. smalltalk.addMethod(
  813. "_previous_",
  814. smalltalk.method({
  815. selector: "previous:",
  816. fn: function (aWidget){
  817. var self=this;
  818. return smalltalk.withContext(function($ctx1) { var $1;
  819. self["@previous"]=aWidget;
  820. $1=_st(_st(aWidget)._next()).__eq(self);
  821. if(! smalltalk.assert($1)){
  822. _st(aWidget)._next_(self);
  823. };
  824. return self}, function($ctx1) {$ctx1.fill(self,"previous:",{aWidget:aWidget}, smalltalk.HLNavigationListWidget)})},
  825. messageSends: ["ifFalse:", "next:", "=", "next"]}),
  826. smalltalk.HLNavigationListWidget);
  827. smalltalk.addMethod(
  828. "_previousFocus",
  829. smalltalk.method({
  830. selector: "previousFocus",
  831. fn: function (){
  832. var self=this;
  833. return smalltalk.withContext(function($ctx1) { var $1;
  834. $1=_st(self)._previous();
  835. if(($receiver = $1) == nil || $receiver == undefined){
  836. $1;
  837. } else {
  838. _st(_st(self)._previous())._focus();
  839. };
  840. return self}, function($ctx1) {$ctx1.fill(self,"previousFocus",{}, smalltalk.HLNavigationListWidget)})},
  841. messageSends: ["ifNotNil:", "focus", "previous"]}),
  842. smalltalk.HLNavigationListWidget);
  843. smalltalk.addMethod(
  844. "_setupKeyBindings",
  845. smalltalk.method({
  846. selector: "setupKeyBindings",
  847. fn: function (){
  848. var self=this;
  849. return smalltalk.withContext(function($ctx1) { var $1,$2;
  850. smalltalk.HLListWidget.fn.prototype._setupKeyBindings.apply(_st(self), []);
  851. _st(_st(self["@hiddenInput"])._asJQuery())._keydown_((function(e){
  852. return smalltalk.withContext(function($ctx2) { $1=_st(_st(e)._which()).__eq((39));
  853. if(smalltalk.assert($1)){
  854. _st(self)._nextFocus();
  855. };
  856. $2=_st(_st(e)._which()).__eq((37));
  857. if(smalltalk.assert($2)){
  858. return _st(self)._previousFocus();
  859. };
  860. }, function($ctx2) {$ctx2.fillBlock({e:e},$ctx1)})}));
  861. return self}, function($ctx1) {$ctx1.fill(self,"setupKeyBindings",{}, smalltalk.HLNavigationListWidget)})},
  862. messageSends: ["setupKeyBindings", "keydown:", "ifTrue:", "nextFocus", "=", "which", "previousFocus", "asJQuery"]}),
  863. smalltalk.HLNavigationListWidget);
  864. smalltalk.addClass('HLManager', smalltalk.HLWidget, ['tabs', 'activeTab', 'keyBinder', 'environment', 'history'], 'Helios-Core');
  865. smalltalk.addMethod(
  866. "_activate_",
  867. smalltalk.method({
  868. selector: "activate:",
  869. fn: function (aTab){
  870. var self=this;
  871. return smalltalk.withContext(function($ctx1) { var $1,$2;
  872. _st(_st(self)._keyBinder())._flushBindings();
  873. self["@activeTab"]=aTab;
  874. $1=self;
  875. _st($1)._refresh();
  876. _st($1)._addToHistory_(aTab);
  877. $2=_st($1)._show_(aTab);
  878. return self}, function($ctx1) {$ctx1.fill(self,"activate:",{aTab:aTab}, smalltalk.HLManager)})},
  879. messageSends: ["flushBindings", "keyBinder", "refresh", "addToHistory:", "show:"]}),
  880. smalltalk.HLManager);
  881. smalltalk.addMethod(
  882. "_activeTab",
  883. smalltalk.method({
  884. selector: "activeTab",
  885. fn: function (){
  886. var self=this;
  887. return smalltalk.withContext(function($ctx1) { var $1;
  888. $1=self["@activeTab"];
  889. return $1;
  890. }, function($ctx1) {$ctx1.fill(self,"activeTab",{}, smalltalk.HLManager)})},
  891. messageSends: []}),
  892. smalltalk.HLManager);
  893. smalltalk.addMethod(
  894. "_addTab_",
  895. smalltalk.method({
  896. selector: "addTab:",
  897. fn: function (aTab){
  898. var self=this;
  899. return smalltalk.withContext(function($ctx1) { _st(_st(self)._tabs())._add_(aTab);
  900. _st(self)._activate_(aTab);
  901. return self}, function($ctx1) {$ctx1.fill(self,"addTab:",{aTab:aTab}, smalltalk.HLManager)})},
  902. messageSends: ["add:", "tabs", "activate:"]}),
  903. smalltalk.HLManager);
  904. smalltalk.addMethod(
  905. "_addToHistory_",
  906. smalltalk.method({
  907. selector: "addToHistory:",
  908. fn: function (aTab){
  909. var self=this;
  910. return smalltalk.withContext(function($ctx1) { _st(self)._removeFromHistory_(aTab);
  911. _st(_st(self)._history())._add_(aTab);
  912. return self}, function($ctx1) {$ctx1.fill(self,"addToHistory:",{aTab:aTab}, smalltalk.HLManager)})},
  913. messageSends: ["removeFromHistory:", "add:", "history"]}),
  914. smalltalk.HLManager);
  915. smalltalk.addMethod(
  916. "_defaultEnvironment",
  917. smalltalk.method({
  918. selector: "defaultEnvironment",
  919. fn: function (){
  920. var self=this;
  921. return smalltalk.withContext(function($ctx1) { var $1;
  922. $1=_st((smalltalk.HLLocalEnvironment || HLLocalEnvironment))._new();
  923. return $1;
  924. }, function($ctx1) {$ctx1.fill(self,"defaultEnvironment",{}, smalltalk.HLManager)})},
  925. messageSends: ["new"]}),
  926. smalltalk.HLManager);
  927. smalltalk.addMethod(
  928. "_environment",
  929. smalltalk.method({
  930. selector: "environment",
  931. fn: function (){
  932. var self=this;
  933. return smalltalk.withContext(function($ctx1) { var $2,$1;
  934. $2=self["@environment"];
  935. if(($receiver = $2) == nil || $receiver == undefined){
  936. self["@environment"]=_st(self)._defaultEnvironment();
  937. $1=self["@environment"];
  938. } else {
  939. $1=$2;
  940. };
  941. return $1;
  942. }, function($ctx1) {$ctx1.fill(self,"environment",{}, smalltalk.HLManager)})},
  943. messageSends: ["ifNil:", "defaultEnvironment"]}),
  944. smalltalk.HLManager);
  945. smalltalk.addMethod(
  946. "_environment_",
  947. smalltalk.method({
  948. selector: "environment:",
  949. fn: function (anEnvironment){
  950. var self=this;
  951. return smalltalk.withContext(function($ctx1) { self["@environment"]=anEnvironment;
  952. return self}, function($ctx1) {$ctx1.fill(self,"environment:",{anEnvironment:anEnvironment}, smalltalk.HLManager)})},
  953. messageSends: []}),
  954. smalltalk.HLManager);
  955. smalltalk.addMethod(
  956. "_history",
  957. smalltalk.method({
  958. selector: "history",
  959. fn: function (){
  960. var self=this;
  961. return smalltalk.withContext(function($ctx1) { var $2,$1;
  962. $2=self["@history"];
  963. if(($receiver = $2) == nil || $receiver == undefined){
  964. self["@history"]=_st((smalltalk.OrderedCollection || OrderedCollection))._new();
  965. $1=self["@history"];
  966. } else {
  967. $1=$2;
  968. };
  969. return $1;
  970. }, function($ctx1) {$ctx1.fill(self,"history",{}, smalltalk.HLManager)})},
  971. messageSends: ["ifNil:", "new"]}),
  972. smalltalk.HLManager);
  973. smalltalk.addMethod(
  974. "_history_",
  975. smalltalk.method({
  976. selector: "history:",
  977. fn: function (aCollection){
  978. var self=this;
  979. return smalltalk.withContext(function($ctx1) { self["@history"]=aCollection;
  980. return self}, function($ctx1) {$ctx1.fill(self,"history:",{aCollection:aCollection}, smalltalk.HLManager)})},
  981. messageSends: []}),
  982. smalltalk.HLManager);
  983. smalltalk.addMethod(
  984. "_initialize",
  985. smalltalk.method({
  986. selector: "initialize",
  987. fn: function (){
  988. var self=this;
  989. return smalltalk.withContext(function($ctx1) { smalltalk.HLWidget.fn.prototype._initialize.apply(_st(self), []);
  990. _st(_st(self)._keyBinder())._setupEvents();
  991. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLManager)})},
  992. messageSends: ["initialize", "setupEvents", "keyBinder"]}),
  993. smalltalk.HLManager);
  994. smalltalk.addMethod(
  995. "_keyBinder",
  996. smalltalk.method({
  997. selector: "keyBinder",
  998. fn: function (){
  999. var self=this;
  1000. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1001. $2=self["@keyBinder"];
  1002. if(($receiver = $2) == nil || $receiver == undefined){
  1003. self["@keyBinder"]=_st((smalltalk.HLKeyBinder || HLKeyBinder))._new();
  1004. $1=self["@keyBinder"];
  1005. } else {
  1006. $1=$2;
  1007. };
  1008. return $1;
  1009. }, function($ctx1) {$ctx1.fill(self,"keyBinder",{}, smalltalk.HLManager)})},
  1010. messageSends: ["ifNil:", "new"]}),
  1011. smalltalk.HLManager);
  1012. smalltalk.addMethod(
  1013. "_refresh",
  1014. smalltalk.method({
  1015. selector: "refresh",
  1016. fn: function (){
  1017. var self=this;
  1018. return smalltalk.withContext(function($ctx1) { _st(_st(window)._jQuery_(".navbar"))._remove();
  1019. _st(_st(window)._jQuery_("#container"))._remove();
  1020. _st(self)._appendToJQuery_(_st("body")._asJQuery());
  1021. return self}, function($ctx1) {$ctx1.fill(self,"refresh",{}, smalltalk.HLManager)})},
  1022. messageSends: ["remove", "jQuery:", "appendToJQuery:", "asJQuery"]}),
  1023. smalltalk.HLManager);
  1024. smalltalk.addMethod(
  1025. "_removeActiveTab",
  1026. smalltalk.method({
  1027. selector: "removeActiveTab",
  1028. fn: function (){
  1029. var self=this;
  1030. return smalltalk.withContext(function($ctx1) { _st(self)._removeTab_(_st(self)._activeTab());
  1031. return self}, function($ctx1) {$ctx1.fill(self,"removeActiveTab",{}, smalltalk.HLManager)})},
  1032. messageSends: ["removeTab:", "activeTab"]}),
  1033. smalltalk.HLManager);
  1034. smalltalk.addMethod(
  1035. "_removeFromHistory_",
  1036. smalltalk.method({
  1037. selector: "removeFromHistory:",
  1038. fn: function (aTab){
  1039. var self=this;
  1040. return smalltalk.withContext(function($ctx1) { _st(self)._history_(_st(_st(self)._history())._reject_((function(each){
  1041. return smalltalk.withContext(function($ctx2) { return _st(each).__eq_eq(aTab);
  1042. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})})));
  1043. return self}, function($ctx1) {$ctx1.fill(self,"removeFromHistory:",{aTab:aTab}, smalltalk.HLManager)})},
  1044. messageSends: ["history:", "reject:", "==", "history"]}),
  1045. smalltalk.HLManager);
  1046. smalltalk.addMethod(
  1047. "_removeTab_",
  1048. smalltalk.method({
  1049. selector: "removeTab:",
  1050. fn: function (aTab){
  1051. var self=this;
  1052. return smalltalk.withContext(function($ctx1) { var $1,$2;
  1053. $1=_st(_st(self)._tabs())._includes_(aTab);
  1054. if(! smalltalk.assert($1)){
  1055. $2=self;
  1056. return $2;
  1057. };
  1058. _st(self)._removeFromHistory_(aTab);
  1059. _st(_st(self)._tabs())._remove_(aTab);
  1060. _st(_st(self)._keyBinder())._flushBindings();
  1061. _st(self)._refresh();
  1062. _st(_st(self)._history())._ifNotEmpty_((function(){
  1063. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(self)._history())._last())._activate();
  1064. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1065. return self}, function($ctx1) {$ctx1.fill(self,"removeTab:",{aTab:aTab},smalltalk.HLManager)})},
  1066. messageSends: ["ifFalse:", "includes:", "tabs", "removeFromHistory:", "remove:", "flushBindings", "keyBinder", "refresh", "ifNotEmpty:", "activate", "last", "history"]}),
  1067. smalltalk.HLManager);
  1068. smalltalk.addMethod(
  1069. "_renderAddOn_",
  1070. smalltalk.method({
  1071. selector: "renderAddOn:",
  1072. fn: function (html){
  1073. var self=this;
  1074. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$5,$7,$8,$6,$2;
  1075. $1=_st(html)._li();
  1076. _st($1)._class_("dropdown");
  1077. $2=_st($1)._with_((function(){
  1078. return smalltalk.withContext(function($ctx2) { $3=_st(html)._a();
  1079. _st($3)._class_("dropdown-toggle");
  1080. _st($3)._at_put_("data-toggle","dropdown");
  1081. $4=_st($3)._with_((function(){
  1082. return smalltalk.withContext(function($ctx3) { _st(html)._with_("Open...");
  1083. return _st(_st(html)._tag_("b"))._class_("caret");
  1084. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1085. $4;
  1086. $5=_st(html)._ul();
  1087. _st($5)._class_("dropdown-menu");
  1088. $6=_st($5)._with_((function(){
  1089. return smalltalk.withContext(function($ctx3) { return _st(_st(_st(_st((smalltalk.HLWidget || HLWidget))._withAllSubclasses())._select_((function(each){
  1090. return smalltalk.withContext(function($ctx4) { return _st(each)._canBeOpenAsTab();
  1091. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx1)})})))._sorted_((function(a,b){
  1092. return smalltalk.withContext(function($ctx4) { return _st(_st(a)._tabPriority()).__lt(_st(b)._tabPriority());
  1093. }, function($ctx4) {$ctx4.fillBlock({a:a,b:b},$ctx1)})})))._do_((function(each){
  1094. return smalltalk.withContext(function($ctx4) { return _st(_st(html)._li())._with_((function(){
  1095. return smalltalk.withContext(function($ctx5) { $7=_st(html)._a();
  1096. _st($7)._with_(_st(each)._tabLabel());
  1097. $8=_st($7)._onClick_((function(){
  1098. return smalltalk.withContext(function($ctx6) { return _st(each)._openAsTab();
  1099. }, function($ctx6) {$ctx6.fillBlock({},$ctx1)})}));
  1100. return $8;
  1101. }, function($ctx5) {$ctx5.fillBlock({},$ctx1)})}));
  1102. }, function($ctx4) {$ctx4.fillBlock({each:each},$ctx1)})}));
  1103. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1104. return $6;
  1105. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1106. return self}, function($ctx1) {$ctx1.fill(self,"renderAddOn:",{html:html}, smalltalk.HLManager)})},
  1107. messageSends: ["class:", "li", "with:", "a", "at:put:", "tag:", "ul", "do:", "tabLabel", "onClick:", "openAsTab", "sorted:", "<", "tabPriority", "select:", "canBeOpenAsTab", "withAllSubclasses"]}),
  1108. smalltalk.HLManager);
  1109. smalltalk.addMethod(
  1110. "_renderContentOn_",
  1111. smalltalk.method({
  1112. selector: "renderContentOn:",
  1113. fn: function (html){
  1114. var self=this;
  1115. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$2;
  1116. $1=_st(html)._div();
  1117. _st($1)._class_("navbar navbar-fixed-top");
  1118. $2=_st($1)._with_((function(){
  1119. return smalltalk.withContext(function($ctx2) { $3=_st(html)._div();
  1120. _st($3)._class_("navbar-inner");
  1121. $4=_st($3)._with_((function(){
  1122. return smalltalk.withContext(function($ctx3) { return _st(self)._renderTabsOn_(html);
  1123. }, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
  1124. return $4;
  1125. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1126. _st(_st(html)._div())._id_("container");
  1127. return self}, function($ctx1) {$ctx1.fill(self,"renderContentOn:",{html:html}, smalltalk.HLManager)})},
  1128. messageSends: ["class:", "div", "with:", "renderTabsOn:", "id:"]}),
  1129. smalltalk.HLManager);
  1130. smalltalk.addMethod(
  1131. "_renderTabsOn_",
  1132. smalltalk.method({
  1133. selector: "renderTabsOn:",
  1134. fn: function (html){
  1135. var self=this;
  1136. return smalltalk.withContext(function($ctx1) { var $1,$3,$4,$6,$5,$8,$9,$7,$2;
  1137. $1=_st(html)._ul();
  1138. _st($1)._class_("nav");
  1139. $2=_st($1)._with_((function(){
  1140. return smalltalk.withContext(function($ctx2) { _st(_st(self)._tabs())._do_((function(each){
  1141. return smalltalk.withContext(function($ctx3) { $3=_st(html)._li();
  1142. $4=$3;
  1143. $6=_st(each)._isActive();
  1144. if(smalltalk.assert($6)){
  1145. $5="active";
  1146. } else {
  1147. $5="inactive";
  1148. };
  1149. _st($4)._class_($5);
  1150. $7=_st($3)._with_((function(){
  1151. return smalltalk.withContext(function($ctx4) { $8=_st(html)._a();
  1152. _st($8)._with_((function(){
  1153. return smalltalk.withContext(function($ctx5) { _st(_st(_st(html)._tag_("i"))._class_("icon-remove"))._onClick_((function(){
  1154. return smalltalk.withContext(function($ctx6) { return _st(self)._removeTab_(each);
  1155. }, function($ctx6) {$ctx6.fillBlock({},$ctx1)})}));
  1156. return _st(html)._with_(_st(each)._displayLabel());
  1157. }, function($ctx5) {$ctx5.fillBlock({},$ctx1)})}));
  1158. $9=_st($8)._onClick_((function(){
  1159. return smalltalk.withContext(function($ctx5) { return _st(each)._activate();
  1160. }, function($ctx5) {$ctx5.fillBlock({},$ctx1)})}));
  1161. return $9;
  1162. }, function($ctx4) {$ctx4.fillBlock({},$ctx1)})}));
  1163. return $7;
  1164. }, function($ctx3) {$ctx3.fillBlock({each:each},$ctx1)})}));
  1165. return _st(self)._renderAddOn_(html);
  1166. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  1167. return self}, function($ctx1) {$ctx1.fill(self,"renderTabsOn:",{html:html},smalltalk.HLManager)})},
  1168. messageSends: ["class:", "ul", "with:", "do:", "ifTrue:ifFalse:", "isActive", "li", "onClick:", "removeTab:", "tag:", "displayLabel", "a", "activate", "tabs", "renderAddOn:"]}),
  1169. smalltalk.HLManager);
  1170. smalltalk.addMethod(
  1171. "_show_",
  1172. smalltalk.method({
  1173. selector: "show:",
  1174. fn: function (aTab){
  1175. var self=this;
  1176. return smalltalk.withContext(function($ctx1) { _st(_st(window)._jQuery_("#container"))._empty();
  1177. _st(_st(aTab)._widget())._appendToJQuery_(_st("#container")._asJQuery());
  1178. _st(aTab)._focus();
  1179. return self}, function($ctx1) {$ctx1.fill(self,"show:",{aTab:aTab},smalltalk.HLManager)})},
  1180. messageSends: ["empty", "jQuery:", "appendToJQuery:", "asJQuery", "widget", "focus"]}),
  1181. smalltalk.HLManager);
  1182. smalltalk.addMethod(
  1183. "_tabs",
  1184. smalltalk.method({
  1185. selector: "tabs",
  1186. fn: function (){
  1187. var self=this;
  1188. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1189. $2=self["@tabs"];
  1190. if(($receiver = $2) == nil || $receiver == undefined){
  1191. self["@tabs"]=_st((smalltalk.OrderedCollection || OrderedCollection))._new();
  1192. $1=self["@tabs"];
  1193. } else {
  1194. $1=$2;
  1195. };
  1196. return $1;
  1197. }, function($ctx1) {$ctx1.fill(self,"tabs",{}, smalltalk.HLManager)})},
  1198. messageSends: ["ifNil:", "new"]}),
  1199. smalltalk.HLManager);
  1200. smalltalk.HLManager.klass.iVarNames = ['current'];
  1201. smalltalk.addMethod(
  1202. "_current",
  1203. smalltalk.method({
  1204. selector: "current",
  1205. fn: function (){
  1206. var self=this;
  1207. return smalltalk.withContext(function($ctx1) { var $2,$1;
  1208. $2=self["@current"];
  1209. if(($receiver = $2) == nil || $receiver == undefined){
  1210. self["@current"]=_st(_st(self)._basicNew())._initialize();
  1211. $1=self["@current"];
  1212. } else {
  1213. $1=$2;
  1214. };
  1215. return $1;
  1216. }, function($ctx1) {$ctx1.fill(self,"current",{}, smalltalk.HLManager.klass)})},
  1217. messageSends: ["ifNil:", "initialize", "basicNew"]}),
  1218. smalltalk.HLManager.klass);
  1219. smalltalk.addMethod(
  1220. "_initialize",
  1221. smalltalk.method({
  1222. selector: "initialize",
  1223. fn: function (){
  1224. var self=this;
  1225. return smalltalk.withContext(function($ctx1) { _st(_st(self)._current())._appendToJQuery_(_st("body")._asJQuery());
  1226. return self}, function($ctx1) {$ctx1.fill(self,"initialize",{}, smalltalk.HLManager.klass)})},
  1227. messageSends: ["appendToJQuery:", "asJQuery", "current"]}),
  1228. smalltalk.HLManager.klass);
  1229. smalltalk.addMethod(
  1230. "_new",
  1231. smalltalk.method({
  1232. selector: "new",
  1233. fn: function (){
  1234. var self=this;
  1235. return smalltalk.withContext(function($ctx1) { _st(self)._shouldNotImplement();
  1236. return self}, function($ctx1) {$ctx1.fill(self,"new",{}, smalltalk.HLManager.klass)})},
  1237. messageSends: ["shouldNotImplement"]}),
  1238. smalltalk.HLManager.klass);
  1239. smalltalk.addClass('HLSUnit', smalltalk.HLWidget, [], 'Helios-Core');
  1240. smalltalk.addMethod(
  1241. "_canBeOpenAsTab",
  1242. smalltalk.method({
  1243. selector: "canBeOpenAsTab",
  1244. fn: function (){
  1245. var self=this;
  1246. return smalltalk.withContext(function($ctx1) { return true;
  1247. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{}, smalltalk.HLSUnit.klass)})},
  1248. messageSends: []}),
  1249. smalltalk.HLSUnit.klass);
  1250. smalltalk.addMethod(
  1251. "_tabLabel",
  1252. smalltalk.method({
  1253. selector: "tabLabel",
  1254. fn: function (){
  1255. var self=this;
  1256. return smalltalk.withContext(function($ctx1) { return "SUnit";
  1257. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{}, smalltalk.HLSUnit.klass)})},
  1258. messageSends: []}),
  1259. smalltalk.HLSUnit.klass);
  1260. smalltalk.addMethod(
  1261. "_tabPriority",
  1262. smalltalk.method({
  1263. selector: "tabPriority",
  1264. fn: function (){
  1265. var self=this;
  1266. return smalltalk.withContext(function($ctx1) { return (1000);
  1267. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{}, smalltalk.HLSUnit.klass)})},
  1268. messageSends: []}),
  1269. smalltalk.HLSUnit.klass);
  1270. smalltalk.addClass('HLTranscript', smalltalk.HLWidget, [], 'Helios-Core');
  1271. smalltalk.addMethod(
  1272. "_canBeOpenAsTab",
  1273. smalltalk.method({
  1274. selector: "canBeOpenAsTab",
  1275. fn: function (){
  1276. var self=this;
  1277. return smalltalk.withContext(function($ctx1) { return true;
  1278. }, function($ctx1) {$ctx1.fill(self,"canBeOpenAsTab",{}, smalltalk.HLTranscript.klass)})},
  1279. messageSends: []}),
  1280. smalltalk.HLTranscript.klass);
  1281. smalltalk.addMethod(
  1282. "_tabLabel",
  1283. smalltalk.method({
  1284. selector: "tabLabel",
  1285. fn: function (){
  1286. var self=this;
  1287. return smalltalk.withContext(function($ctx1) { return "Transcript";
  1288. }, function($ctx1) {$ctx1.fill(self,"tabLabel",{}, smalltalk.HLTranscript.klass)})},
  1289. messageSends: []}),
  1290. smalltalk.HLTranscript.klass);
  1291. smalltalk.addMethod(
  1292. "_tabPriority",
  1293. smalltalk.method({
  1294. selector: "tabPriority",
  1295. fn: function (){
  1296. var self=this;
  1297. return smalltalk.withContext(function($ctx1) { return (600);
  1298. }, function($ctx1) {$ctx1.fill(self,"tabPriority",{}, smalltalk.HLTranscript.klass)})},
  1299. messageSends: []}),
  1300. smalltalk.HLTranscript.klass);
  1301. smalltalk.addMethod(
  1302. "_ajaxPutAt_data_",
  1303. smalltalk.method({
  1304. selector: "ajaxPutAt:data:",
  1305. fn: function (aURL,aString){
  1306. var self=this;
  1307. return smalltalk.withContext(function($ctx1) { _st(jQuery)._ajax_options_(aURL,smalltalk.HashedCollection._fromPairs_([_st("type").__minus_gt("PUT"),_st("data").__minus_gt(aString),_st("contentType").__minus_gt("text/plain;charset=UTF-8"),_st("error").__minus_gt((function(xhr){
  1308. return smalltalk.withContext(function($ctx2) { return _st(window)._alert_(_st(_st(_st(_st("Commiting ").__comma(aURL)).__comma(" failed with reason: \x22")).__comma(_st(xhr)._responseText())).__comma("\x22"));
  1309. }, function($ctx2) {$ctx2.fillBlock({xhr:xhr},$ctx1)})}))]));
  1310. return self}, function($ctx1) {$ctx1.fill(self,"ajaxPutAt:data:",{aURL:aURL,aString:aString},smalltalk.Package)})},
  1311. messageSends: ["ajax:options:", "->", "alert:", ",", "responseText"]}),
  1312. smalltalk.Package);
  1313. smalltalk.addMethod(
  1314. "_heliosCommit",
  1315. smalltalk.method({
  1316. selector: "heliosCommit",
  1317. fn: function (){
  1318. var self=this;
  1319. return smalltalk.withContext(function($ctx1) { _st([_st((smalltalk.Exporter || Exporter)).__minus_gt(_st(_st(_st(_st(self)._commitPathJs()).__comma("/")).__comma(_st(self)._name())).__comma(".js")),_st((smalltalk.StrippedExporter || StrippedExporter)).__minus_gt(_st(_st(_st(_st(self)._commitPathJs()).__comma("/")).__comma(_st(self)._name())).__comma(".deploy.js")),_st((smalltalk.ChunkExporter || ChunkExporter)).__minus_gt(_st(_st(_st(_st(self)._commitPathSt()).__comma("/")).__comma(_st(self)._name())).__comma(".st"))])._do_((function(commitStrategy){
  1320. var fileContents;
  1321. return smalltalk.withContext(function($ctx2) { fileContents=_st(_st(_st(commitStrategy)._key())._new())._exportPackage_(_st(self)._name());
  1322. fileContents;
  1323. return _st(self)._ajaxPutAt_data_(_st(commitStrategy)._value(),fileContents);
  1324. }, function($ctx2) {$ctx2.fillBlock({commitStrategy:commitStrategy,fileContents:fileContents},$ctx1)})}));
  1325. return self}, function($ctx1) {$ctx1.fill(self,"heliosCommit",{},smalltalk.Package)})},
  1326. messageSends: ["do:", "exportPackage:", "name", "new", "key", "ajaxPutAt:data:", "value", "->", ",", "commitPathJs", "commitPathSt"]}),
  1327. smalltalk.Package);