1
0

Helios-Commands-Core.deploy.js 18 KB

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