Helios-Commands-Core.js 20 KB

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