Helios-Commands.deploy.js 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000
  1. define("amber/Helios-Commands", ["amber_vm/smalltalk","amber_vm/nil","amber_vm/_st"], function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Helios-Commands');
  3. smalltalk.addClass('HLCommand', smalltalk.Object, [], 'Helios-Commands');
  4. smalltalk.addMethod(
  5. "_asActionBinding",
  6. smalltalk.method({
  7. selector: "asActionBinding",
  8. fn: function (){
  9. var self=this;
  10. return smalltalk.withContext(function($ctx1) {
  11. var $1;
  12. $1=_st(_st((smalltalk.HLBindingAction || HLBindingAction))._on_labelled_(_st(self)._key(),_st(self)._label()))._callback_((function(){
  13. return smalltalk.withContext(function($ctx2) {
  14. return _st(self)._execute();
  15. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
  16. return $1;
  17. }, function($ctx1) {$ctx1.fill(self,"asActionBinding",{},smalltalk.HLCommand)})},
  18. messageSends: ["callback:", "execute", "on:labelled:", "key", "label"]}),
  19. smalltalk.HLCommand);
  20. smalltalk.addMethod(
  21. "_asBinding",
  22. smalltalk.method({
  23. selector: "asBinding",
  24. fn: function (){
  25. var self=this;
  26. return smalltalk.withContext(function($ctx1) {
  27. var $2,$1;
  28. $2=_st(self)._isBindingGroup();
  29. if(smalltalk.assert($2)){
  30. $1=_st(self)._asGroupBinding();
  31. } else {
  32. $1=_st(self)._asActionBinding();
  33. };
  34. return $1;
  35. }, function($ctx1) {$ctx1.fill(self,"asBinding",{},smalltalk.HLCommand)})},
  36. messageSends: ["ifTrue:ifFalse:", "asGroupBinding", "asActionBinding", "isBindingGroup"]}),
  37. smalltalk.HLCommand);
  38. smalltalk.addMethod(
  39. "_asGroupBinding",
  40. smalltalk.method({
  41. selector: "asGroupBinding",
  42. fn: function (){
  43. var self=this;
  44. return smalltalk.withContext(function($ctx1) {
  45. var $1;
  46. $1=_st((smalltalk.HLBindingGroup || HLBindingGroup))._on_labelled_(_st(self)._key(),_st(self)._label());
  47. return $1;
  48. }, function($ctx1) {$ctx1.fill(self,"asGroupBinding",{},smalltalk.HLCommand)})},
  49. messageSends: ["on:labelled:", "key", "label"]}),
  50. smalltalk.HLCommand);
  51. smalltalk.addMethod(
  52. "_documentation",
  53. smalltalk.method({
  54. selector: "documentation",
  55. fn: function (){
  56. var self=this;
  57. return smalltalk.withContext(function($ctx1) {
  58. var $1;
  59. $1=_st(_st(self)._class())._documentation();
  60. return $1;
  61. }, function($ctx1) {$ctx1.fill(self,"documentation",{}, smalltalk.HLCommand)})},
  62. messageSends: ["documentation", "class"]}),
  63. smalltalk.HLCommand);
  64. smalltalk.addMethod(
  65. "_execute",
  66. smalltalk.method({
  67. selector: "execute",
  68. fn: function (){
  69. var self=this;
  70. return smalltalk.withContext(function($ctx1) {
  71. return self}, function($ctx1) {$ctx1.fill(self,"execute",{}, smalltalk.HLCommand)})},
  72. messageSends: []}),
  73. smalltalk.HLCommand);
  74. smalltalk.addMethod(
  75. "_isBindingGroup",
  76. smalltalk.method({
  77. selector: "isBindingGroup",
  78. fn: function (){
  79. var self=this;
  80. return smalltalk.withContext(function($ctx1) {
  81. var $1;
  82. $1=_st(_st(_st(_st(self)._class())._methodDictionary())._includesKey_("execute"))._not();
  83. return $1;
  84. }, function($ctx1) {$ctx1.fill(self,"isBindingGroup",{},smalltalk.HLCommand)})},
  85. messageSends: ["not", "includesKey:", "methodDictionary", "class"]}),
  86. smalltalk.HLCommand);
  87. smalltalk.addMethod(
  88. "_key",
  89. smalltalk.method({
  90. selector: "key",
  91. fn: function (){
  92. var self=this;
  93. return smalltalk.withContext(function($ctx1) {
  94. var $1;
  95. $1=_st(_st(self)._class())._key();
  96. return $1;
  97. }, function($ctx1) {$ctx1.fill(self,"key",{}, smalltalk.HLCommand)})},
  98. messageSends: ["key", "class"]}),
  99. smalltalk.HLCommand);
  100. smalltalk.addMethod(
  101. "_label",
  102. smalltalk.method({
  103. selector: "label",
  104. fn: function (){
  105. var self=this;
  106. return smalltalk.withContext(function($ctx1) {
  107. var $1;
  108. $1=_st(_st(self)._class())._label();
  109. return $1;
  110. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLCommand)})},
  111. messageSends: ["label", "class"]}),
  112. smalltalk.HLCommand);
  113. smalltalk.addMethod(
  114. "_registerOn_",
  115. smalltalk.method({
  116. selector: "registerOn:",
  117. fn: function (aBinding){
  118. var self=this;
  119. return smalltalk.withContext(function($ctx1) {
  120. var $1;
  121. $1=_st(aBinding)._add_(_st(self)._asBinding());
  122. return $1;
  123. }, function($ctx1) {$ctx1.fill(self,"registerOn:",{aBinding:aBinding},smalltalk.HLCommand)})},
  124. messageSends: ["add:", "asBinding"]}),
  125. smalltalk.HLCommand);
  126. smalltalk.addMethod(
  127. "_concreteSubclasses",
  128. smalltalk.method({
  129. selector: "concreteSubclasses",
  130. fn: function (){
  131. var self=this;
  132. return smalltalk.withContext(function($ctx1) {
  133. var $1;
  134. $1=_st(_st(self)._subclasses())._select_((function(each){
  135. return smalltalk.withContext(function($ctx2) {
  136. return _st(each)._isConcrete();
  137. }, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
  138. return $1;
  139. }, function($ctx1) {$ctx1.fill(self,"concreteSubclasses",{},smalltalk.HLCommand.klass)})},
  140. messageSends: ["select:", "isConcrete", "subclasses"]}),
  141. smalltalk.HLCommand.klass);
  142. smalltalk.addMethod(
  143. "_documentation",
  144. smalltalk.method({
  145. selector: "documentation",
  146. fn: function (){
  147. var self=this;
  148. return smalltalk.withContext(function($ctx1) {
  149. return "";
  150. }, function($ctx1) {$ctx1.fill(self,"documentation",{}, smalltalk.HLCommand.klass)})},
  151. messageSends: []}),
  152. smalltalk.HLCommand.klass);
  153. smalltalk.addMethod(
  154. "_isConcrete",
  155. smalltalk.method({
  156. selector: "isConcrete",
  157. fn: function (){
  158. var self=this;
  159. return smalltalk.withContext(function($ctx1) {
  160. var $1;
  161. $1=_st(_st(self)._key())._notNil();
  162. return $1;
  163. }, function($ctx1) {$ctx1.fill(self,"isConcrete",{},smalltalk.HLCommand.klass)})},
  164. messageSends: ["notNil", "key"]}),
  165. smalltalk.HLCommand.klass);
  166. smalltalk.addMethod(
  167. "_key",
  168. smalltalk.method({
  169. selector: "key",
  170. fn: function (){
  171. var self=this;
  172. return smalltalk.withContext(function($ctx1) {
  173. return nil;
  174. }, function($ctx1) {$ctx1.fill(self,"key",{}, smalltalk.HLCommand.klass)})},
  175. messageSends: []}),
  176. smalltalk.HLCommand.klass);
  177. smalltalk.addMethod(
  178. "_label",
  179. smalltalk.method({
  180. selector: "label",
  181. fn: function (){
  182. var self=this;
  183. return smalltalk.withContext(function($ctx1) {
  184. return "";
  185. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLCommand.klass)})},
  186. messageSends: []}),
  187. smalltalk.HLCommand.klass);
  188. smalltalk.addMethod(
  189. "_registerConcreteClassesOn_",
  190. smalltalk.method({
  191. selector: "registerConcreteClassesOn:",
  192. fn: function (aBinding){
  193. var self=this;
  194. return smalltalk.withContext(function($ctx1) {
  195. var $1;
  196. _st(_st(self)._concreteSubclasses())._do_((function(each){
  197. var binding;
  198. return smalltalk.withContext(function($ctx2) {
  199. binding=_st(each)._registerOn_(aBinding);
  200. binding;
  201. $1=_st(binding)._isBindingGroup();
  202. if(smalltalk.assert($1)){
  203. return _st(each)._registerConcreteClassesOn_(binding);
  204. };
  205. }, function($ctx2) {$ctx2.fillBlock({each:each,binding:binding},$ctx1)})}));
  206. return self}, function($ctx1) {$ctx1.fill(self,"registerConcreteClassesOn:",{aBinding:aBinding},smalltalk.HLCommand.klass)})},
  207. messageSends: ["do:", "registerOn:", "ifTrue:", "registerConcreteClassesOn:", "isBindingGroup", "concreteSubclasses"]}),
  208. smalltalk.HLCommand.klass);
  209. smalltalk.addMethod(
  210. "_registerOn_",
  211. smalltalk.method({
  212. selector: "registerOn:",
  213. fn: function (aBinding){
  214. var self=this;
  215. return smalltalk.withContext(function($ctx1) {
  216. var $1;
  217. $1=_st(_st(self)._new())._registerOn_(aBinding);
  218. return $1;
  219. }, function($ctx1) {$ctx1.fill(self,"registerOn:",{aBinding:aBinding},smalltalk.HLCommand.klass)})},
  220. messageSends: ["registerOn:", "new"]}),
  221. smalltalk.HLCommand.klass);
  222. smalltalk.addClass('HLCloseTabCommand', smalltalk.HLCommand, [], 'Helios-Commands');
  223. smalltalk.addMethod(
  224. "_execute",
  225. smalltalk.method({
  226. selector: "execute",
  227. fn: function (){
  228. var self=this;
  229. return smalltalk.withContext(function($ctx1) {
  230. _st(_st((smalltalk.HLManager || HLManager))._current())._removeActiveTab();
  231. return self}, function($ctx1) {$ctx1.fill(self,"execute",{}, smalltalk.HLCloseTabCommand)})},
  232. messageSends: ["removeActiveTab", "current"]}),
  233. smalltalk.HLCloseTabCommand);
  234. smalltalk.addMethod(
  235. "_key",
  236. smalltalk.method({
  237. selector: "key",
  238. fn: function (){
  239. var self=this;
  240. return smalltalk.withContext(function($ctx1) {
  241. return (87);
  242. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCloseTabCommand.klass)})},
  243. messageSends: []}),
  244. smalltalk.HLCloseTabCommand.klass);
  245. smalltalk.addMethod(
  246. "_label",
  247. smalltalk.method({
  248. selector: "label",
  249. fn: function (){
  250. var self=this;
  251. return smalltalk.withContext(function($ctx1) {
  252. return "Close tab";
  253. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLCloseTabCommand.klass)})},
  254. messageSends: []}),
  255. smalltalk.HLCloseTabCommand.klass);
  256. smalltalk.addClass('HLModelCommand', smalltalk.HLCommand, ['model'], 'Helios-Commands');
  257. smalltalk.addMethod(
  258. "_model",
  259. smalltalk.method({
  260. selector: "model",
  261. fn: function (){
  262. var self=this;
  263. return smalltalk.withContext(function($ctx1) {
  264. var $1;
  265. $1=self["@model"];
  266. return $1;
  267. }, function($ctx1) {$ctx1.fill(self,"model",{},smalltalk.HLModelCommand)})},
  268. messageSends: []}),
  269. smalltalk.HLModelCommand);
  270. smalltalk.addMethod(
  271. "_model_",
  272. smalltalk.method({
  273. selector: "model:",
  274. fn: function (aModel){
  275. var self=this;
  276. return smalltalk.withContext(function($ctx1) {
  277. self["@model"]=aModel;
  278. return self}, function($ctx1) {$ctx1.fill(self,"model:",{aModel:aModel},smalltalk.HLModelCommand)})},
  279. messageSends: []}),
  280. smalltalk.HLModelCommand);
  281. smalltalk.addMethod(
  282. "_for_",
  283. smalltalk.method({
  284. selector: "for:",
  285. fn: function (aModel){
  286. var self=this;
  287. return smalltalk.withContext(function($ctx1) {
  288. var $1;
  289. $1=_st(self)._new();
  290. return $1;
  291. }, function($ctx1) {$ctx1.fill(self,"for:",{aModel:aModel},smalltalk.HLModelCommand.klass)})},
  292. messageSends: ["new"]}),
  293. smalltalk.HLModelCommand.klass);
  294. smalltalk.addMethod(
  295. "_registerConcreteClassesOn_for_",
  296. smalltalk.method({
  297. selector: "registerConcreteClassesOn:for:",
  298. fn: function (aBinding,aModel){
  299. var self=this;
  300. return smalltalk.withContext(function($ctx1) {
  301. var $1;
  302. _st(_st(self)._concreteSubclasses())._do_((function(each){
  303. var binding;
  304. return smalltalk.withContext(function($ctx2) {
  305. binding=_st(each)._registerOn_for_(aBinding,aModel);
  306. binding;
  307. $1=_st(binding)._isBindingGroup();
  308. if(smalltalk.assert($1)){
  309. return _st(each)._registerConcreteClassesOn_for_(binding,aModel);
  310. };
  311. }, function($ctx2) {$ctx2.fillBlock({each:each,binding:binding},$ctx1)})}));
  312. return self}, function($ctx1) {$ctx1.fill(self,"registerConcreteClassesOn:for:",{aBinding:aBinding,aModel:aModel},smalltalk.HLModelCommand.klass)})},
  313. messageSends: ["do:", "registerOn:for:", "ifTrue:", "registerConcreteClassesOn:for:", "isBindingGroup", "concreteSubclasses"]}),
  314. smalltalk.HLModelCommand.klass);
  315. smalltalk.addMethod(
  316. "_registerOn_for_",
  317. smalltalk.method({
  318. selector: "registerOn:for:",
  319. fn: function (aBinding,aModel){
  320. var self=this;
  321. return smalltalk.withContext(function($ctx1) {
  322. var $1;
  323. $1=_st(_st(self)._for_(aModel))._registerOn_(aBinding);
  324. return $1;
  325. }, function($ctx1) {$ctx1.fill(self,"registerOn:for:",{aBinding:aBinding,aModel:aModel},smalltalk.HLModelCommand.klass)})},
  326. messageSends: ["registerOn:", "for:"]}),
  327. smalltalk.HLModelCommand.klass);
  328. smalltalk.addClass('HLBrowserCommand', smalltalk.HLModelCommand, [], 'Helios-Commands');
  329. smalltalk.addMethod(
  330. "_for_",
  331. smalltalk.method({
  332. selector: "for:",
  333. fn: function (aBrowserModel){
  334. var self=this;
  335. return smalltalk.withContext(function($ctx1) {
  336. var $2,$3,$1;
  337. $2=_st(self)._new();
  338. _st($2)._model_(aBrowserModel);
  339. $3=_st($2)._yourself();
  340. $1=$3;
  341. return $1;
  342. }, function($ctx1) {$ctx1.fill(self,"for:",{aBrowserModel:aBrowserModel},smalltalk.HLBrowserCommand.klass)})},
  343. messageSends: ["model:", "new", "yourself"]}),
  344. smalltalk.HLBrowserCommand.klass);
  345. smalltalk.addClass('HLGoToCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands');
  346. smalltalk.addMethod(
  347. "_key",
  348. smalltalk.method({
  349. selector: "key",
  350. fn: function (){
  351. var self=this;
  352. return smalltalk.withContext(function($ctx1) {
  353. return (71);
  354. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToCommand.klass)})},
  355. messageSends: []}),
  356. smalltalk.HLGoToCommand.klass);
  357. smalltalk.addMethod(
  358. "_label",
  359. smalltalk.method({
  360. selector: "label",
  361. fn: function (){
  362. var self=this;
  363. return smalltalk.withContext(function($ctx1) {
  364. return "Go to";
  365. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToCommand.klass)})},
  366. messageSends: []}),
  367. smalltalk.HLGoToCommand.klass);
  368. smalltalk.addClass('HLGoToClassesCommand', smalltalk.HLGoToCommand, [], 'Helios-Commands');
  369. smalltalk.addMethod(
  370. "_execute",
  371. smalltalk.method({
  372. selector: "execute",
  373. fn: function (){
  374. var self=this;
  375. return smalltalk.withContext(function($ctx1) {
  376. _st(_st(self)._model())._focusOnClasses();
  377. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToClassesCommand)})},
  378. messageSends: ["focusOnClasses", "model"]}),
  379. smalltalk.HLGoToClassesCommand);
  380. smalltalk.addMethod(
  381. "_key",
  382. smalltalk.method({
  383. selector: "key",
  384. fn: function (){
  385. var self=this;
  386. return smalltalk.withContext(function($ctx1) {
  387. return (67);
  388. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToClassesCommand.klass)})},
  389. messageSends: []}),
  390. smalltalk.HLGoToClassesCommand.klass);
  391. smalltalk.addMethod(
  392. "_label",
  393. smalltalk.method({
  394. selector: "label",
  395. fn: function (){
  396. var self=this;
  397. return smalltalk.withContext(function($ctx1) {
  398. return "Classes";
  399. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToClassesCommand.klass)})},
  400. messageSends: []}),
  401. smalltalk.HLGoToClassesCommand.klass);
  402. smalltalk.addClass('HLGoToMethodsCommand', smalltalk.HLGoToCommand, [], 'Helios-Commands');
  403. smalltalk.addMethod(
  404. "_execute",
  405. smalltalk.method({
  406. selector: "execute",
  407. fn: function (){
  408. var self=this;
  409. return smalltalk.withContext(function($ctx1) {
  410. _st(_st(self)._model())._focusOnMethods();
  411. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToMethodsCommand)})},
  412. messageSends: ["focusOnMethods", "model"]}),
  413. smalltalk.HLGoToMethodsCommand);
  414. smalltalk.addMethod(
  415. "_key",
  416. smalltalk.method({
  417. selector: "key",
  418. fn: function (){
  419. var self=this;
  420. return smalltalk.withContext(function($ctx1) {
  421. return (77);
  422. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToMethodsCommand.klass)})},
  423. messageSends: []}),
  424. smalltalk.HLGoToMethodsCommand.klass);
  425. smalltalk.addMethod(
  426. "_label",
  427. smalltalk.method({
  428. selector: "label",
  429. fn: function (){
  430. var self=this;
  431. return smalltalk.withContext(function($ctx1) {
  432. return "Methods";
  433. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToMethodsCommand.klass)})},
  434. messageSends: []}),
  435. smalltalk.HLGoToMethodsCommand.klass);
  436. smalltalk.addClass('HLGoToPackagesCommand', smalltalk.HLGoToCommand, [], 'Helios-Commands');
  437. smalltalk.addMethod(
  438. "_execute",
  439. smalltalk.method({
  440. selector: "execute",
  441. fn: function (){
  442. var self=this;
  443. return smalltalk.withContext(function($ctx1) {
  444. _st(_st(self)._model())._focusOnPackages();
  445. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToPackagesCommand)})},
  446. messageSends: ["focusOnPackages", "model"]}),
  447. smalltalk.HLGoToPackagesCommand);
  448. smalltalk.addMethod(
  449. "_key",
  450. smalltalk.method({
  451. selector: "key",
  452. fn: function (){
  453. var self=this;
  454. return smalltalk.withContext(function($ctx1) {
  455. return (80);
  456. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToPackagesCommand.klass)})},
  457. messageSends: []}),
  458. smalltalk.HLGoToPackagesCommand.klass);
  459. smalltalk.addMethod(
  460. "_label",
  461. smalltalk.method({
  462. selector: "label",
  463. fn: function (){
  464. var self=this;
  465. return smalltalk.withContext(function($ctx1) {
  466. return "Packages";
  467. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToPackagesCommand.klass)})},
  468. messageSends: []}),
  469. smalltalk.HLGoToPackagesCommand.klass);
  470. smalltalk.addClass('HLGoToProtocolsCommand', smalltalk.HLGoToCommand, [], 'Helios-Commands');
  471. smalltalk.addMethod(
  472. "_execute",
  473. smalltalk.method({
  474. selector: "execute",
  475. fn: function (){
  476. var self=this;
  477. return smalltalk.withContext(function($ctx1) {
  478. _st(_st(self)._model())._focusOnProtocols();
  479. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToProtocolsCommand)})},
  480. messageSends: ["focusOnProtocols", "model"]}),
  481. smalltalk.HLGoToProtocolsCommand);
  482. smalltalk.addMethod(
  483. "_key",
  484. smalltalk.method({
  485. selector: "key",
  486. fn: function (){
  487. var self=this;
  488. return smalltalk.withContext(function($ctx1) {
  489. return (84);
  490. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToProtocolsCommand.klass)})},
  491. messageSends: []}),
  492. smalltalk.HLGoToProtocolsCommand.klass);
  493. smalltalk.addMethod(
  494. "_label",
  495. smalltalk.method({
  496. selector: "label",
  497. fn: function (){
  498. var self=this;
  499. return smalltalk.withContext(function($ctx1) {
  500. return "Protocols";
  501. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToProtocolsCommand.klass)})},
  502. messageSends: []}),
  503. smalltalk.HLGoToProtocolsCommand.klass);
  504. smalltalk.addClass('HLGoToSourceCodeCommand', smalltalk.HLGoToCommand, [], 'Helios-Commands');
  505. smalltalk.addMethod(
  506. "_execute",
  507. smalltalk.method({
  508. selector: "execute",
  509. fn: function (){
  510. var self=this;
  511. return smalltalk.withContext(function($ctx1) {
  512. _st(_st(self)._model())._focusOnSourceCode();
  513. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToSourceCodeCommand)})},
  514. messageSends: ["focusOnSourceCode", "model"]}),
  515. smalltalk.HLGoToSourceCodeCommand);
  516. smalltalk.addMethod(
  517. "_key",
  518. smalltalk.method({
  519. selector: "key",
  520. fn: function (){
  521. var self=this;
  522. return smalltalk.withContext(function($ctx1) {
  523. return (83);
  524. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToSourceCodeCommand.klass)})},
  525. messageSends: []}),
  526. smalltalk.HLGoToSourceCodeCommand.klass);
  527. smalltalk.addMethod(
  528. "_label",
  529. smalltalk.method({
  530. selector: "label",
  531. fn: function (){
  532. var self=this;
  533. return smalltalk.withContext(function($ctx1) {
  534. return "Source code";
  535. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToSourceCodeCommand.klass)})},
  536. messageSends: []}),
  537. smalltalk.HLGoToSourceCodeCommand.klass);
  538. smalltalk.addClass('HLMoveToCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands');
  539. smalltalk.addMethod(
  540. "_key",
  541. smalltalk.method({
  542. selector: "key",
  543. fn: function (){
  544. var self=this;
  545. return smalltalk.withContext(function($ctx1) {
  546. return (77);
  547. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveToCommand.klass)})},
  548. messageSends: []}),
  549. smalltalk.HLMoveToCommand.klass);
  550. smalltalk.addMethod(
  551. "_label",
  552. smalltalk.method({
  553. selector: "label",
  554. fn: function (){
  555. var self=this;
  556. return smalltalk.withContext(function($ctx1) {
  557. return "Move";
  558. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveToCommand.klass)})},
  559. messageSends: []}),
  560. smalltalk.HLMoveToCommand.klass);
  561. smalltalk.addClass('HLMoveMethodToCommand', smalltalk.HLMoveToCommand, [], 'Helios-Commands');
  562. smalltalk.addMethod(
  563. "_key",
  564. smalltalk.method({
  565. selector: "key",
  566. fn: function (){
  567. var self=this;
  568. return smalltalk.withContext(function($ctx1) {
  569. return (77);
  570. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToCommand.klass)})},
  571. messageSends: []}),
  572. smalltalk.HLMoveMethodToCommand.klass);
  573. smalltalk.addMethod(
  574. "_label",
  575. smalltalk.method({
  576. selector: "label",
  577. fn: function (){
  578. var self=this;
  579. return smalltalk.withContext(function($ctx1) {
  580. return "Method";
  581. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToCommand.klass)})},
  582. messageSends: []}),
  583. smalltalk.HLMoveMethodToCommand.klass);
  584. smalltalk.addClass('HLMoveMethodToClassCommand', smalltalk.HLMoveMethodToCommand, [], 'Helios-Commands');
  585. smalltalk.addMethod(
  586. "_execute",
  587. smalltalk.method({
  588. selector: "execute",
  589. fn: function (){
  590. var self=this;
  591. return smalltalk.withContext(function($ctx1) {
  592. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLMoveMethodToClassCommand)})},
  593. messageSends: []}),
  594. smalltalk.HLMoveMethodToClassCommand);
  595. smalltalk.addMethod(
  596. "_key",
  597. smalltalk.method({
  598. selector: "key",
  599. fn: function (){
  600. var self=this;
  601. return smalltalk.withContext(function($ctx1) {
  602. return (67);
  603. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  604. messageSends: []}),
  605. smalltalk.HLMoveMethodToClassCommand.klass);
  606. smalltalk.addMethod(
  607. "_label",
  608. smalltalk.method({
  609. selector: "label",
  610. fn: function (){
  611. var self=this;
  612. return smalltalk.withContext(function($ctx1) {
  613. return "to class";
  614. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  615. messageSends: []}),
  616. smalltalk.HLMoveMethodToClassCommand.klass);
  617. smalltalk.addClass('HLMoveMethodToProtocolCommand', smalltalk.HLMoveMethodToCommand, [], 'Helios-Commands');
  618. smalltalk.addMethod(
  619. "_execute",
  620. smalltalk.method({
  621. selector: "execute",
  622. fn: function (){
  623. var self=this;
  624. return smalltalk.withContext(function($ctx1) {
  625. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  626. messageSends: []}),
  627. smalltalk.HLMoveMethodToProtocolCommand);
  628. smalltalk.addMethod(
  629. "_key",
  630. smalltalk.method({
  631. selector: "key",
  632. fn: function (){
  633. var self=this;
  634. return smalltalk.withContext(function($ctx1) {
  635. return (84);
  636. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  637. messageSends: []}),
  638. smalltalk.HLMoveMethodToProtocolCommand.klass);
  639. smalltalk.addMethod(
  640. "_label",
  641. smalltalk.method({
  642. selector: "label",
  643. fn: function (){
  644. var self=this;
  645. return smalltalk.withContext(function($ctx1) {
  646. return "to protocol";
  647. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  648. messageSends: []}),
  649. smalltalk.HLMoveMethodToProtocolCommand.klass);
  650. smalltalk.addClass('HLToggleCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands');
  651. smalltalk.addMethod(
  652. "_key",
  653. smalltalk.method({
  654. selector: "key",
  655. fn: function (){
  656. var self=this;
  657. return smalltalk.withContext(function($ctx1) {
  658. return (84);
  659. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleCommand.klass)})},
  660. messageSends: []}),
  661. smalltalk.HLToggleCommand.klass);
  662. smalltalk.addMethod(
  663. "_label",
  664. smalltalk.method({
  665. selector: "label",
  666. fn: function (){
  667. var self=this;
  668. return smalltalk.withContext(function($ctx1) {
  669. return "Toggle";
  670. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleCommand.klass)})},
  671. messageSends: []}),
  672. smalltalk.HLToggleCommand.klass);
  673. smalltalk.addClass('HLToggleClassSideCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands');
  674. smalltalk.addMethod(
  675. "_execute",
  676. smalltalk.method({
  677. selector: "execute",
  678. fn: function (){
  679. var self=this;
  680. return smalltalk.withContext(function($ctx1) {
  681. _st(_st(self)._model())._showInstance_(false);
  682. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleClassSideCommand)})},
  683. messageSends: ["showInstance:", "model"]}),
  684. smalltalk.HLToggleClassSideCommand);
  685. smalltalk.addMethod(
  686. "_key",
  687. smalltalk.method({
  688. selector: "key",
  689. fn: function (){
  690. var self=this;
  691. return smalltalk.withContext(function($ctx1) {
  692. return (67);
  693. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleClassSideCommand.klass)})},
  694. messageSends: []}),
  695. smalltalk.HLToggleClassSideCommand.klass);
  696. smalltalk.addMethod(
  697. "_label",
  698. smalltalk.method({
  699. selector: "label",
  700. fn: function (){
  701. var self=this;
  702. return smalltalk.withContext(function($ctx1) {
  703. return "Class side";
  704. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleClassSideCommand.klass)})},
  705. messageSends: []}),
  706. smalltalk.HLToggleClassSideCommand.klass);
  707. smalltalk.addClass('HLToggleInstanceSideCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands');
  708. smalltalk.addMethod(
  709. "_execute",
  710. smalltalk.method({
  711. selector: "execute",
  712. fn: function (){
  713. var self=this;
  714. return smalltalk.withContext(function($ctx1) {
  715. _st(_st(self)._model())._showInstance_(true);
  716. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleInstanceSideCommand)})},
  717. messageSends: ["showInstance:", "model"]}),
  718. smalltalk.HLToggleInstanceSideCommand);
  719. smalltalk.addMethod(
  720. "_key",
  721. smalltalk.method({
  722. selector: "key",
  723. fn: function (){
  724. var self=this;
  725. return smalltalk.withContext(function($ctx1) {
  726. return (73);
  727. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleInstanceSideCommand.klass)})},
  728. messageSends: []}),
  729. smalltalk.HLToggleInstanceSideCommand.klass);
  730. smalltalk.addMethod(
  731. "_label",
  732. smalltalk.method({
  733. selector: "label",
  734. fn: function (){
  735. var self=this;
  736. return smalltalk.withContext(function($ctx1) {
  737. return "Instance side";
  738. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleInstanceSideCommand.klass)})},
  739. messageSends: []}),
  740. smalltalk.HLToggleInstanceSideCommand.klass);
  741. smalltalk.addClass('HLOpenCommand', smalltalk.HLCommand, [], 'Helios-Commands');
  742. smalltalk.addMethod(
  743. "_key",
  744. smalltalk.method({
  745. selector: "key",
  746. fn: function (){
  747. var self=this;
  748. return smalltalk.withContext(function($ctx1) {
  749. return (79);
  750. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLOpenCommand.klass)})},
  751. messageSends: []}),
  752. smalltalk.HLOpenCommand.klass);
  753. smalltalk.addMethod(
  754. "_label",
  755. smalltalk.method({
  756. selector: "label",
  757. fn: function (){
  758. var self=this;
  759. return smalltalk.withContext(function($ctx1) {
  760. return "Open";
  761. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLOpenCommand.klass)})},
  762. messageSends: []}),
  763. smalltalk.HLOpenCommand.klass);
  764. smalltalk.addClass('HLOpenBrowserCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands');
  765. smalltalk.addMethod(
  766. "_execute",
  767. smalltalk.method({
  768. selector: "execute",
  769. fn: function (){
  770. var self=this;
  771. return smalltalk.withContext(function($ctx1) {
  772. var $1;
  773. $1=_st((smalltalk.HLBrowser || HLBrowser))._openAsTab();
  774. return $1;
  775. }, function($ctx1) {$ctx1.fill(self,"execute",{}, smalltalk.HLOpenBrowserCommand)})},
  776. messageSends: ["openAsTab"]}),
  777. smalltalk.HLOpenBrowserCommand);
  778. smalltalk.addMethod(
  779. "_key",
  780. smalltalk.method({
  781. selector: "key",
  782. fn: function (){
  783. var self=this;
  784. return smalltalk.withContext(function($ctx1) {
  785. return (66);
  786. }, function($ctx1) {$ctx1.fill(self,"key",{}, smalltalk.HLOpenBrowserCommand.klass)})},
  787. messageSends: []}),
  788. smalltalk.HLOpenBrowserCommand.klass);
  789. smalltalk.addMethod(
  790. "_label",
  791. smalltalk.method({
  792. selector: "label",
  793. fn: function (){
  794. var self=this;
  795. return smalltalk.withContext(function($ctx1) {
  796. return "Browser";
  797. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLOpenBrowserCommand.klass)})},
  798. messageSends: []}),
  799. smalltalk.HLOpenBrowserCommand.klass);
  800. smalltalk.addClass('HLOpenTranscriptCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands');
  801. smalltalk.addMethod(
  802. "_execute",
  803. smalltalk.method({
  804. selector: "execute",
  805. fn: function (){
  806. var self=this;
  807. return smalltalk.withContext(function($ctx1) {
  808. var $1;
  809. $1=_st((smalltalk.HLTranscript || HLTranscript))._openAsTab();
  810. return $1;
  811. }, function($ctx1) {$ctx1.fill(self,"execute",{}, smalltalk.HLOpenTranscriptCommand)})},
  812. messageSends: ["openAsTab"]}),
  813. smalltalk.HLOpenTranscriptCommand);
  814. smalltalk.addMethod(
  815. "_key",
  816. smalltalk.method({
  817. selector: "key",
  818. fn: function (){
  819. var self=this;
  820. return smalltalk.withContext(function($ctx1) {
  821. return (84);
  822. }, function($ctx1) {$ctx1.fill(self,"key",{}, smalltalk.HLOpenTranscriptCommand.klass)})},
  823. messageSends: []}),
  824. smalltalk.HLOpenTranscriptCommand.klass);
  825. smalltalk.addMethod(
  826. "_label",
  827. smalltalk.method({
  828. selector: "label",
  829. fn: function (){
  830. var self=this;
  831. return smalltalk.withContext(function($ctx1) {
  832. return "Transcript";
  833. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLOpenTranscriptCommand.klass)})},
  834. messageSends: []}),
  835. smalltalk.HLOpenTranscriptCommand.klass);
  836. smalltalk.addClass('HLOpenWorkspaceCommand', smalltalk.HLOpenCommand, [], 'Helios-Commands');
  837. smalltalk.addMethod(
  838. "_execute",
  839. smalltalk.method({
  840. selector: "execute",
  841. fn: function (){
  842. var self=this;
  843. return smalltalk.withContext(function($ctx1) {
  844. var $1;
  845. $1=_st((smalltalk.HLCodeWidget || HLCodeWidget))._openAsTab();
  846. return $1;
  847. }, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLOpenWorkspaceCommand)})},
  848. messageSends: ["openAsTab"]}),
  849. smalltalk.HLOpenWorkspaceCommand);
  850. smalltalk.addMethod(
  851. "_key",
  852. smalltalk.method({
  853. selector: "key",
  854. fn: function (){
  855. var self=this;
  856. return smalltalk.withContext(function($ctx1) {
  857. return (87);
  858. }, function($ctx1) {$ctx1.fill(self,"key",{}, smalltalk.HLOpenWorkspaceCommand.klass)})},
  859. messageSends: []}),
  860. smalltalk.HLOpenWorkspaceCommand.klass);
  861. smalltalk.addMethod(
  862. "_label",
  863. smalltalk.method({
  864. selector: "label",
  865. fn: function (){
  866. var self=this;
  867. return smalltalk.withContext(function($ctx1) {
  868. return "Workspace";
  869. }, function($ctx1) {$ctx1.fill(self,"label",{}, smalltalk.HLOpenWorkspaceCommand.klass)})},
  870. messageSends: []}),
  871. smalltalk.HLOpenWorkspaceCommand.klass);
  872. smalltalk.addClass('HLViewCommand', smalltalk.HLCommand, [], 'Helios-Commands');
  873. smalltalk.addMethod(
  874. "_label",
  875. smalltalk.method({
  876. selector: "label",
  877. fn: function (){
  878. var self=this;
  879. return smalltalk.withContext(function($ctx1) {
  880. return "View";
  881. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLViewCommand.klass)})},
  882. messageSends: []}),
  883. smalltalk.HLViewCommand.klass);
  884. });