Helios-Commands-Browser.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  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. "_isActive",
  318. smalltalk.method({
  319. selector: "isActive",
  320. category: 'testing',
  321. fn: function (){
  322. var self=this;
  323. return smalltalk.withContext(function($ctx1) { var $1;
  324. $1=_st(_st(_st(self)._model())._selectedMethod())._notNil();
  325. return $1;
  326. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLMoveMethodToCommand)})},
  327. args: [],
  328. source: "isActive\x0a\x09^ self model selectedMethod notNil",
  329. messageSends: ["notNil", "selectedMethod", "model"],
  330. referencedClasses: []
  331. }),
  332. smalltalk.HLMoveMethodToCommand);
  333. smalltalk.addMethod(
  334. "_key",
  335. smalltalk.method({
  336. selector: "key",
  337. category: 'accessing',
  338. fn: function (){
  339. var self=this;
  340. return smalltalk.withContext(function($ctx1) { return (77);
  341. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToCommand.klass)})},
  342. args: [],
  343. source: "key\x0a\x09^ 77",
  344. messageSends: [],
  345. referencedClasses: []
  346. }),
  347. smalltalk.HLMoveMethodToCommand.klass);
  348. smalltalk.addMethod(
  349. "_label",
  350. smalltalk.method({
  351. selector: "label",
  352. category: 'accessing',
  353. fn: function (){
  354. var self=this;
  355. return smalltalk.withContext(function($ctx1) { return "Method";
  356. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToCommand.klass)})},
  357. args: [],
  358. source: "label\x0a\x09^ 'Method'",
  359. messageSends: [],
  360. referencedClasses: []
  361. }),
  362. smalltalk.HLMoveMethodToCommand.klass);
  363. smalltalk.addClass('HLMoveMethodToClassCommand', smalltalk.HLMoveMethodToCommand, [], 'Helios-Commands-Browser');
  364. smalltalk.addMethod(
  365. "_displayLabel",
  366. smalltalk.method({
  367. selector: "displayLabel",
  368. category: 'accessing',
  369. fn: function (){
  370. var self=this;
  371. return smalltalk.withContext(function($ctx1) { return "select a class";
  372. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLMoveMethodToClassCommand)})},
  373. args: [],
  374. source: "displayLabel\x0a\x09^ 'select a class'",
  375. messageSends: [],
  376. referencedClasses: []
  377. }),
  378. smalltalk.HLMoveMethodToClassCommand);
  379. smalltalk.addMethod(
  380. "_execute",
  381. smalltalk.method({
  382. selector: "execute",
  383. category: 'executing',
  384. fn: function (){
  385. var self=this;
  386. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._moveMethodToClass_ifAbsent_(_st(self)._input(),_st(self)._errorBlock());
  387. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLMoveMethodToClassCommand)})},
  388. args: [],
  389. source: "execute\x0a\x09self model moveMethodToClass: self input ifAbsent: self errorBlock",
  390. messageSends: ["moveMethodToClass:ifAbsent:", "input", "errorBlock", "model"],
  391. referencedClasses: []
  392. }),
  393. smalltalk.HLMoveMethodToClassCommand);
  394. smalltalk.addMethod(
  395. "_inputLabel",
  396. smalltalk.method({
  397. selector: "inputLabel",
  398. category: 'accessing',
  399. fn: function (){
  400. var self=this;
  401. return smalltalk.withContext(function($ctx1) { return "Move method to class:";
  402. }, function($ctx1) {$ctx1.fill(self,"inputLabel",{},smalltalk.HLMoveMethodToClassCommand)})},
  403. args: [],
  404. source: "inputLabel\x0a\x09^ 'Move method to class:'",
  405. messageSends: [],
  406. referencedClasses: []
  407. }),
  408. smalltalk.HLMoveMethodToClassCommand);
  409. smalltalk.addMethod(
  410. "_isInputRequired",
  411. smalltalk.method({
  412. selector: "isInputRequired",
  413. category: 'testing',
  414. fn: function (){
  415. var self=this;
  416. return smalltalk.withContext(function($ctx1) { return true;
  417. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLMoveMethodToClassCommand)})},
  418. args: [],
  419. source: "isInputRequired\x0a\x09^ true",
  420. messageSends: [],
  421. referencedClasses: []
  422. }),
  423. smalltalk.HLMoveMethodToClassCommand);
  424. smalltalk.addMethod(
  425. "_key",
  426. smalltalk.method({
  427. selector: "key",
  428. category: 'accessing',
  429. fn: function (){
  430. var self=this;
  431. return smalltalk.withContext(function($ctx1) { return (67);
  432. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  433. args: [],
  434. source: "key\x0a\x09^ 67",
  435. messageSends: [],
  436. referencedClasses: []
  437. }),
  438. smalltalk.HLMoveMethodToClassCommand.klass);
  439. smalltalk.addMethod(
  440. "_label",
  441. smalltalk.method({
  442. selector: "label",
  443. category: 'accessing',
  444. fn: function (){
  445. var self=this;
  446. return smalltalk.withContext(function($ctx1) { return "to class";
  447. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  448. args: [],
  449. source: "label\x09\x0a\x09^ 'to class'",
  450. messageSends: [],
  451. referencedClasses: []
  452. }),
  453. smalltalk.HLMoveMethodToClassCommand.klass);
  454. smalltalk.addClass('HLMoveMethodToProtocolCommand', smalltalk.HLMoveMethodToCommand, [], 'Helios-Commands-Browser');
  455. smalltalk.addMethod(
  456. "_execute",
  457. smalltalk.method({
  458. selector: "execute",
  459. category: 'executing',
  460. fn: function (){
  461. var self=this;
  462. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._moveMethodToProtocol();
  463. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  464. args: [],
  465. source: "execute\x0a\x09self model moveMethodToProtocol",
  466. messageSends: ["moveMethodToProtocol", "model"],
  467. referencedClasses: []
  468. }),
  469. smalltalk.HLMoveMethodToProtocolCommand);
  470. smalltalk.addMethod(
  471. "_key",
  472. smalltalk.method({
  473. selector: "key",
  474. category: 'accessing',
  475. fn: function (){
  476. var self=this;
  477. return smalltalk.withContext(function($ctx1) { return (84);
  478. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  479. args: [],
  480. source: "key\x0a\x09^ 84",
  481. messageSends: [],
  482. referencedClasses: []
  483. }),
  484. smalltalk.HLMoveMethodToProtocolCommand.klass);
  485. smalltalk.addMethod(
  486. "_label",
  487. smalltalk.method({
  488. selector: "label",
  489. category: 'accessing',
  490. fn: function (){
  491. var self=this;
  492. return smalltalk.withContext(function($ctx1) { return "to protocol";
  493. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  494. args: [],
  495. source: "label\x0a\x09^ 'to protocol'",
  496. messageSends: [],
  497. referencedClasses: []
  498. }),
  499. smalltalk.HLMoveMethodToProtocolCommand.klass);
  500. smalltalk.addClass('HLToggleCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands-Browser');
  501. smalltalk.addMethod(
  502. "_key",
  503. smalltalk.method({
  504. selector: "key",
  505. category: 'accessing',
  506. fn: function (){
  507. var self=this;
  508. return smalltalk.withContext(function($ctx1) { return (84);
  509. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleCommand.klass)})},
  510. args: [],
  511. source: "key\x0a\x09^ 84",
  512. messageSends: [],
  513. referencedClasses: []
  514. }),
  515. smalltalk.HLToggleCommand.klass);
  516. smalltalk.addMethod(
  517. "_label",
  518. smalltalk.method({
  519. selector: "label",
  520. category: 'accessing',
  521. fn: function (){
  522. var self=this;
  523. return smalltalk.withContext(function($ctx1) { return "Toggle";
  524. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleCommand.klass)})},
  525. args: [],
  526. source: "label\x0a\x09^ 'Toggle'",
  527. messageSends: [],
  528. referencedClasses: []
  529. }),
  530. smalltalk.HLToggleCommand.klass);
  531. smalltalk.addClass('HLToggleClassSideCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands-Browser');
  532. smalltalk.addMethod(
  533. "_execute",
  534. smalltalk.method({
  535. selector: "execute",
  536. category: 'executing',
  537. fn: function (){
  538. var self=this;
  539. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._showInstance_(false);
  540. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleClassSideCommand)})},
  541. args: [],
  542. source: "execute\x0a\x09self model showInstance: false",
  543. messageSends: ["showInstance:", "model"],
  544. referencedClasses: []
  545. }),
  546. smalltalk.HLToggleClassSideCommand);
  547. smalltalk.addMethod(
  548. "_key",
  549. smalltalk.method({
  550. selector: "key",
  551. category: 'accessing',
  552. fn: function (){
  553. var self=this;
  554. return smalltalk.withContext(function($ctx1) { return (67);
  555. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleClassSideCommand.klass)})},
  556. args: [],
  557. source: "key\x0a\x09\x22c\x22\x0a \x0a\x09^ 67",
  558. messageSends: [],
  559. referencedClasses: []
  560. }),
  561. smalltalk.HLToggleClassSideCommand.klass);
  562. smalltalk.addMethod(
  563. "_label",
  564. smalltalk.method({
  565. selector: "label",
  566. category: 'accessing',
  567. fn: function (){
  568. var self=this;
  569. return smalltalk.withContext(function($ctx1) { return "Class side";
  570. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleClassSideCommand.klass)})},
  571. args: [],
  572. source: "label\x0a\x09^ 'Class side'",
  573. messageSends: [],
  574. referencedClasses: []
  575. }),
  576. smalltalk.HLToggleClassSideCommand.klass);
  577. smalltalk.addClass('HLToggleInstanceSideCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands-Browser');
  578. smalltalk.addMethod(
  579. "_execute",
  580. smalltalk.method({
  581. selector: "execute",
  582. category: 'executing',
  583. fn: function (){
  584. var self=this;
  585. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._showInstance_(true);
  586. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleInstanceSideCommand)})},
  587. args: [],
  588. source: "execute\x0a\x09self model showInstance: true",
  589. messageSends: ["showInstance:", "model"],
  590. referencedClasses: []
  591. }),
  592. smalltalk.HLToggleInstanceSideCommand);
  593. smalltalk.addMethod(
  594. "_key",
  595. smalltalk.method({
  596. selector: "key",
  597. category: 'accessing',
  598. fn: function (){
  599. var self=this;
  600. return smalltalk.withContext(function($ctx1) { return (73);
  601. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleInstanceSideCommand.klass)})},
  602. args: [],
  603. source: "key\x0a\x09\x22i\x22\x0a \x0a\x09^ 73",
  604. messageSends: [],
  605. referencedClasses: []
  606. }),
  607. smalltalk.HLToggleInstanceSideCommand.klass);
  608. smalltalk.addMethod(
  609. "_label",
  610. smalltalk.method({
  611. selector: "label",
  612. category: 'accessing',
  613. fn: function (){
  614. var self=this;
  615. return smalltalk.withContext(function($ctx1) { return "Instance side";
  616. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleInstanceSideCommand.klass)})},
  617. args: [],
  618. source: "label\x0a\x09^ 'Instance side'",
  619. messageSends: [],
  620. referencedClasses: []
  621. }),
  622. smalltalk.HLToggleInstanceSideCommand.klass);