Helios-Commands-Core.deploy.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  1. smalltalk.addPackage('Helios-Commands-Core');
  2. smalltalk.addClass('HLCommand', smalltalk.Object, ['input'], 'Helios-Commands-Core');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "asActionBinding",
  6. fn: function (){
  7. var self=this;
  8. function $HLBindingAction(){return smalltalk.HLBindingAction||(typeof HLBindingAction=="undefined"?nil:HLBindingAction)}
  9. return smalltalk.withContext(function($ctx1) {
  10. var $2,$3,$1;
  11. $2=_st($HLBindingAction())._on_labelled_(_st(self)._keyCode(),_st(self)._label());
  12. _st($2)._command_(self);
  13. $3=_st($2)._yourself();
  14. $1=$3;
  15. return $1;
  16. }, function($ctx1) {$ctx1.fill(self,"asActionBinding",{},smalltalk.HLCommand)})},
  17. messageSends: ["command:", "on:labelled:", "keyCode", "label", "yourself"]}),
  18. smalltalk.HLCommand);
  19. smalltalk.addMethod(
  20. smalltalk.method({
  21. selector: "asBinding",
  22. fn: function (){
  23. var self=this;
  24. return smalltalk.withContext(function($ctx1) {
  25. var $2,$1;
  26. $2=_st(self)._isBindingGroup();
  27. if(smalltalk.assert($2)){
  28. $1=_st(self)._asGroupBinding();
  29. } else {
  30. $1=_st(self)._asActionBinding();
  31. };
  32. return $1;
  33. }, function($ctx1) {$ctx1.fill(self,"asBinding",{},smalltalk.HLCommand)})},
  34. messageSends: ["ifTrue:ifFalse:", "asGroupBinding", "asActionBinding", "isBindingGroup"]}),
  35. smalltalk.HLCommand);
  36. smalltalk.addMethod(
  37. smalltalk.method({
  38. selector: "asGroupBinding",
  39. fn: function (){
  40. var self=this;
  41. function $HLBindingGroup(){return smalltalk.HLBindingGroup||(typeof HLBindingGroup=="undefined"?nil:HLBindingGroup)}
  42. return smalltalk.withContext(function($ctx1) {
  43. var $1;
  44. $1=_st($HLBindingGroup())._on_labelled_(_st(self)._keyCode(),_st(self)._label());
  45. return $1;
  46. }, function($ctx1) {$ctx1.fill(self,"asGroupBinding",{},smalltalk.HLCommand)})},
  47. messageSends: ["on:labelled:", "keyCode", "label"]}),
  48. smalltalk.HLCommand);
  49. smalltalk.addMethod(
  50. smalltalk.method({
  51. selector: "commandError:",
  52. fn: function (aString){
  53. var self=this;
  54. return smalltalk.withContext(function($ctx1) {
  55. _st(self)._error_(aString);
  56. return self}, function($ctx1) {$ctx1.fill(self,"commandError:",{aString:aString},smalltalk.HLCommand)})},
  57. messageSends: ["error:"]}),
  58. smalltalk.HLCommand);
  59. smalltalk.addMethod(
  60. smalltalk.method({
  61. selector: "documentation",
  62. fn: function (){
  63. var self=this;
  64. return smalltalk.withContext(function($ctx1) {
  65. var $1;
  66. $1=_st(_st(self)._class())._documentation();
  67. return $1;
  68. }, function($ctx1) {$ctx1.fill(self,"documentation",{},smalltalk.HLCommand)})},
  69. messageSends: ["documentation", "class"]}),
  70. smalltalk.HLCommand);
  71. smalltalk.addMethod(
  72. smalltalk.method({
  73. selector: "execute",
  74. fn: function (){
  75. var self=this;
  76. return smalltalk.withContext(function($ctx1) {
  77. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLCommand)})},
  78. messageSends: []}),
  79. smalltalk.HLCommand);
  80. smalltalk.addMethod(
  81. smalltalk.method({
  82. selector: "input",
  83. fn: function (){
  84. var self=this;
  85. return smalltalk.withContext(function($ctx1) {
  86. var $1;
  87. $1=self["@input"];
  88. return $1;
  89. }, function($ctx1) {$ctx1.fill(self,"input",{},smalltalk.HLCommand)})},
  90. messageSends: []}),
  91. smalltalk.HLCommand);
  92. smalltalk.addMethod(
  93. smalltalk.method({
  94. selector: "input:",
  95. fn: function (aString){
  96. var self=this;
  97. return smalltalk.withContext(function($ctx1) {
  98. var $1;
  99. self["@input"]=aString;
  100. $1=self["@input"];
  101. return $1;
  102. }, function($ctx1) {$ctx1.fill(self,"input:",{aString:aString},smalltalk.HLCommand)})},
  103. messageSends: []}),
  104. smalltalk.HLCommand);
  105. smalltalk.addMethod(
  106. smalltalk.method({
  107. selector: "inputCompletion",
  108. fn: function (){
  109. var self=this;
  110. return smalltalk.withContext(function($ctx1) {
  111. var $1;
  112. $1=[];
  113. return $1;
  114. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},smalltalk.HLCommand)})},
  115. messageSends: []}),
  116. smalltalk.HLCommand);
  117. smalltalk.addMethod(
  118. smalltalk.method({
  119. selector: "inputLabel",
  120. fn: function (){
  121. var self=this;
  122. return smalltalk.withContext(function($ctx1) {
  123. var $1;
  124. $1=_st(self)._label();
  125. return $1;
  126. }, function($ctx1) {$ctx1.fill(self,"inputLabel",{},smalltalk.HLCommand)})},
  127. messageSends: ["label"]}),
  128. smalltalk.HLCommand);
  129. smalltalk.addMethod(
  130. smalltalk.method({
  131. selector: "isActive",
  132. fn: function (){
  133. var self=this;
  134. return smalltalk.withContext(function($ctx1) {
  135. return true;
  136. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLCommand)})},
  137. messageSends: []}),
  138. smalltalk.HLCommand);
  139. smalltalk.addMethod(
  140. smalltalk.method({
  141. selector: "isBindingGroup",
  142. fn: function (){
  143. var self=this;
  144. return smalltalk.withContext(function($ctx1) {
  145. var $1;
  146. $1=_st(_st(_st(_st(self)._class())._methodDictionary())._includesKey_("execute"))._not();
  147. return $1;
  148. }, function($ctx1) {$ctx1.fill(self,"isBindingGroup",{},smalltalk.HLCommand)})},
  149. messageSends: ["not", "includesKey:", "methodDictionary", "class"]}),
  150. smalltalk.HLCommand);
  151. smalltalk.addMethod(
  152. smalltalk.method({
  153. selector: "isInputRequired",
  154. fn: function (){
  155. var self=this;
  156. return smalltalk.withContext(function($ctx1) {
  157. return false;
  158. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLCommand)})},
  159. messageSends: []}),
  160. smalltalk.HLCommand);
  161. smalltalk.addMethod(
  162. smalltalk.method({
  163. selector: "key",
  164. fn: function (){
  165. var self=this;
  166. return smalltalk.withContext(function($ctx1) {
  167. var $1;
  168. $1=_st(_st(self)._class())._key();
  169. return $1;
  170. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCommand)})},
  171. messageSends: ["key", "class"]}),
  172. smalltalk.HLCommand);
  173. smalltalk.addMethod(
  174. smalltalk.method({
  175. selector: "keyCode",
  176. fn: function (){
  177. var self=this;
  178. return smalltalk.withContext(function($ctx1) {
  179. var $1;
  180. $1=_st(_st(_st(self)._key())._asUppercase())._charCodeAt_((1));
  181. return $1;
  182. }, function($ctx1) {$ctx1.fill(self,"keyCode",{},smalltalk.HLCommand)})},
  183. messageSends: ["charCodeAt:", "asUppercase", "key"]}),
  184. smalltalk.HLCommand);
  185. smalltalk.addMethod(
  186. smalltalk.method({
  187. selector: "label",
  188. fn: function (){
  189. var self=this;
  190. return smalltalk.withContext(function($ctx1) {
  191. var $1;
  192. $1=_st(_st(self)._class())._label();
  193. return $1;
  194. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLCommand)})},
  195. messageSends: ["label", "class"]}),
  196. smalltalk.HLCommand);
  197. smalltalk.addMethod(
  198. smalltalk.method({
  199. selector: "menuLabel",
  200. fn: function (){
  201. var self=this;
  202. return smalltalk.withContext(function($ctx1) {
  203. var $1;
  204. $1=_st(_st(self)._class())._menuLabel();
  205. return $1;
  206. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLCommand)})},
  207. messageSends: ["menuLabel", "class"]}),
  208. smalltalk.HLCommand);
  209. smalltalk.addMethod(
  210. smalltalk.method({
  211. selector: "registerOn:",
  212. fn: function (aBinding){
  213. var self=this;
  214. return smalltalk.withContext(function($ctx1) {
  215. var $1;
  216. $1=_st(aBinding)._add_(_st(self)._asBinding());
  217. return $1;
  218. }, function($ctx1) {$ctx1.fill(self,"registerOn:",{aBinding:aBinding},smalltalk.HLCommand)})},
  219. messageSends: ["add:", "asBinding"]}),
  220. smalltalk.HLCommand);
  221. smalltalk.addMethod(
  222. smalltalk.method({
  223. selector: "concreteClasses",
  224. fn: function (){
  225. var self=this;
  226. var classes;
  227. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  228. return smalltalk.withContext(function($ctx1) {
  229. var $1,$2;
  230. classes=_st($OrderedCollection())._new();
  231. $1=_st(self)._isConcrete();
  232. if(smalltalk.assert($1)){
  233. _st(classes)._add_(self);
  234. };
  235. _st(_st(self)._subclasses())._do_((function(each){
  236. return smalltalk.withContext(function($ctx2) {
  237. return _st(classes)._addAll_(_st(each)._concreteClasses());
  238. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  239. $2=classes;
  240. return $2;
  241. }, function($ctx1) {$ctx1.fill(self,"concreteClasses",{classes:classes},smalltalk.HLCommand.klass)})},
  242. messageSends: ["new", "ifTrue:", "add:", "isConcrete", "do:", "addAll:", "concreteClasses", "subclasses"]}),
  243. smalltalk.HLCommand.klass);
  244. smalltalk.addMethod(
  245. smalltalk.method({
  246. selector: "documentation",
  247. fn: function (){
  248. var self=this;
  249. return smalltalk.withContext(function($ctx1) {
  250. return "";
  251. }, function($ctx1) {$ctx1.fill(self,"documentation",{},smalltalk.HLCommand.klass)})},
  252. messageSends: []}),
  253. smalltalk.HLCommand.klass);
  254. smalltalk.addMethod(
  255. smalltalk.method({
  256. selector: "isConcrete",
  257. fn: function (){
  258. var self=this;
  259. return smalltalk.withContext(function($ctx1) {
  260. var $1;
  261. $1=_st(_st(self)._key())._notNil();
  262. return $1;
  263. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.HLCommand.klass)})},
  264. messageSends: ["notNil", "key"]}),
  265. smalltalk.HLCommand.klass);
  266. smalltalk.addMethod(
  267. smalltalk.method({
  268. selector: "isValidFor:",
  269. fn: function (aModel){
  270. var self=this;
  271. return smalltalk.withContext(function($ctx1) {
  272. return false;
  273. }, function($ctx1) {$ctx1.fill(self,"isValidFor:",{aModel:aModel},smalltalk.HLCommand.klass)})},
  274. messageSends: []}),
  275. smalltalk.HLCommand.klass);
  276. smalltalk.addMethod(
  277. smalltalk.method({
  278. selector: "key",
  279. fn: function (){
  280. var self=this;
  281. return smalltalk.withContext(function($ctx1) {
  282. return nil;
  283. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCommand.klass)})},
  284. messageSends: []}),
  285. smalltalk.HLCommand.klass);
  286. smalltalk.addMethod(
  287. smalltalk.method({
  288. selector: "label",
  289. fn: function (){
  290. var self=this;
  291. return smalltalk.withContext(function($ctx1) {
  292. return "";
  293. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLCommand.klass)})},
  294. messageSends: []}),
  295. smalltalk.HLCommand.klass);
  296. smalltalk.addMethod(
  297. smalltalk.method({
  298. selector: "menuLabel",
  299. fn: function (){
  300. var self=this;
  301. return smalltalk.withContext(function($ctx1) {
  302. var $1;
  303. $1=_st(self)._label();
  304. return $1;
  305. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLCommand.klass)})},
  306. messageSends: ["label"]}),
  307. smalltalk.HLCommand.klass);
  308. smalltalk.addMethod(
  309. smalltalk.method({
  310. selector: "registerConcreteClassesOn:",
  311. fn: function (aBinding){
  312. var self=this;
  313. var newBinding;
  314. return smalltalk.withContext(function($ctx1) {
  315. var $1;
  316. $1=_st(self)._isConcrete();
  317. if(smalltalk.assert($1)){
  318. newBinding=_st(self)._registerOn_(aBinding);
  319. newBinding;
  320. } else {
  321. newBinding=aBinding;
  322. newBinding;
  323. };
  324. _st(_st(self)._subclasses())._do_((function(each){
  325. return smalltalk.withContext(function($ctx2) {
  326. return _st(each)._registerConcreteClassesOn_(newBinding);
  327. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  328. return self}, function($ctx1) {$ctx1.fill(self,"registerConcreteClassesOn:",{aBinding:aBinding,newBinding:newBinding},smalltalk.HLCommand.klass)})},
  329. messageSends: ["ifTrue:ifFalse:", "registerOn:", "isConcrete", "do:", "registerConcreteClassesOn:", "subclasses"]}),
  330. smalltalk.HLCommand.klass);
  331. smalltalk.addMethod(
  332. smalltalk.method({
  333. selector: "registerOn:",
  334. fn: function (aBinding){
  335. var self=this;
  336. return smalltalk.withContext(function($ctx1) {
  337. var $1;
  338. $1=_st(_st(self)._new())._registerOn_(aBinding);
  339. return $1;
  340. }, function($ctx1) {$ctx1.fill(self,"registerOn:",{aBinding:aBinding},smalltalk.HLCommand.klass)})},
  341. messageSends: ["registerOn:", "new"]}),
  342. smalltalk.HLCommand.klass);
  343. smalltalk.addClass('HLCloseTabCommand', smalltalk.HLCommand, [], 'Helios-Commands-Core');
  344. smalltalk.addMethod(
  345. smalltalk.method({
  346. selector: "execute",
  347. fn: function (){
  348. var self=this;
  349. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  350. return smalltalk.withContext(function($ctx1) {
  351. _st(_st($HLManager())._current())._removeActiveTab();
  352. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLCloseTabCommand)})},
  353. messageSends: ["removeActiveTab", "current"]}),
  354. smalltalk.HLCloseTabCommand);
  355. smalltalk.addMethod(
  356. smalltalk.method({
  357. selector: "key",
  358. fn: function (){
  359. var self=this;
  360. return smalltalk.withContext(function($ctx1) {
  361. return "w";
  362. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCloseTabCommand.klass)})},
  363. messageSends: []}),
  364. smalltalk.HLCloseTabCommand.klass);
  365. smalltalk.addMethod(
  366. smalltalk.method({
  367. selector: "label",
  368. fn: function (){
  369. var self=this;
  370. return smalltalk.withContext(function($ctx1) {
  371. return "Close tab";
  372. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLCloseTabCommand.klass)})},
  373. messageSends: []}),
  374. smalltalk.HLCloseTabCommand.klass);
  375. smalltalk.addClass('HLModelCommand', smalltalk.HLCommand, ['model'], 'Helios-Commands-Core');
  376. smalltalk.addMethod(
  377. smalltalk.method({
  378. selector: "model",
  379. fn: function (){
  380. var self=this;
  381. return smalltalk.withContext(function($ctx1) {
  382. var $1;
  383. $1=self["@model"];
  384. return $1;
  385. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLModelCommand)})},
  386. messageSends: []}),
  387. smalltalk.HLModelCommand);
  388. smalltalk.addMethod(
  389. smalltalk.method({
  390. selector: "model:",
  391. fn: function (aModel){
  392. var self=this;
  393. return smalltalk.withContext(function($ctx1) {
  394. self["@model"]=aModel;
  395. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLModelCommand)})},
  396. messageSends: []}),
  397. smalltalk.HLModelCommand);
  398. smalltalk.addMethod(
  399. smalltalk.method({
  400. selector: "for:",
  401. fn: function (aModel){
  402. var self=this;
  403. return smalltalk.withContext(function($ctx1) {
  404. var $1;
  405. $1=_st(self)._new();
  406. return $1;
  407. }, function($ctx1) {$ctx1.fill(self,"for:",{aModel:aModel},smalltalk.HLModelCommand.klass)})},
  408. messageSends: ["new"]}),
  409. smalltalk.HLModelCommand.klass);
  410. smalltalk.addMethod(
  411. smalltalk.method({
  412. selector: "registerConcreteClassesOn:for:",
  413. fn: function (aBinding,aModel){
  414. var self=this;
  415. var newBinding;
  416. return smalltalk.withContext(function($ctx1) {
  417. var $1;
  418. $1=_st(self)._isConcrete();
  419. if(smalltalk.assert($1)){
  420. newBinding=_st(self)._registerOn_for_(aBinding,aModel);
  421. newBinding;
  422. } else {
  423. newBinding=aBinding;
  424. newBinding;
  425. };
  426. _st(_st(self)._subclasses())._do_((function(each){
  427. return smalltalk.withContext(function($ctx2) {
  428. return _st(each)._registerConcreteClassesOn_for_(newBinding,aModel);
  429. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  430. return self}, function($ctx1) {$ctx1.fill(self,"registerConcreteClassesOn:for:",{aBinding:aBinding,aModel:aModel,newBinding:newBinding},smalltalk.HLModelCommand.klass)})},
  431. messageSends: ["ifTrue:ifFalse:", "registerOn:for:", "isConcrete", "do:", "registerConcreteClassesOn:for:", "subclasses"]}),
  432. smalltalk.HLModelCommand.klass);
  433. smalltalk.addMethod(
  434. smalltalk.method({
  435. selector: "registerOn:for:",
  436. fn: function (aBinding,aModel){
  437. var self=this;
  438. return smalltalk.withContext(function($ctx1) {
  439. var $1;
  440. $1=_st(_st(self)._for_(aModel))._registerOn_(aBinding);
  441. return $1;
  442. }, function($ctx1) {$ctx1.fill(self,"registerOn:for:",{aBinding:aBinding,aModel:aModel},smalltalk.HLModelCommand.klass)})},
  443. messageSends: ["registerOn:", "for:"]}),
  444. smalltalk.HLModelCommand.klass);
  445. smalltalk.addClass('HLOpenCommand', smalltalk.HLCommand, [], 'Helios-Commands-Core');
  446. smalltalk.addMethod(
  447. smalltalk.method({
  448. selector: "key",
  449. fn: function (){
  450. var self=this;
  451. return smalltalk.withContext(function($ctx1) {
  452. return "o";
  453. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLOpenCommand.klass)})},
  454. messageSends: []}),
  455. smalltalk.HLOpenCommand.klass);
  456. smalltalk.addMethod(
  457. smalltalk.method({
  458. selector: "label",
  459. fn: function (){
  460. var self=this;
  461. return smalltalk.withContext(function($ctx1) {
  462. return "Open";
  463. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLOpenCommand.klass)})},
  464. messageSends: []}),
  465. smalltalk.HLOpenCommand.klass);
  466. smalltalk.addClass('HLOpenBrowserCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands-Core');
  467. smalltalk.addMethod(
  468. smalltalk.method({
  469. selector: "execute",
  470. fn: function (){
  471. var self=this;
  472. function $HLBrowser(){return smalltalk.HLBrowser||(typeof HLBrowser=="undefined"?nil:HLBrowser)}
  473. return smalltalk.withContext(function($ctx1) {
  474. var $1;
  475. $1=_st($HLBrowser())._openAsTab();
  476. return $1;
  477. }, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLOpenBrowserCommand)})},
  478. messageSends: ["openAsTab"]}),
  479. smalltalk.HLOpenBrowserCommand);
  480. smalltalk.addMethod(
  481. smalltalk.method({
  482. selector: "key",
  483. fn: function (){
  484. var self=this;
  485. return smalltalk.withContext(function($ctx1) {
  486. return "b";
  487. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLOpenBrowserCommand.klass)})},
  488. messageSends: []}),
  489. smalltalk.HLOpenBrowserCommand.klass);
  490. smalltalk.addMethod(
  491. smalltalk.method({
  492. selector: "label",
  493. fn: function (){
  494. var self=this;
  495. return smalltalk.withContext(function($ctx1) {
  496. return "Browser";
  497. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLOpenBrowserCommand.klass)})},
  498. messageSends: []}),
  499. smalltalk.HLOpenBrowserCommand.klass);
  500. smalltalk.addClass('HLOpenTranscriptCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands-Core');
  501. smalltalk.addMethod(
  502. smalltalk.method({
  503. selector: "execute",
  504. fn: function (){
  505. var self=this;
  506. function $HLTranscript(){return smalltalk.HLTranscript||(typeof HLTranscript=="undefined"?nil:HLTranscript)}
  507. return smalltalk.withContext(function($ctx1) {
  508. var $1;
  509. $1=_st($HLTranscript())._openAsTab();
  510. return $1;
  511. }, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLOpenTranscriptCommand)})},
  512. messageSends: ["openAsTab"]}),
  513. smalltalk.HLOpenTranscriptCommand);
  514. smalltalk.addMethod(
  515. smalltalk.method({
  516. selector: "key",
  517. fn: function (){
  518. var self=this;
  519. return smalltalk.withContext(function($ctx1) {
  520. return "t";
  521. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLOpenTranscriptCommand.klass)})},
  522. messageSends: []}),
  523. smalltalk.HLOpenTranscriptCommand.klass);
  524. smalltalk.addMethod(
  525. smalltalk.method({
  526. selector: "label",
  527. fn: function (){
  528. var self=this;
  529. return smalltalk.withContext(function($ctx1) {
  530. return "Transcript";
  531. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLOpenTranscriptCommand.klass)})},
  532. messageSends: []}),
  533. smalltalk.HLOpenTranscriptCommand.klass);
  534. smalltalk.addClass('HLOpenWorkspaceCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands-Core');
  535. smalltalk.addMethod(
  536. smalltalk.method({
  537. selector: "execute",
  538. fn: function (){
  539. var self=this;
  540. function $HLCodeWidget(){return smalltalk.HLCodeWidget||(typeof HLCodeWidget=="undefined"?nil:HLCodeWidget)}
  541. return smalltalk.withContext(function($ctx1) {
  542. var $1;
  543. $1=_st($HLCodeWidget())._openAsTab();
  544. return $1;
  545. }, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLOpenWorkspaceCommand)})},
  546. messageSends: ["openAsTab"]}),
  547. smalltalk.HLOpenWorkspaceCommand);
  548. smalltalk.addMethod(
  549. smalltalk.method({
  550. selector: "key",
  551. fn: function (){
  552. var self=this;
  553. return smalltalk.withContext(function($ctx1) {
  554. return "w";
  555. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLOpenWorkspaceCommand.klass)})},
  556. messageSends: []}),
  557. smalltalk.HLOpenWorkspaceCommand.klass);
  558. smalltalk.addMethod(
  559. smalltalk.method({
  560. selector: "label",
  561. fn: function (){
  562. var self=this;
  563. return smalltalk.withContext(function($ctx1) {
  564. return "Workspace";
  565. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLOpenWorkspaceCommand.klass)})},
  566. messageSends: []}),
  567. smalltalk.HLOpenWorkspaceCommand.klass);
  568. smalltalk.addClass('HLViewCommand', smalltalk.HLCommand, [], 'Helios-Commands-Core');
  569. smalltalk.addMethod(
  570. smalltalk.method({
  571. selector: "label",
  572. fn: function (){
  573. var self=this;
  574. return smalltalk.withContext(function($ctx1) {
  575. return "View";
  576. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLViewCommand.klass)})},
  577. messageSends: []}),
  578. smalltalk.HLViewCommand.klass);