Helios-Commands-Core.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767
  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. category: 'converting',
  8. fn: function (){
  9. var self=this;
  10. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  11. $2=_st((smalltalk.HLBindingAction || 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. args: [],
  18. source: "asActionBinding\x0a\x09^ (HLBindingAction on: self key labelled: self label)\x0a \x09command: self;\x0a\x09\x09yourself",
  19. messageSends: ["command:", "on:labelled:", "key", "label", "yourself"],
  20. referencedClasses: ["HLBindingAction"]
  21. }),
  22. smalltalk.HLCommand);
  23. smalltalk.addMethod(
  24. "_asBinding",
  25. smalltalk.method({
  26. selector: "asBinding",
  27. category: 'converting',
  28. fn: function (){
  29. var self=this;
  30. return smalltalk.withContext(function($ctx1) { var $2,$1;
  31. $2=_st(self)._isBindingGroup();
  32. if(smalltalk.assert($2)){
  33. $1=_st(self)._asGroupBinding();
  34. } else {
  35. $1=_st(self)._asActionBinding();
  36. };
  37. return $1;
  38. }, function($ctx1) {$ctx1.fill(self,"asBinding",{},smalltalk.HLCommand)})},
  39. args: [],
  40. source: "asBinding\x0a\x09^ self isBindingGroup\x0a\x09\x09ifTrue: [ self asGroupBinding ]\x0a\x09\x09ifFalse: [ self asActionBinding ]",
  41. messageSends: ["ifTrue:ifFalse:", "asGroupBinding", "asActionBinding", "isBindingGroup"],
  42. referencedClasses: []
  43. }),
  44. smalltalk.HLCommand);
  45. smalltalk.addMethod(
  46. "_asGroupBinding",
  47. smalltalk.method({
  48. selector: "asGroupBinding",
  49. category: 'converting',
  50. fn: function (){
  51. var self=this;
  52. return smalltalk.withContext(function($ctx1) { var $1;
  53. $1=_st((smalltalk.HLBindingGroup || HLBindingGroup))._on_labelled_(_st(self)._key(),_st(self)._label());
  54. return $1;
  55. }, function($ctx1) {$ctx1.fill(self,"asGroupBinding",{},smalltalk.HLCommand)})},
  56. args: [],
  57. source: "asGroupBinding\x0a\x09^ HLBindingGroup \x0a\x09\x09on: self key \x0a\x09\x09labelled: self label",
  58. messageSends: ["on:labelled:", "key", "label"],
  59. referencedClasses: ["HLBindingGroup"]
  60. }),
  61. smalltalk.HLCommand);
  62. smalltalk.addMethod(
  63. "_commandError_",
  64. smalltalk.method({
  65. selector: "commandError:",
  66. category: 'error handling',
  67. fn: function (aString){
  68. var self=this;
  69. return smalltalk.withContext(function($ctx1) { _st(self)._error_(aString);
  70. return self}, function($ctx1) {$ctx1.fill(self,"commandError:",{aString:aString},smalltalk.HLCommand)})},
  71. args: ["aString"],
  72. source: "commandError: aString\x0a\x09self error: aString",
  73. messageSends: ["error:"],
  74. referencedClasses: []
  75. }),
  76. smalltalk.HLCommand);
  77. smalltalk.addMethod(
  78. "_documentation",
  79. smalltalk.method({
  80. selector: "documentation",
  81. category: 'accessing',
  82. fn: function (){
  83. var self=this;
  84. return smalltalk.withContext(function($ctx1) { var $1;
  85. $1=_st(_st(self)._class())._documentation();
  86. return $1;
  87. }, function($ctx1) {$ctx1.fill(self,"documentation",{}, smalltalk.HLCommand)})},
  88. args: [],
  89. source: "documentation\x0a\x09^ self class documentation",
  90. messageSends: ["documentation", "class"],
  91. referencedClasses: []
  92. }),
  93. smalltalk.HLCommand);
  94. smalltalk.addMethod(
  95. "_execute",
  96. smalltalk.method({
  97. selector: "execute",
  98. category: 'executing',
  99. fn: function (){
  100. var self=this;
  101. return smalltalk.withContext(function($ctx1) { return self}, function($ctx1) {$ctx1.fill(self,"execute",{}, smalltalk.HLCommand)})},
  102. args: [],
  103. source: "execute\x0a\x09",
  104. messageSends: [],
  105. referencedClasses: []
  106. }),
  107. smalltalk.HLCommand);
  108. smalltalk.addMethod(
  109. "_input",
  110. smalltalk.method({
  111. selector: "input",
  112. category: 'accessing',
  113. fn: function (){
  114. var self=this;
  115. return smalltalk.withContext(function($ctx1) { var $1;
  116. $1=self["@input"];
  117. return $1;
  118. }, function($ctx1) {$ctx1.fill(self,"input",{},smalltalk.HLCommand)})},
  119. args: [],
  120. source: "input\x0a\x09^ input",
  121. messageSends: [],
  122. referencedClasses: []
  123. }),
  124. smalltalk.HLCommand);
  125. smalltalk.addMethod(
  126. "_input_",
  127. smalltalk.method({
  128. selector: "input:",
  129. category: 'accessing',
  130. fn: function (aString){
  131. var self=this;
  132. return smalltalk.withContext(function($ctx1) { var $1;
  133. self["@input"]=aString;
  134. $1=self["@input"];
  135. return $1;
  136. }, function($ctx1) {$ctx1.fill(self,"input:",{aString:aString},smalltalk.HLCommand)})},
  137. args: ["aString"],
  138. source: "input: aString\x0a\x09^ input := aString",
  139. messageSends: [],
  140. referencedClasses: []
  141. }),
  142. smalltalk.HLCommand);
  143. smalltalk.addMethod(
  144. "_inputCompletion",
  145. smalltalk.method({
  146. selector: "inputCompletion",
  147. category: 'accessing',
  148. fn: function (){
  149. var self=this;
  150. return smalltalk.withContext(function($ctx1) { return [];
  151. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},smalltalk.HLCommand)})},
  152. args: [],
  153. source: "inputCompletion\x0a\x09^ #()",
  154. messageSends: [],
  155. referencedClasses: []
  156. }),
  157. smalltalk.HLCommand);
  158. smalltalk.addMethod(
  159. "_inputLabel",
  160. smalltalk.method({
  161. selector: "inputLabel",
  162. category: 'accessing',
  163. fn: function (){
  164. var self=this;
  165. return smalltalk.withContext(function($ctx1) { var $1;
  166. $1=_st(self)._label();
  167. return $1;
  168. }, function($ctx1) {$ctx1.fill(self,"inputLabel",{},smalltalk.HLCommand)})},
  169. args: [],
  170. source: "inputLabel\x0a\x09^ self label",
  171. messageSends: ["label"],
  172. referencedClasses: []
  173. }),
  174. smalltalk.HLCommand);
  175. smalltalk.addMethod(
  176. "_isActive",
  177. smalltalk.method({
  178. selector: "isActive",
  179. category: 'testing',
  180. fn: function (){
  181. var self=this;
  182. return smalltalk.withContext(function($ctx1) { return true;
  183. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLCommand)})},
  184. args: [],
  185. source: "isActive\x0a\x09^ true",
  186. messageSends: [],
  187. referencedClasses: []
  188. }),
  189. smalltalk.HLCommand);
  190. smalltalk.addMethod(
  191. "_isBindingGroup",
  192. smalltalk.method({
  193. selector: "isBindingGroup",
  194. category: 'testing',
  195. fn: function (){
  196. var self=this;
  197. return smalltalk.withContext(function($ctx1) { var $1;
  198. $1=_st(_st(_st(_st(self)._class())._methodDictionary())._includesKey_("execute"))._not();
  199. return $1;
  200. }, function($ctx1) {$ctx1.fill(self,"isBindingGroup",{},smalltalk.HLCommand)})},
  201. args: [],
  202. source: "isBindingGroup\x0a\x09^ (self class methodDictionary includesKey: 'execute') not",
  203. messageSends: ["not", "includesKey:", "methodDictionary", "class"],
  204. referencedClasses: []
  205. }),
  206. smalltalk.HLCommand);
  207. smalltalk.addMethod(
  208. "_isInputRequired",
  209. smalltalk.method({
  210. selector: "isInputRequired",
  211. category: 'testing',
  212. fn: function (){
  213. var self=this;
  214. return smalltalk.withContext(function($ctx1) { return false;
  215. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLCommand)})},
  216. args: [],
  217. source: "isInputRequired\x0a\x09^ false",
  218. messageSends: [],
  219. referencedClasses: []
  220. }),
  221. smalltalk.HLCommand);
  222. smalltalk.addMethod(
  223. "_key",
  224. smalltalk.method({
  225. selector: "key",
  226. category: 'accessing',
  227. fn: function (){
  228. var self=this;
  229. return smalltalk.withContext(function($ctx1) { var $1;
  230. $1=_st(_st(self)._class())._key();
  231. return $1;
  232. }, function($ctx1) {$ctx1.fill(self,"key",{}, smalltalk.HLCommand)})},
  233. args: [],
  234. source: "key\x0a\x09^ self class key",
  235. messageSends: ["key", "class"],
  236. referencedClasses: []
  237. }),
  238. smalltalk.HLCommand);
  239. smalltalk.addMethod(
  240. "_label",
  241. smalltalk.method({
  242. selector: "label",
  243. category: 'accessing',
  244. fn: function (){
  245. var self=this;
  246. return smalltalk.withContext(function($ctx1) { var $1;
  247. $1=_st(_st(self)._class())._label();
  248. return $1;
  249. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLCommand)})},
  250. args: [],
  251. source: "label\x0a\x09^ self class label",
  252. messageSends: ["label", "class"],
  253. referencedClasses: []
  254. }),
  255. smalltalk.HLCommand);
  256. smalltalk.addMethod(
  257. "_registerOn_",
  258. smalltalk.method({
  259. selector: "registerOn:",
  260. category: 'registration',
  261. fn: function (aBinding){
  262. var self=this;
  263. return smalltalk.withContext(function($ctx1) { var $1;
  264. $1=_st(aBinding)._add_(_st(self)._asBinding());
  265. return $1;
  266. }, function($ctx1) {$ctx1.fill(self,"registerOn:",{aBinding:aBinding},smalltalk.HLCommand)})},
  267. args: ["aBinding"],
  268. source: "registerOn: aBinding\x0a\x09^ aBinding add: self asBinding",
  269. messageSends: ["add:", "asBinding"],
  270. referencedClasses: []
  271. }),
  272. smalltalk.HLCommand);
  273. smalltalk.addMethod(
  274. "_documentation",
  275. smalltalk.method({
  276. selector: "documentation",
  277. category: 'accessing',
  278. fn: function (){
  279. var self=this;
  280. return smalltalk.withContext(function($ctx1) { return "";
  281. }, function($ctx1) {$ctx1.fill(self,"documentation",{}, smalltalk.HLCommand.klass)})},
  282. args: [],
  283. source: "documentation\x0a\x09^ ''",
  284. messageSends: [],
  285. referencedClasses: []
  286. }),
  287. smalltalk.HLCommand.klass);
  288. smalltalk.addMethod(
  289. "_isConcrete",
  290. smalltalk.method({
  291. selector: "isConcrete",
  292. category: 'testing',
  293. fn: function (){
  294. var self=this;
  295. return smalltalk.withContext(function($ctx1) { var $1;
  296. $1=_st(_st(self)._key())._notNil();
  297. return $1;
  298. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.HLCommand.klass)})},
  299. args: [],
  300. source: "isConcrete\x0a\x09^ self key notNil",
  301. messageSends: ["notNil", "key"],
  302. referencedClasses: []
  303. }),
  304. smalltalk.HLCommand.klass);
  305. smalltalk.addMethod(
  306. "_key",
  307. smalltalk.method({
  308. selector: "key",
  309. category: 'accessing',
  310. fn: function (){
  311. var self=this;
  312. return smalltalk.withContext(function($ctx1) { return nil;
  313. }, function($ctx1) {$ctx1.fill(self,"key",{}, smalltalk.HLCommand.klass)})},
  314. args: [],
  315. source: "key\x0a\x09^ nil",
  316. messageSends: [],
  317. referencedClasses: []
  318. }),
  319. smalltalk.HLCommand.klass);
  320. smalltalk.addMethod(
  321. "_label",
  322. smalltalk.method({
  323. selector: "label",
  324. category: 'accessing',
  325. fn: function (){
  326. var self=this;
  327. return smalltalk.withContext(function($ctx1) { return "";
  328. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLCommand.klass)})},
  329. args: [],
  330. source: "label\x0a\x09^ ''",
  331. messageSends: [],
  332. referencedClasses: []
  333. }),
  334. smalltalk.HLCommand.klass);
  335. smalltalk.addMethod(
  336. "_registerConcreteClassesOn_",
  337. smalltalk.method({
  338. selector: "registerConcreteClassesOn:",
  339. category: 'registration',
  340. fn: function (aBinding){
  341. var self=this;
  342. var newBinding;
  343. return smalltalk.withContext(function($ctx1) { var $1;
  344. $1=_st(self)._isConcrete();
  345. if(smalltalk.assert($1)){
  346. newBinding=_st(self)._registerOn_(aBinding);
  347. newBinding;
  348. } else {
  349. newBinding=aBinding;
  350. newBinding;
  351. };
  352. _st(_st(self)._subclasses())._do_((function(each){
  353. return smalltalk.withContext(function($ctx2) { return _st(each)._registerConcreteClassesOn_(newBinding);
  354. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  355. return self}, function($ctx1) {$ctx1.fill(self,"registerConcreteClassesOn:",{aBinding:aBinding,newBinding:newBinding},smalltalk.HLCommand.klass)})},
  356. args: ["aBinding"],
  357. source: "registerConcreteClassesOn: aBinding\x0a\x09| newBinding |\x0a\x09\x0a\x09self isConcrete\x0a\x09\x09ifTrue: [ newBinding := self registerOn: aBinding ]\x0a\x09\x09ifFalse: [ newBinding := aBinding ].\x0a\x09\x09\x0a\x09self subclasses do: [ :each | each registerConcreteClassesOn: newBinding ]",
  358. messageSends: ["ifTrue:ifFalse:", "registerOn:", "isConcrete", "do:", "registerConcreteClassesOn:", "subclasses"],
  359. referencedClasses: []
  360. }),
  361. smalltalk.HLCommand.klass);
  362. smalltalk.addMethod(
  363. "_registerOn_",
  364. smalltalk.method({
  365. selector: "registerOn:",
  366. category: 'registration',
  367. fn: function (aBinding){
  368. var self=this;
  369. return smalltalk.withContext(function($ctx1) { var $1;
  370. $1=_st(_st(self)._new())._registerOn_(aBinding);
  371. return $1;
  372. }, function($ctx1) {$ctx1.fill(self,"registerOn:",{aBinding:aBinding},smalltalk.HLCommand.klass)})},
  373. args: ["aBinding"],
  374. source: "registerOn: aBinding\x0a\x09^ self new registerOn: aBinding",
  375. messageSends: ["registerOn:", "new"],
  376. referencedClasses: []
  377. }),
  378. smalltalk.HLCommand.klass);
  379. smalltalk.addClass('HLCloseTabCommand', smalltalk.HLCommand, [], 'Helios-Commands-Core');
  380. smalltalk.addMethod(
  381. "_execute",
  382. smalltalk.method({
  383. selector: "execute",
  384. category: 'executing',
  385. fn: function (){
  386. var self=this;
  387. return smalltalk.withContext(function($ctx1) { _st(_st((smalltalk.HLManager || HLManager))._current())._removeActiveTab();
  388. return self}, function($ctx1) {$ctx1.fill(self,"execute",{}, smalltalk.HLCloseTabCommand)})},
  389. args: [],
  390. source: "execute\x0a\x09HLManager current removeActiveTab",
  391. messageSends: ["removeActiveTab", "current"],
  392. referencedClasses: ["HLManager"]
  393. }),
  394. smalltalk.HLCloseTabCommand);
  395. smalltalk.addMethod(
  396. "_key",
  397. smalltalk.method({
  398. selector: "key",
  399. category: 'accessing',
  400. fn: function (){
  401. var self=this;
  402. return smalltalk.withContext(function($ctx1) { return (87);
  403. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCloseTabCommand.klass)})},
  404. args: [],
  405. source: "key\x0a\x09^ 87",
  406. messageSends: [],
  407. referencedClasses: []
  408. }),
  409. smalltalk.HLCloseTabCommand.klass);
  410. smalltalk.addMethod(
  411. "_label",
  412. smalltalk.method({
  413. selector: "label",
  414. category: 'accessing',
  415. fn: function (){
  416. var self=this;
  417. return smalltalk.withContext(function($ctx1) { return "Close tab";
  418. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLCloseTabCommand.klass)})},
  419. args: [],
  420. source: "label\x0a\x09^ 'Close tab'",
  421. messageSends: [],
  422. referencedClasses: []
  423. }),
  424. smalltalk.HLCloseTabCommand.klass);
  425. smalltalk.addClass('HLModelCommand', smalltalk.HLCommand, ['model'], 'Helios-Commands-Core');
  426. smalltalk.addMethod(
  427. "_model",
  428. smalltalk.method({
  429. selector: "model",
  430. category: 'accessing',
  431. fn: function (){
  432. var self=this;
  433. return smalltalk.withContext(function($ctx1) { var $1;
  434. $1=self["@model"];
  435. return $1;
  436. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLModelCommand)})},
  437. args: [],
  438. source: "model\x0a\x09^ model",
  439. messageSends: [],
  440. referencedClasses: []
  441. }),
  442. smalltalk.HLModelCommand);
  443. smalltalk.addMethod(
  444. "_model_",
  445. smalltalk.method({
  446. selector: "model:",
  447. category: 'accessing',
  448. fn: function (aModel){
  449. var self=this;
  450. return smalltalk.withContext(function($ctx1) { self["@model"]=aModel;
  451. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLModelCommand)})},
  452. args: ["aModel"],
  453. source: "model: aModel\x0a\x09model := aModel",
  454. messageSends: [],
  455. referencedClasses: []
  456. }),
  457. smalltalk.HLModelCommand);
  458. smalltalk.addMethod(
  459. "_for_",
  460. smalltalk.method({
  461. selector: "for:",
  462. category: 'instance creation',
  463. fn: function (aModel){
  464. var self=this;
  465. return smalltalk.withContext(function($ctx1) { var $1;
  466. $1=_st(self)._new();
  467. return $1;
  468. }, function($ctx1) {$ctx1.fill(self,"for:",{aModel:aModel},smalltalk.HLModelCommand.klass)})},
  469. args: ["aModel"],
  470. source: "for: aModel\x0a\x09^ self new",
  471. messageSends: ["new"],
  472. referencedClasses: []
  473. }),
  474. smalltalk.HLModelCommand.klass);
  475. smalltalk.addMethod(
  476. "_registerConcreteClassesOn_for_",
  477. smalltalk.method({
  478. selector: "registerConcreteClassesOn:for:",
  479. category: 'registration',
  480. fn: function (aBinding,aModel){
  481. var self=this;
  482. var newBinding;
  483. return smalltalk.withContext(function($ctx1) { var $1;
  484. $1=_st(self)._isConcrete();
  485. if(smalltalk.assert($1)){
  486. newBinding=_st(self)._registerOn_for_(aBinding,aModel);
  487. newBinding;
  488. } else {
  489. newBinding=aBinding;
  490. newBinding;
  491. };
  492. _st(_st(self)._subclasses())._do_((function(each){
  493. return smalltalk.withContext(function($ctx2) { return _st(each)._registerConcreteClassesOn_for_(newBinding,aModel);
  494. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  495. return self}, function($ctx1) {$ctx1.fill(self,"registerConcreteClassesOn:for:",{aBinding:aBinding,aModel:aModel,newBinding:newBinding},smalltalk.HLModelCommand.klass)})},
  496. args: ["aBinding", "aModel"],
  497. source: "registerConcreteClassesOn: aBinding for: aModel\x0a\x09| newBinding |\x0a\x09\x0a\x09self isConcrete\x0a\x09\x09ifTrue: [ newBinding := self registerOn: aBinding for: aModel ]\x0a\x09\x09ifFalse: [ newBinding := aBinding ].\x0a\x09\x09\x0a\x09self subclasses do: [ :each |\x0a\x09\x09each registerConcreteClassesOn: newBinding for: aModel ]",
  498. messageSends: ["ifTrue:ifFalse:", "registerOn:for:", "isConcrete", "do:", "registerConcreteClassesOn:for:", "subclasses"],
  499. referencedClasses: []
  500. }),
  501. smalltalk.HLModelCommand.klass);
  502. smalltalk.addMethod(
  503. "_registerOn_for_",
  504. smalltalk.method({
  505. selector: "registerOn:for:",
  506. category: 'registration',
  507. fn: function (aBinding,aModel){
  508. var self=this;
  509. return smalltalk.withContext(function($ctx1) { var $1;
  510. $1=_st(_st(self)._for_(aModel))._registerOn_(aBinding);
  511. return $1;
  512. }, function($ctx1) {$ctx1.fill(self,"registerOn:for:",{aBinding:aBinding,aModel:aModel},smalltalk.HLModelCommand.klass)})},
  513. args: ["aBinding", "aModel"],
  514. source: "registerOn: aBinding for: aModel\x0a\x09^ (self for: aModel) registerOn: aBinding",
  515. messageSends: ["registerOn:", "for:"],
  516. referencedClasses: []
  517. }),
  518. smalltalk.HLModelCommand.klass);
  519. smalltalk.addClass('HLOpenCommand', smalltalk.HLCommand, [], 'Helios-Commands-Core');
  520. smalltalk.addMethod(
  521. "_key",
  522. smalltalk.method({
  523. selector: "key",
  524. category: 'accessing',
  525. fn: function (){
  526. var self=this;
  527. return smalltalk.withContext(function($ctx1) { return (79);
  528. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLOpenCommand.klass)})},
  529. args: [],
  530. source: "key\x0a\x09^ 79",
  531. messageSends: [],
  532. referencedClasses: []
  533. }),
  534. smalltalk.HLOpenCommand.klass);
  535. smalltalk.addMethod(
  536. "_label",
  537. smalltalk.method({
  538. selector: "label",
  539. category: 'accessing',
  540. fn: function (){
  541. var self=this;
  542. return smalltalk.withContext(function($ctx1) { return "Open";
  543. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLOpenCommand.klass)})},
  544. args: [],
  545. source: "label\x0a\x09^ 'Open'",
  546. messageSends: [],
  547. referencedClasses: []
  548. }),
  549. smalltalk.HLOpenCommand.klass);
  550. smalltalk.addClass('HLOpenBrowserCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands-Core');
  551. smalltalk.addMethod(
  552. "_execute",
  553. smalltalk.method({
  554. selector: "execute",
  555. category: 'executing',
  556. fn: function (){
  557. var self=this;
  558. return smalltalk.withContext(function($ctx1) { var $1;
  559. $1=_st((smalltalk.HLBrowser || HLBrowser))._openAsTab();
  560. return $1;
  561. }, function($ctx1) {$ctx1.fill(self,"execute",{}, smalltalk.HLOpenBrowserCommand)})},
  562. args: [],
  563. source: "execute\x0a\x09^ HLBrowser openAsTab",
  564. messageSends: ["openAsTab"],
  565. referencedClasses: ["HLBrowser"]
  566. }),
  567. smalltalk.HLOpenBrowserCommand);
  568. smalltalk.addMethod(
  569. "_key",
  570. smalltalk.method({
  571. selector: "key",
  572. category: 'accessing',
  573. fn: function (){
  574. var self=this;
  575. return smalltalk.withContext(function($ctx1) { return (66);
  576. }, function($ctx1) {$ctx1.fill(self,"key",{}, smalltalk.HLOpenBrowserCommand.klass)})},
  577. args: [],
  578. source: "key\x0a\x09^ 66",
  579. messageSends: [],
  580. referencedClasses: []
  581. }),
  582. smalltalk.HLOpenBrowserCommand.klass);
  583. smalltalk.addMethod(
  584. "_label",
  585. smalltalk.method({
  586. selector: "label",
  587. category: 'accessing',
  588. fn: function (){
  589. var self=this;
  590. return smalltalk.withContext(function($ctx1) { return "Browser";
  591. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLOpenBrowserCommand.klass)})},
  592. args: [],
  593. source: "label\x0a\x09^ 'Browser'",
  594. messageSends: [],
  595. referencedClasses: []
  596. }),
  597. smalltalk.HLOpenBrowserCommand.klass);
  598. smalltalk.addClass('HLOpenTranscriptCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands-Core');
  599. smalltalk.addMethod(
  600. "_execute",
  601. smalltalk.method({
  602. selector: "execute",
  603. category: 'executing',
  604. fn: function (){
  605. var self=this;
  606. return smalltalk.withContext(function($ctx1) { var $1;
  607. $1=_st((smalltalk.HLTranscript || HLTranscript))._openAsTab();
  608. return $1;
  609. }, function($ctx1) {$ctx1.fill(self,"execute",{}, smalltalk.HLOpenTranscriptCommand)})},
  610. args: [],
  611. source: "execute\x0a\x09^ HLTranscript openAsTab",
  612. messageSends: ["openAsTab"],
  613. referencedClasses: ["HLTranscript"]
  614. }),
  615. smalltalk.HLOpenTranscriptCommand);
  616. smalltalk.addMethod(
  617. "_key",
  618. smalltalk.method({
  619. selector: "key",
  620. category: 'accessing',
  621. fn: function (){
  622. var self=this;
  623. return smalltalk.withContext(function($ctx1) { return (84);
  624. }, function($ctx1) {$ctx1.fill(self,"key",{}, smalltalk.HLOpenTranscriptCommand.klass)})},
  625. args: [],
  626. source: "key\x0a\x09^ 84",
  627. messageSends: [],
  628. referencedClasses: []
  629. }),
  630. smalltalk.HLOpenTranscriptCommand.klass);
  631. smalltalk.addMethod(
  632. "_label",
  633. smalltalk.method({
  634. selector: "label",
  635. category: 'accessing',
  636. fn: function (){
  637. var self=this;
  638. return smalltalk.withContext(function($ctx1) { return "Transcript";
  639. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLOpenTranscriptCommand.klass)})},
  640. args: [],
  641. source: "label\x0a\x09^ 'Transcript'",
  642. messageSends: [],
  643. referencedClasses: []
  644. }),
  645. smalltalk.HLOpenTranscriptCommand.klass);
  646. smalltalk.addClass('HLOpenWorkspaceCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands-Core');
  647. smalltalk.addMethod(
  648. "_execute",
  649. smalltalk.method({
  650. selector: "execute",
  651. category: 'executing',
  652. fn: function (){
  653. var self=this;
  654. return smalltalk.withContext(function($ctx1) { var $1;
  655. $1=_st((smalltalk.HLCodeWidget || HLCodeWidget))._openAsTab();
  656. return $1;
  657. }, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLOpenWorkspaceCommand)})},
  658. args: [],
  659. source: "execute\x0a\x09^ HLCodeWidget openAsTab",
  660. messageSends: ["openAsTab"],
  661. referencedClasses: ["HLCodeWidget"]
  662. }),
  663. smalltalk.HLOpenWorkspaceCommand);
  664. smalltalk.addMethod(
  665. "_key",
  666. smalltalk.method({
  667. selector: "key",
  668. category: 'accessing',
  669. fn: function (){
  670. var self=this;
  671. return smalltalk.withContext(function($ctx1) { return (87);
  672. }, function($ctx1) {$ctx1.fill(self,"key",{}, smalltalk.HLOpenWorkspaceCommand.klass)})},
  673. args: [],
  674. source: "key\x0a\x09^ 87",
  675. messageSends: [],
  676. referencedClasses: []
  677. }),
  678. smalltalk.HLOpenWorkspaceCommand.klass);
  679. smalltalk.addMethod(
  680. "_label",
  681. smalltalk.method({
  682. selector: "label",
  683. category: 'accessing',
  684. fn: function (){
  685. var self=this;
  686. return smalltalk.withContext(function($ctx1) { return "Workspace";
  687. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLOpenWorkspaceCommand.klass)})},
  688. args: [],
  689. source: "label\x0a\x09^ 'Workspace'",
  690. messageSends: [],
  691. referencedClasses: []
  692. }),
  693. smalltalk.HLOpenWorkspaceCommand.klass);
  694. smalltalk.addClass('HLViewCommand', smalltalk.HLCommand, [], 'Helios-Commands-Core');
  695. smalltalk.addMethod(
  696. "_label",
  697. smalltalk.method({
  698. selector: "label",
  699. category: 'accessing',
  700. fn: function (){
  701. var self=this;
  702. return smalltalk.withContext(function($ctx1) { return "View";
  703. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLViewCommand.klass)})},
  704. args: [],
  705. source: "label\x0a\x09^ 'View'",
  706. messageSends: [],
  707. referencedClasses: []
  708. }),
  709. smalltalk.HLViewCommand.klass);