Helios-Commands-Core.deploy.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  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: "isAction",
  132. fn: function (){
  133. var self=this;
  134. return smalltalk.withContext(function($ctx1) {
  135. var $1;
  136. $1=_st(_st(self)._isBindingGroup())._not();
  137. return $1;
  138. }, function($ctx1) {$ctx1.fill(self,"isAction",{},smalltalk.HLCommand)})},
  139. messageSends: ["not", "isBindingGroup"]}),
  140. smalltalk.HLCommand);
  141. smalltalk.addMethod(
  142. smalltalk.method({
  143. selector: "isActive",
  144. fn: function (){
  145. var self=this;
  146. return smalltalk.withContext(function($ctx1) {
  147. return true;
  148. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLCommand)})},
  149. messageSends: []}),
  150. smalltalk.HLCommand);
  151. smalltalk.addMethod(
  152. smalltalk.method({
  153. selector: "isBindingGroup",
  154. fn: function (){
  155. var self=this;
  156. return smalltalk.withContext(function($ctx1) {
  157. var $1;
  158. $1=_st(_st(_st(_st(self)._class())._methodDictionary())._includesKey_("execute"))._not();
  159. return $1;
  160. }, function($ctx1) {$ctx1.fill(self,"isBindingGroup",{},smalltalk.HLCommand)})},
  161. messageSends: ["not", "includesKey:", "methodDictionary", "class"]}),
  162. smalltalk.HLCommand);
  163. smalltalk.addMethod(
  164. smalltalk.method({
  165. selector: "isInputRequired",
  166. fn: function (){
  167. var self=this;
  168. return smalltalk.withContext(function($ctx1) {
  169. return false;
  170. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLCommand)})},
  171. messageSends: []}),
  172. smalltalk.HLCommand);
  173. smalltalk.addMethod(
  174. smalltalk.method({
  175. selector: "key",
  176. fn: function (){
  177. var self=this;
  178. return smalltalk.withContext(function($ctx1) {
  179. var $1;
  180. $1=_st(_st(self)._class())._key();
  181. return $1;
  182. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCommand)})},
  183. messageSends: ["key", "class"]}),
  184. smalltalk.HLCommand);
  185. smalltalk.addMethod(
  186. smalltalk.method({
  187. selector: "keyCode",
  188. fn: function (){
  189. var self=this;
  190. return smalltalk.withContext(function($ctx1) {
  191. var $1;
  192. $1=_st(_st(_st(self)._key())._asUppercase())._charCodeAt_((1));
  193. return $1;
  194. }, function($ctx1) {$ctx1.fill(self,"keyCode",{},smalltalk.HLCommand)})},
  195. messageSends: ["charCodeAt:", "asUppercase", "key"]}),
  196. smalltalk.HLCommand);
  197. smalltalk.addMethod(
  198. smalltalk.method({
  199. selector: "label",
  200. fn: function (){
  201. var self=this;
  202. return smalltalk.withContext(function($ctx1) {
  203. var $1;
  204. $1=_st(_st(self)._class())._label();
  205. return $1;
  206. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLCommand)})},
  207. messageSends: ["label", "class"]}),
  208. smalltalk.HLCommand);
  209. smalltalk.addMethod(
  210. smalltalk.method({
  211. selector: "menuLabel",
  212. fn: function (){
  213. var self=this;
  214. return smalltalk.withContext(function($ctx1) {
  215. var $1;
  216. $1=_st(_st(self)._class())._menuLabel();
  217. return $1;
  218. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLCommand)})},
  219. messageSends: ["menuLabel", "class"]}),
  220. smalltalk.HLCommand);
  221. smalltalk.addMethod(
  222. smalltalk.method({
  223. selector: "registerOn:",
  224. fn: function (aBinding){
  225. var self=this;
  226. return smalltalk.withContext(function($ctx1) {
  227. var $1;
  228. $1=_st(aBinding)._add_(_st(self)._asBinding());
  229. return $1;
  230. }, function($ctx1) {$ctx1.fill(self,"registerOn:",{aBinding:aBinding},smalltalk.HLCommand)})},
  231. messageSends: ["add:", "asBinding"]}),
  232. smalltalk.HLCommand);
  233. smalltalk.addMethod(
  234. smalltalk.method({
  235. selector: "concreteClasses",
  236. fn: function (){
  237. var self=this;
  238. var classes;
  239. function $OrderedCollection(){return smalltalk.OrderedCollection||(typeof OrderedCollection=="undefined"?nil:OrderedCollection)}
  240. return smalltalk.withContext(function($ctx1) {
  241. var $1,$2;
  242. classes=_st($OrderedCollection())._new();
  243. $1=_st(self)._isConcrete();
  244. if(smalltalk.assert($1)){
  245. _st(classes)._add_(self);
  246. };
  247. _st(_st(self)._subclasses())._do_((function(each){
  248. return smalltalk.withContext(function($ctx2) {
  249. return _st(classes)._addAll_(_st(each)._concreteClasses());
  250. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  251. $2=classes;
  252. return $2;
  253. }, function($ctx1) {$ctx1.fill(self,"concreteClasses",{classes:classes},smalltalk.HLCommand.klass)})},
  254. messageSends: ["new", "ifTrue:", "add:", "isConcrete", "do:", "addAll:", "concreteClasses", "subclasses"]}),
  255. smalltalk.HLCommand.klass);
  256. smalltalk.addMethod(
  257. smalltalk.method({
  258. selector: "documentation",
  259. fn: function (){
  260. var self=this;
  261. return smalltalk.withContext(function($ctx1) {
  262. return "";
  263. }, function($ctx1) {$ctx1.fill(self,"documentation",{},smalltalk.HLCommand.klass)})},
  264. messageSends: []}),
  265. smalltalk.HLCommand.klass);
  266. smalltalk.addMethod(
  267. smalltalk.method({
  268. selector: "isConcrete",
  269. fn: function (){
  270. var self=this;
  271. return smalltalk.withContext(function($ctx1) {
  272. var $1;
  273. $1=_st(_st(self)._key())._notNil();
  274. return $1;
  275. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.HLCommand.klass)})},
  276. messageSends: ["notNil", "key"]}),
  277. smalltalk.HLCommand.klass);
  278. smalltalk.addMethod(
  279. smalltalk.method({
  280. selector: "isValidFor:",
  281. fn: function (aModel){
  282. var self=this;
  283. return smalltalk.withContext(function($ctx1) {
  284. return false;
  285. }, function($ctx1) {$ctx1.fill(self,"isValidFor:",{aModel:aModel},smalltalk.HLCommand.klass)})},
  286. messageSends: []}),
  287. smalltalk.HLCommand.klass);
  288. smalltalk.addMethod(
  289. smalltalk.method({
  290. selector: "key",
  291. fn: function (){
  292. var self=this;
  293. return smalltalk.withContext(function($ctx1) {
  294. return nil;
  295. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCommand.klass)})},
  296. messageSends: []}),
  297. smalltalk.HLCommand.klass);
  298. smalltalk.addMethod(
  299. smalltalk.method({
  300. selector: "label",
  301. fn: function (){
  302. var self=this;
  303. return smalltalk.withContext(function($ctx1) {
  304. return "";
  305. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLCommand.klass)})},
  306. messageSends: []}),
  307. smalltalk.HLCommand.klass);
  308. smalltalk.addMethod(
  309. smalltalk.method({
  310. selector: "menuLabel",
  311. fn: function (){
  312. var self=this;
  313. return smalltalk.withContext(function($ctx1) {
  314. var $1;
  315. $1=_st(self)._label();
  316. return $1;
  317. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLCommand.klass)})},
  318. messageSends: ["label"]}),
  319. smalltalk.HLCommand.klass);
  320. smalltalk.addMethod(
  321. smalltalk.method({
  322. selector: "registerConcreteClassesOn:",
  323. fn: function (aBinding){
  324. var self=this;
  325. var newBinding;
  326. return smalltalk.withContext(function($ctx1) {
  327. var $1;
  328. $1=_st(self)._isConcrete();
  329. if(smalltalk.assert($1)){
  330. newBinding=_st(self)._registerOn_(aBinding);
  331. newBinding;
  332. } else {
  333. newBinding=aBinding;
  334. newBinding;
  335. };
  336. _st(_st(self)._subclasses())._do_((function(each){
  337. return smalltalk.withContext(function($ctx2) {
  338. return _st(each)._registerConcreteClassesOn_(newBinding);
  339. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  340. return self}, function($ctx1) {$ctx1.fill(self,"registerConcreteClassesOn:",{aBinding:aBinding,newBinding:newBinding},smalltalk.HLCommand.klass)})},
  341. messageSends: ["ifTrue:ifFalse:", "registerOn:", "isConcrete", "do:", "registerConcreteClassesOn:", "subclasses"]}),
  342. smalltalk.HLCommand.klass);
  343. smalltalk.addMethod(
  344. smalltalk.method({
  345. selector: "registerOn:",
  346. fn: function (aBinding){
  347. var self=this;
  348. return smalltalk.withContext(function($ctx1) {
  349. var $1;
  350. $1=_st(_st(self)._new())._registerOn_(aBinding);
  351. return $1;
  352. }, function($ctx1) {$ctx1.fill(self,"registerOn:",{aBinding:aBinding},smalltalk.HLCommand.klass)})},
  353. messageSends: ["registerOn:", "new"]}),
  354. smalltalk.HLCommand.klass);
  355. smalltalk.addClass('HLCloseTabCommand', smalltalk.HLCommand, [], 'Helios-Commands-Core');
  356. smalltalk.addMethod(
  357. smalltalk.method({
  358. selector: "execute",
  359. fn: function (){
  360. var self=this;
  361. function $HLManager(){return smalltalk.HLManager||(typeof HLManager=="undefined"?nil:HLManager)}
  362. return smalltalk.withContext(function($ctx1) {
  363. _st(_st($HLManager())._current())._removeActiveTab();
  364. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLCloseTabCommand)})},
  365. messageSends: ["removeActiveTab", "current"]}),
  366. smalltalk.HLCloseTabCommand);
  367. smalltalk.addMethod(
  368. smalltalk.method({
  369. selector: "key",
  370. fn: function (){
  371. var self=this;
  372. return smalltalk.withContext(function($ctx1) {
  373. return "w";
  374. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCloseTabCommand.klass)})},
  375. messageSends: []}),
  376. smalltalk.HLCloseTabCommand.klass);
  377. smalltalk.addMethod(
  378. smalltalk.method({
  379. selector: "label",
  380. fn: function (){
  381. var self=this;
  382. return smalltalk.withContext(function($ctx1) {
  383. return "Close tab";
  384. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLCloseTabCommand.klass)})},
  385. messageSends: []}),
  386. smalltalk.HLCloseTabCommand.klass);
  387. smalltalk.addClass('HLModelCommand', smalltalk.HLCommand, ['model'], 'Helios-Commands-Core');
  388. smalltalk.addMethod(
  389. smalltalk.method({
  390. selector: "model",
  391. fn: function (){
  392. var self=this;
  393. return smalltalk.withContext(function($ctx1) {
  394. var $1;
  395. $1=self["@model"];
  396. return $1;
  397. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLModelCommand)})},
  398. messageSends: []}),
  399. smalltalk.HLModelCommand);
  400. smalltalk.addMethod(
  401. smalltalk.method({
  402. selector: "model:",
  403. fn: function (aModel){
  404. var self=this;
  405. return smalltalk.withContext(function($ctx1) {
  406. self["@model"]=aModel;
  407. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLModelCommand)})},
  408. messageSends: []}),
  409. smalltalk.HLModelCommand);
  410. smalltalk.addMethod(
  411. smalltalk.method({
  412. selector: "for:",
  413. fn: function (aModel){
  414. var self=this;
  415. return smalltalk.withContext(function($ctx1) {
  416. var $1;
  417. $1=_st(self)._new();
  418. return $1;
  419. }, function($ctx1) {$ctx1.fill(self,"for:",{aModel:aModel},smalltalk.HLModelCommand.klass)})},
  420. messageSends: ["new"]}),
  421. smalltalk.HLModelCommand.klass);
  422. smalltalk.addMethod(
  423. smalltalk.method({
  424. selector: "registerConcreteClassesOn:for:",
  425. fn: function (aBinding,aModel){
  426. var self=this;
  427. var newBinding;
  428. return smalltalk.withContext(function($ctx1) {
  429. var $1;
  430. $1=_st(self)._isConcrete();
  431. if(smalltalk.assert($1)){
  432. newBinding=_st(self)._registerOn_for_(aBinding,aModel);
  433. newBinding;
  434. } else {
  435. newBinding=aBinding;
  436. newBinding;
  437. };
  438. _st(_st(self)._subclasses())._do_((function(each){
  439. return smalltalk.withContext(function($ctx2) {
  440. return _st(each)._registerConcreteClassesOn_for_(newBinding,aModel);
  441. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  442. return self}, function($ctx1) {$ctx1.fill(self,"registerConcreteClassesOn:for:",{aBinding:aBinding,aModel:aModel,newBinding:newBinding},smalltalk.HLModelCommand.klass)})},
  443. messageSends: ["ifTrue:ifFalse:", "registerOn:for:", "isConcrete", "do:", "registerConcreteClassesOn:for:", "subclasses"]}),
  444. smalltalk.HLModelCommand.klass);
  445. smalltalk.addMethod(
  446. smalltalk.method({
  447. selector: "registerOn:for:",
  448. fn: function (aBinding,aModel){
  449. var self=this;
  450. return smalltalk.withContext(function($ctx1) {
  451. var $1;
  452. $1=_st(_st(self)._for_(aModel))._registerOn_(aBinding);
  453. return $1;
  454. }, function($ctx1) {$ctx1.fill(self,"registerOn:for:",{aBinding:aBinding,aModel:aModel},smalltalk.HLModelCommand.klass)})},
  455. messageSends: ["registerOn:", "for:"]}),
  456. smalltalk.HLModelCommand.klass);
  457. smalltalk.addClass('HLOpenCommand', smalltalk.HLCommand, [], 'Helios-Commands-Core');
  458. smalltalk.addMethod(
  459. smalltalk.method({
  460. selector: "key",
  461. fn: function (){
  462. var self=this;
  463. return smalltalk.withContext(function($ctx1) {
  464. return "o";
  465. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLOpenCommand.klass)})},
  466. messageSends: []}),
  467. smalltalk.HLOpenCommand.klass);
  468. smalltalk.addMethod(
  469. smalltalk.method({
  470. selector: "label",
  471. fn: function (){
  472. var self=this;
  473. return smalltalk.withContext(function($ctx1) {
  474. return "Open";
  475. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLOpenCommand.klass)})},
  476. messageSends: []}),
  477. smalltalk.HLOpenCommand.klass);
  478. smalltalk.addClass('HLOpenBrowserCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands-Core');
  479. smalltalk.addMethod(
  480. smalltalk.method({
  481. selector: "execute",
  482. fn: function (){
  483. var self=this;
  484. function $HLBrowser(){return smalltalk.HLBrowser||(typeof HLBrowser=="undefined"?nil:HLBrowser)}
  485. return smalltalk.withContext(function($ctx1) {
  486. var $1;
  487. $1=_st($HLBrowser())._openAsTab();
  488. return $1;
  489. }, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLOpenBrowserCommand)})},
  490. messageSends: ["openAsTab"]}),
  491. smalltalk.HLOpenBrowserCommand);
  492. smalltalk.addMethod(
  493. smalltalk.method({
  494. selector: "key",
  495. fn: function (){
  496. var self=this;
  497. return smalltalk.withContext(function($ctx1) {
  498. return "b";
  499. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLOpenBrowserCommand.klass)})},
  500. messageSends: []}),
  501. smalltalk.HLOpenBrowserCommand.klass);
  502. smalltalk.addMethod(
  503. smalltalk.method({
  504. selector: "label",
  505. fn: function (){
  506. var self=this;
  507. return smalltalk.withContext(function($ctx1) {
  508. return "Browser";
  509. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLOpenBrowserCommand.klass)})},
  510. messageSends: []}),
  511. smalltalk.HLOpenBrowserCommand.klass);
  512. smalltalk.addClass('HLOpenTranscriptCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands-Core');
  513. smalltalk.addMethod(
  514. smalltalk.method({
  515. selector: "execute",
  516. fn: function (){
  517. var self=this;
  518. function $HLTranscript(){return smalltalk.HLTranscript||(typeof HLTranscript=="undefined"?nil:HLTranscript)}
  519. return smalltalk.withContext(function($ctx1) {
  520. var $1;
  521. $1=_st($HLTranscript())._openAsTab();
  522. return $1;
  523. }, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLOpenTranscriptCommand)})},
  524. messageSends: ["openAsTab"]}),
  525. smalltalk.HLOpenTranscriptCommand);
  526. smalltalk.addMethod(
  527. smalltalk.method({
  528. selector: "key",
  529. fn: function (){
  530. var self=this;
  531. return smalltalk.withContext(function($ctx1) {
  532. return "t";
  533. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLOpenTranscriptCommand.klass)})},
  534. messageSends: []}),
  535. smalltalk.HLOpenTranscriptCommand.klass);
  536. smalltalk.addMethod(
  537. smalltalk.method({
  538. selector: "label",
  539. fn: function (){
  540. var self=this;
  541. return smalltalk.withContext(function($ctx1) {
  542. return "Transcript";
  543. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLOpenTranscriptCommand.klass)})},
  544. messageSends: []}),
  545. smalltalk.HLOpenTranscriptCommand.klass);
  546. smalltalk.addClass('HLOpenWorkspaceCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands-Core');
  547. smalltalk.addMethod(
  548. smalltalk.method({
  549. selector: "execute",
  550. fn: function (){
  551. var self=this;
  552. function $HLWorkspace(){return smalltalk.HLWorkspace||(typeof HLWorkspace=="undefined"?nil:HLWorkspace)}
  553. return smalltalk.withContext(function($ctx1) {
  554. var $1;
  555. $1=_st($HLWorkspace())._openAsTab();
  556. return $1;
  557. }, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLOpenWorkspaceCommand)})},
  558. messageSends: ["openAsTab"]}),
  559. smalltalk.HLOpenWorkspaceCommand);
  560. smalltalk.addMethod(
  561. smalltalk.method({
  562. selector: "key",
  563. fn: function (){
  564. var self=this;
  565. return smalltalk.withContext(function($ctx1) {
  566. return "w";
  567. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLOpenWorkspaceCommand.klass)})},
  568. messageSends: []}),
  569. smalltalk.HLOpenWorkspaceCommand.klass);
  570. smalltalk.addMethod(
  571. smalltalk.method({
  572. selector: "label",
  573. fn: function (){
  574. var self=this;
  575. return smalltalk.withContext(function($ctx1) {
  576. return "Workspace";
  577. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLOpenWorkspaceCommand.klass)})},
  578. messageSends: []}),
  579. smalltalk.HLOpenWorkspaceCommand.klass);
  580. smalltalk.addClass('HLViewCommand', smalltalk.HLCommand, [], 'Helios-Commands-Core');
  581. smalltalk.addMethod(
  582. smalltalk.method({
  583. selector: "label",
  584. fn: function (){
  585. var self=this;
  586. return smalltalk.withContext(function($ctx1) {
  587. return "View";
  588. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLViewCommand.klass)})},
  589. messageSends: []}),
  590. smalltalk.HLViewCommand.klass);