Helios-Commands-Browser.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699
  1. smalltalk.addPackage('Helios-Commands-Browser');
  2. smalltalk.addClass('HLBrowserCommand', smalltalk.HLModelCommand, [], 'Helios-Commands-Browser');
  3. smalltalk.addMethod(
  4. "_for_",
  5. smalltalk.method({
  6. selector: "for:",
  7. category: 'instance creation',
  8. fn: function (aBrowserModel){
  9. var self=this;
  10. return smalltalk.withContext(function($ctx1) { var $2,$3,$1;
  11. $2=_st(self)._new();
  12. _st($2)._model_(aBrowserModel);
  13. $3=_st($2)._yourself();
  14. $1=$3;
  15. return $1;
  16. }, function($ctx1) {$ctx1.fill(self,"for:",{aBrowserModel:aBrowserModel},smalltalk.HLBrowserCommand.klass)})},
  17. args: ["aBrowserModel"],
  18. source: "for: aBrowserModel\x0a\x09^ self new\x0a \x09model: aBrowserModel;\x0a yourself",
  19. messageSends: ["model:", "new", "yourself"],
  20. referencedClasses: []
  21. }),
  22. smalltalk.HLBrowserCommand.klass);
  23. smalltalk.addClass('HLBrowserGoToCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands-Browser');
  24. smalltalk.addMethod(
  25. "_key",
  26. smalltalk.method({
  27. selector: "key",
  28. category: 'accessing',
  29. fn: function (){
  30. var self=this;
  31. return smalltalk.withContext(function($ctx1) { return (71);
  32. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToCommand.klass)})},
  33. args: [],
  34. source: "key\x0a\x09^ 71",
  35. messageSends: [],
  36. referencedClasses: []
  37. }),
  38. smalltalk.HLBrowserGoToCommand.klass);
  39. smalltalk.addMethod(
  40. "_label",
  41. smalltalk.method({
  42. selector: "label",
  43. category: 'accessing',
  44. fn: function (){
  45. var self=this;
  46. return smalltalk.withContext(function($ctx1) { return "Go to";
  47. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToCommand.klass)})},
  48. args: [],
  49. source: "label\x0a\x09^ 'Go to'",
  50. messageSends: [],
  51. referencedClasses: []
  52. }),
  53. smalltalk.HLBrowserGoToCommand.klass);
  54. smalltalk.addClass('HLGoToClassesCommand', smalltalk.HLBrowserGoToCommand, [], 'Helios-Commands-Browser');
  55. smalltalk.addMethod(
  56. "_execute",
  57. smalltalk.method({
  58. selector: "execute",
  59. category: 'executing',
  60. fn: function (){
  61. var self=this;
  62. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._focusOnClasses();
  63. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToClassesCommand)})},
  64. args: [],
  65. source: "execute\x0a\x09self model focusOnClasses",
  66. messageSends: ["focusOnClasses", "model"],
  67. referencedClasses: []
  68. }),
  69. smalltalk.HLGoToClassesCommand);
  70. smalltalk.addMethod(
  71. "_key",
  72. smalltalk.method({
  73. selector: "key",
  74. category: 'accessing',
  75. fn: function (){
  76. var self=this;
  77. return smalltalk.withContext(function($ctx1) { return (67);
  78. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToClassesCommand.klass)})},
  79. args: [],
  80. source: "key\x0a\x09\x22c\x22\x0a \x0a\x09^ 67",
  81. messageSends: [],
  82. referencedClasses: []
  83. }),
  84. smalltalk.HLGoToClassesCommand.klass);
  85. smalltalk.addMethod(
  86. "_label",
  87. smalltalk.method({
  88. selector: "label",
  89. category: 'accessing',
  90. fn: function (){
  91. var self=this;
  92. return smalltalk.withContext(function($ctx1) { return "Classes";
  93. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToClassesCommand.klass)})},
  94. args: [],
  95. source: "label\x0a\x09^ 'Classes'",
  96. messageSends: [],
  97. referencedClasses: []
  98. }),
  99. smalltalk.HLGoToClassesCommand.klass);
  100. smalltalk.addClass('HLGoToMethodsCommand', smalltalk.HLBrowserGoToCommand, [], 'Helios-Commands-Browser');
  101. smalltalk.addMethod(
  102. "_execute",
  103. smalltalk.method({
  104. selector: "execute",
  105. category: 'executing',
  106. fn: function (){
  107. var self=this;
  108. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._focusOnMethods();
  109. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToMethodsCommand)})},
  110. args: [],
  111. source: "execute\x0a\x09self model focusOnMethods",
  112. messageSends: ["focusOnMethods", "model"],
  113. referencedClasses: []
  114. }),
  115. smalltalk.HLGoToMethodsCommand);
  116. smalltalk.addMethod(
  117. "_key",
  118. smalltalk.method({
  119. selector: "key",
  120. category: 'accessing',
  121. fn: function (){
  122. var self=this;
  123. return smalltalk.withContext(function($ctx1) { return (77);
  124. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToMethodsCommand.klass)})},
  125. args: [],
  126. source: "key\x0a\x09\x22m\x22\x0a \x0a\x09^ 77",
  127. messageSends: [],
  128. referencedClasses: []
  129. }),
  130. smalltalk.HLGoToMethodsCommand.klass);
  131. smalltalk.addMethod(
  132. "_label",
  133. smalltalk.method({
  134. selector: "label",
  135. category: 'accessing',
  136. fn: function (){
  137. var self=this;
  138. return smalltalk.withContext(function($ctx1) { return "Methods";
  139. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToMethodsCommand.klass)})},
  140. args: [],
  141. source: "label\x0a\x09^ 'Methods'",
  142. messageSends: [],
  143. referencedClasses: []
  144. }),
  145. smalltalk.HLGoToMethodsCommand.klass);
  146. smalltalk.addClass('HLGoToPackagesCommand', smalltalk.HLBrowserGoToCommand, [], 'Helios-Commands-Browser');
  147. smalltalk.addMethod(
  148. "_execute",
  149. smalltalk.method({
  150. selector: "execute",
  151. category: 'executing',
  152. fn: function (){
  153. var self=this;
  154. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._focusOnPackages();
  155. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToPackagesCommand)})},
  156. args: [],
  157. source: "execute\x0a\x09self model focusOnPackages",
  158. messageSends: ["focusOnPackages", "model"],
  159. referencedClasses: []
  160. }),
  161. smalltalk.HLGoToPackagesCommand);
  162. smalltalk.addMethod(
  163. "_key",
  164. smalltalk.method({
  165. selector: "key",
  166. category: 'accessing',
  167. fn: function (){
  168. var self=this;
  169. return smalltalk.withContext(function($ctx1) { return (80);
  170. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToPackagesCommand.klass)})},
  171. args: [],
  172. source: "key\x0a\x09\x22p\x22\x0a \x0a\x09^ 80",
  173. messageSends: [],
  174. referencedClasses: []
  175. }),
  176. smalltalk.HLGoToPackagesCommand.klass);
  177. smalltalk.addMethod(
  178. "_label",
  179. smalltalk.method({
  180. selector: "label",
  181. category: 'accessing',
  182. fn: function (){
  183. var self=this;
  184. return smalltalk.withContext(function($ctx1) { return "Packages";
  185. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToPackagesCommand.klass)})},
  186. args: [],
  187. source: "label\x0a\x09^ 'Packages'",
  188. messageSends: [],
  189. referencedClasses: []
  190. }),
  191. smalltalk.HLGoToPackagesCommand.klass);
  192. smalltalk.addClass('HLGoToProtocolsCommand', smalltalk.HLBrowserGoToCommand, [], 'Helios-Commands-Browser');
  193. smalltalk.addMethod(
  194. "_execute",
  195. smalltalk.method({
  196. selector: "execute",
  197. category: 'executing',
  198. fn: function (){
  199. var self=this;
  200. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._focusOnProtocols();
  201. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToProtocolsCommand)})},
  202. args: [],
  203. source: "execute\x0a\x09self model focusOnProtocols",
  204. messageSends: ["focusOnProtocols", "model"],
  205. referencedClasses: []
  206. }),
  207. smalltalk.HLGoToProtocolsCommand);
  208. smalltalk.addMethod(
  209. "_key",
  210. smalltalk.method({
  211. selector: "key",
  212. category: 'accessing',
  213. fn: function (){
  214. var self=this;
  215. return smalltalk.withContext(function($ctx1) { return (84);
  216. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToProtocolsCommand.klass)})},
  217. args: [],
  218. source: "key\x0a\x09\x22p\x22\x0a \x0a\x09^ 84",
  219. messageSends: [],
  220. referencedClasses: []
  221. }),
  222. smalltalk.HLGoToProtocolsCommand.klass);
  223. smalltalk.addMethod(
  224. "_label",
  225. smalltalk.method({
  226. selector: "label",
  227. category: 'accessing',
  228. fn: function (){
  229. var self=this;
  230. return smalltalk.withContext(function($ctx1) { return "Protocols";
  231. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToProtocolsCommand.klass)})},
  232. args: [],
  233. source: "label\x0a\x09^ 'Protocols'",
  234. messageSends: [],
  235. referencedClasses: []
  236. }),
  237. smalltalk.HLGoToProtocolsCommand.klass);
  238. smalltalk.addClass('HLGoToSourceCodeCommand', smalltalk.HLBrowserGoToCommand, [], 'Helios-Commands-Browser');
  239. smalltalk.addMethod(
  240. "_execute",
  241. smalltalk.method({
  242. selector: "execute",
  243. category: 'executing',
  244. fn: function (){
  245. var self=this;
  246. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._focusOnSourceCode();
  247. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToSourceCodeCommand)})},
  248. args: [],
  249. source: "execute\x0a\x09self model focusOnSourceCode",
  250. messageSends: ["focusOnSourceCode", "model"],
  251. referencedClasses: []
  252. }),
  253. smalltalk.HLGoToSourceCodeCommand);
  254. smalltalk.addMethod(
  255. "_key",
  256. smalltalk.method({
  257. selector: "key",
  258. category: 'accessing',
  259. fn: function (){
  260. var self=this;
  261. return smalltalk.withContext(function($ctx1) { return (83);
  262. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToSourceCodeCommand.klass)})},
  263. args: [],
  264. source: "key\x0a\x09\x22s\x22\x0a \x0a\x09^ 83",
  265. messageSends: [],
  266. referencedClasses: []
  267. }),
  268. smalltalk.HLGoToSourceCodeCommand.klass);
  269. smalltalk.addMethod(
  270. "_label",
  271. smalltalk.method({
  272. selector: "label",
  273. category: 'accessing',
  274. fn: function (){
  275. var self=this;
  276. return smalltalk.withContext(function($ctx1) { return "Source code";
  277. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToSourceCodeCommand.klass)})},
  278. args: [],
  279. source: "label\x0a\x09^ 'Source code'",
  280. messageSends: [],
  281. referencedClasses: []
  282. }),
  283. smalltalk.HLGoToSourceCodeCommand.klass);
  284. smalltalk.addClass('HLMoveToCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands-Browser');
  285. smalltalk.addMethod(
  286. "_key",
  287. smalltalk.method({
  288. selector: "key",
  289. category: 'accessing',
  290. fn: function (){
  291. var self=this;
  292. return smalltalk.withContext(function($ctx1) { return (77);
  293. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveToCommand.klass)})},
  294. args: [],
  295. source: "key\x0a\x09^ 77",
  296. messageSends: [],
  297. referencedClasses: []
  298. }),
  299. smalltalk.HLMoveToCommand.klass);
  300. smalltalk.addMethod(
  301. "_label",
  302. smalltalk.method({
  303. selector: "label",
  304. category: 'accessing',
  305. fn: function (){
  306. var self=this;
  307. return smalltalk.withContext(function($ctx1) { return "Move";
  308. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveToCommand.klass)})},
  309. args: [],
  310. source: "label\x0a\x09^ 'Move'",
  311. messageSends: [],
  312. referencedClasses: []
  313. }),
  314. smalltalk.HLMoveToCommand.klass);
  315. smalltalk.addClass('HLMoveMethodToCommand', smalltalk.HLMoveToCommand, [], 'Helios-Commands-Browser');
  316. smalltalk.addMethod(
  317. "_activeBlock",
  318. smalltalk.method({
  319. selector: "activeBlock",
  320. category: 'accessing',
  321. fn: function (){
  322. var self=this;
  323. return smalltalk.withContext(function($ctx1) { var $1;
  324. $1=(function(){
  325. return smalltalk.withContext(function($ctx2) { return _st(_st(_st(self)._model())._selectedMethod())._notNil();
  326. }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})});
  327. return $1;
  328. }, function($ctx1) {$ctx1.fill(self,"activeBlock",{},smalltalk.HLMoveMethodToCommand)})},
  329. args: [],
  330. source: "activeBlock\x0a\x09^ [ self model selectedMethod notNil ]",
  331. messageSends: ["notNil", "selectedMethod", "model"],
  332. referencedClasses: []
  333. }),
  334. smalltalk.HLMoveMethodToCommand);
  335. smalltalk.addMethod(
  336. "_key",
  337. smalltalk.method({
  338. selector: "key",
  339. category: 'accessing',
  340. fn: function (){
  341. var self=this;
  342. return smalltalk.withContext(function($ctx1) { return (77);
  343. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToCommand.klass)})},
  344. args: [],
  345. source: "key\x0a\x09^ 77",
  346. messageSends: [],
  347. referencedClasses: []
  348. }),
  349. smalltalk.HLMoveMethodToCommand.klass);
  350. smalltalk.addMethod(
  351. "_label",
  352. smalltalk.method({
  353. selector: "label",
  354. category: 'accessing',
  355. fn: function (){
  356. var self=this;
  357. return smalltalk.withContext(function($ctx1) { return "Method";
  358. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToCommand.klass)})},
  359. args: [],
  360. source: "label\x0a\x09^ 'Method'",
  361. messageSends: [],
  362. referencedClasses: []
  363. }),
  364. smalltalk.HLMoveMethodToCommand.klass);
  365. smalltalk.addClass('HLMoveMethodToClassCommand', smalltalk.HLMoveMethodToCommand, [], 'Helios-Commands-Browser');
  366. smalltalk.addMethod(
  367. "_key",
  368. smalltalk.method({
  369. selector: "key",
  370. category: 'accessing',
  371. fn: function (){
  372. var self=this;
  373. return smalltalk.withContext(function($ctx1) { return (67);
  374. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  375. args: [],
  376. source: "key\x0a\x09^ 67",
  377. messageSends: [],
  378. referencedClasses: []
  379. }),
  380. smalltalk.HLMoveMethodToClassCommand.klass);
  381. smalltalk.addMethod(
  382. "_label",
  383. smalltalk.method({
  384. selector: "label",
  385. category: 'accessing',
  386. fn: function (){
  387. var self=this;
  388. return smalltalk.withContext(function($ctx1) { return "to class";
  389. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  390. args: [],
  391. source: "label\x09\x0a\x09^ 'to class'",
  392. messageSends: [],
  393. referencedClasses: []
  394. }),
  395. smalltalk.HLMoveMethodToClassCommand.klass);
  396. smalltalk.addClass('HLMethodMoveToClassSelectionCommand', smalltalk.HLMoveMethodToClassCommand, [], 'Helios-Commands-Browser');
  397. smalltalk.addMethod(
  398. "_asBinding",
  399. smalltalk.method({
  400. selector: "asBinding",
  401. category: 'converting',
  402. fn: function (){
  403. var self=this;
  404. return smalltalk.withContext(function($ctx1) { var $1;
  405. $1=_st(_st((smalltalk.HLBindingInput || HLBindingInput))._on_labelled_activeBlock_(_st(self)._key(),_st(self)._label(),_st(self)._activeBlock()))._callback_((function(ex){
  406. return smalltalk.withContext(function($ctx2) { return _st(self)._execute_(ex);
  407. }, function($ctx2) {$ctx2.fillBlock({ex:ex},$ctx1)})}));
  408. return $1;
  409. }, function($ctx1) {$ctx1.fill(self,"asBinding",{},smalltalk.HLMethodMoveToClassSelectionCommand)})},
  410. args: [],
  411. source: "asBinding\x0a\x09^ (HLBindingInput on: self key labelled: self label activeBlock: self activeBlock)\x0a \x09callback: [:ex | self execute: ex ]",
  412. messageSends: ["callback:", "execute:", "on:labelled:activeBlock:", "key", "label", "activeBlock"],
  413. referencedClasses: ["HLBindingInput"]
  414. }),
  415. smalltalk.HLMethodMoveToClassSelectionCommand);
  416. smalltalk.addMethod(
  417. "_execute_",
  418. smalltalk.method({
  419. selector: "execute:",
  420. category: 'actions',
  421. fn: function (aClass){
  422. var self=this;
  423. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._moveMethodToClass_(aClass);
  424. return self}, function($ctx1) {$ctx1.fill(self,"execute:",{aClass:aClass},smalltalk.HLMethodMoveToClassSelectionCommand)})},
  425. args: ["aClass"],
  426. source: "execute: aClass\x0a\x09self model moveMethodToClass: aClass",
  427. messageSends: ["moveMethodToClass:", "model"],
  428. referencedClasses: []
  429. }),
  430. smalltalk.HLMethodMoveToClassSelectionCommand);
  431. smalltalk.addMethod(
  432. "_key",
  433. smalltalk.method({
  434. selector: "key",
  435. category: 'accessing',
  436. fn: function (){
  437. var self=this;
  438. return smalltalk.withContext(function($ctx1) { return (13);
  439. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMethodMoveToClassSelectionCommand.klass)})},
  440. args: [],
  441. source: "key\x0a\x09^ 13 \x22enter\x22",
  442. messageSends: [],
  443. referencedClasses: []
  444. }),
  445. smalltalk.HLMethodMoveToClassSelectionCommand.klass);
  446. smalltalk.addMethod(
  447. "_label",
  448. smalltalk.method({
  449. selector: "label",
  450. category: 'accessing',
  451. fn: function (){
  452. var self=this;
  453. return smalltalk.withContext(function($ctx1) { return "select a class";
  454. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMethodMoveToClassSelectionCommand.klass)})},
  455. args: [],
  456. source: "label\x0a\x09^ 'select a class'",
  457. messageSends: [],
  458. referencedClasses: []
  459. }),
  460. smalltalk.HLMethodMoveToClassSelectionCommand.klass);
  461. smalltalk.addClass('HLMoveMethodToProtocolCommand', smalltalk.HLMoveMethodToCommand, [], 'Helios-Commands-Browser');
  462. smalltalk.addMethod(
  463. "_execute",
  464. smalltalk.method({
  465. selector: "execute",
  466. category: 'executing',
  467. fn: function (){
  468. var self=this;
  469. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._moveMethodToProtocol();
  470. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  471. args: [],
  472. source: "execute\x0a\x09self model moveMethodToProtocol",
  473. messageSends: ["moveMethodToProtocol", "model"],
  474. referencedClasses: []
  475. }),
  476. smalltalk.HLMoveMethodToProtocolCommand);
  477. smalltalk.addMethod(
  478. "_key",
  479. smalltalk.method({
  480. selector: "key",
  481. category: 'accessing',
  482. fn: function (){
  483. var self=this;
  484. return smalltalk.withContext(function($ctx1) { return (84);
  485. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  486. args: [],
  487. source: "key\x0a\x09^ 84",
  488. messageSends: [],
  489. referencedClasses: []
  490. }),
  491. smalltalk.HLMoveMethodToProtocolCommand.klass);
  492. smalltalk.addMethod(
  493. "_label",
  494. smalltalk.method({
  495. selector: "label",
  496. category: 'accessing',
  497. fn: function (){
  498. var self=this;
  499. return smalltalk.withContext(function($ctx1) { return "to protocol";
  500. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  501. args: [],
  502. source: "label\x0a\x09^ 'to protocol'",
  503. messageSends: [],
  504. referencedClasses: []
  505. }),
  506. smalltalk.HLMoveMethodToProtocolCommand.klass);
  507. smalltalk.addClass('HLToggleCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands-Browser');
  508. smalltalk.addMethod(
  509. "_key",
  510. smalltalk.method({
  511. selector: "key",
  512. category: 'accessing',
  513. fn: function (){
  514. var self=this;
  515. return smalltalk.withContext(function($ctx1) { return (84);
  516. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleCommand.klass)})},
  517. args: [],
  518. source: "key\x0a\x09^ 84",
  519. messageSends: [],
  520. referencedClasses: []
  521. }),
  522. smalltalk.HLToggleCommand.klass);
  523. smalltalk.addMethod(
  524. "_label",
  525. smalltalk.method({
  526. selector: "label",
  527. category: 'accessing',
  528. fn: function (){
  529. var self=this;
  530. return smalltalk.withContext(function($ctx1) { return "Toggle";
  531. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleCommand.klass)})},
  532. args: [],
  533. source: "label\x0a\x09^ 'Toggle'",
  534. messageSends: [],
  535. referencedClasses: []
  536. }),
  537. smalltalk.HLToggleCommand.klass);
  538. smalltalk.addClass('HLToggleClassSideCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands-Browser');
  539. smalltalk.addMethod(
  540. "_execute",
  541. smalltalk.method({
  542. selector: "execute",
  543. category: 'executing',
  544. fn: function (){
  545. var self=this;
  546. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._showInstance_(false);
  547. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleClassSideCommand)})},
  548. args: [],
  549. source: "execute\x0a\x09self model showInstance: false",
  550. messageSends: ["showInstance:", "model"],
  551. referencedClasses: []
  552. }),
  553. smalltalk.HLToggleClassSideCommand);
  554. smalltalk.addMethod(
  555. "_key",
  556. smalltalk.method({
  557. selector: "key",
  558. category: 'accessing',
  559. fn: function (){
  560. var self=this;
  561. return smalltalk.withContext(function($ctx1) { return (67);
  562. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleClassSideCommand.klass)})},
  563. args: [],
  564. source: "key\x0a\x09\x22c\x22\x0a \x0a\x09^ 67",
  565. messageSends: [],
  566. referencedClasses: []
  567. }),
  568. smalltalk.HLToggleClassSideCommand.klass);
  569. smalltalk.addMethod(
  570. "_label",
  571. smalltalk.method({
  572. selector: "label",
  573. category: 'accessing',
  574. fn: function (){
  575. var self=this;
  576. return smalltalk.withContext(function($ctx1) { return "Class side";
  577. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleClassSideCommand.klass)})},
  578. args: [],
  579. source: "label\x0a\x09^ 'Class side'",
  580. messageSends: [],
  581. referencedClasses: []
  582. }),
  583. smalltalk.HLToggleClassSideCommand.klass);
  584. smalltalk.addClass('HLToggleInstanceSideCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands-Browser');
  585. smalltalk.addMethod(
  586. "_execute",
  587. smalltalk.method({
  588. selector: "execute",
  589. category: 'executing',
  590. fn: function (){
  591. var self=this;
  592. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._showInstance_(true);
  593. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleInstanceSideCommand)})},
  594. args: [],
  595. source: "execute\x0a\x09self model showInstance: true",
  596. messageSends: ["showInstance:", "model"],
  597. referencedClasses: []
  598. }),
  599. smalltalk.HLToggleInstanceSideCommand);
  600. smalltalk.addMethod(
  601. "_key",
  602. smalltalk.method({
  603. selector: "key",
  604. category: 'accessing',
  605. fn: function (){
  606. var self=this;
  607. return smalltalk.withContext(function($ctx1) { return (73);
  608. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleInstanceSideCommand.klass)})},
  609. args: [],
  610. source: "key\x0a\x09\x22i\x22\x0a \x0a\x09^ 73",
  611. messageSends: [],
  612. referencedClasses: []
  613. }),
  614. smalltalk.HLToggleInstanceSideCommand.klass);
  615. smalltalk.addMethod(
  616. "_label",
  617. smalltalk.method({
  618. selector: "label",
  619. category: 'accessing',
  620. fn: function (){
  621. var self=this;
  622. return smalltalk.withContext(function($ctx1) { return "Instance side";
  623. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleInstanceSideCommand.klass)})},
  624. args: [],
  625. source: "label\x0a\x09^ 'Instance side'",
  626. messageSends: [],
  627. referencedClasses: []
  628. }),
  629. smalltalk.HLToggleInstanceSideCommand.klass);