Helios-Commands-Core.deploy.js 18 KB

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