Helios-Commands-Core.deploy.js 17 KB

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