Helios-Commands-Browser.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945
  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('HLCommitPackageCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands-Browser');
  285. smalltalk.addMethod(
  286. "_execute",
  287. smalltalk.method({
  288. selector: "execute",
  289. category: 'executing',
  290. fn: function (){
  291. var self=this;
  292. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._commitPackage();
  293. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLCommitPackageCommand)})},
  294. args: [],
  295. source: "execute\x0a\x09self model commitPackage",
  296. messageSends: ["commitPackage", "model"],
  297. referencedClasses: []
  298. }),
  299. smalltalk.HLCommitPackageCommand);
  300. smalltalk.addMethod(
  301. "_isActive",
  302. smalltalk.method({
  303. selector: "isActive",
  304. category: 'testing',
  305. fn: function (){
  306. var self=this;
  307. return smalltalk.withContext(function($ctx1) { return true;
  308. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLCommitPackageCommand)})},
  309. args: [],
  310. source: "isActive\x0a\x09^ true\x0a\x09\x22 slf model isPackageDirty\x22",
  311. messageSends: [],
  312. referencedClasses: []
  313. }),
  314. smalltalk.HLCommitPackageCommand);
  315. smalltalk.addMethod(
  316. "_key",
  317. smalltalk.method({
  318. selector: "key",
  319. category: 'accessing',
  320. fn: function (){
  321. var self=this;
  322. return smalltalk.withContext(function($ctx1) { return (75);
  323. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCommitPackageCommand.klass)})},
  324. args: [],
  325. source: "key\x0a\x09^ 75",
  326. messageSends: [],
  327. referencedClasses: []
  328. }),
  329. smalltalk.HLCommitPackageCommand.klass);
  330. smalltalk.addMethod(
  331. "_label",
  332. smalltalk.method({
  333. selector: "label",
  334. category: 'accessing',
  335. fn: function (){
  336. var self=this;
  337. return smalltalk.withContext(function($ctx1) { return "Commit package";
  338. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLCommitPackageCommand.klass)})},
  339. args: [],
  340. source: "label\x0a\x09^ 'Commit package'",
  341. messageSends: [],
  342. referencedClasses: []
  343. }),
  344. smalltalk.HLCommitPackageCommand.klass);
  345. smalltalk.addClass('HLMoveToCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands-Browser');
  346. smalltalk.addMethod(
  347. "_key",
  348. smalltalk.method({
  349. selector: "key",
  350. category: 'accessing',
  351. fn: function (){
  352. var self=this;
  353. return smalltalk.withContext(function($ctx1) { return (77);
  354. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveToCommand.klass)})},
  355. args: [],
  356. source: "key\x0a\x09^ 77",
  357. messageSends: [],
  358. referencedClasses: []
  359. }),
  360. smalltalk.HLMoveToCommand.klass);
  361. smalltalk.addMethod(
  362. "_label",
  363. smalltalk.method({
  364. selector: "label",
  365. category: 'accessing',
  366. fn: function (){
  367. var self=this;
  368. return smalltalk.withContext(function($ctx1) { return "Move";
  369. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveToCommand.klass)})},
  370. args: [],
  371. source: "label\x0a\x09^ 'Move'",
  372. messageSends: [],
  373. referencedClasses: []
  374. }),
  375. smalltalk.HLMoveToCommand.klass);
  376. smalltalk.addClass('HLMoveMethodToCommand', smalltalk.HLMoveToCommand, [], 'Helios-Commands-Browser');
  377. smalltalk.addMethod(
  378. "_isActive",
  379. smalltalk.method({
  380. selector: "isActive",
  381. category: 'testing',
  382. fn: function (){
  383. var self=this;
  384. return smalltalk.withContext(function($ctx1) { var $1;
  385. $1=_st(_st(_st(self)._model())._selectedMethod())._notNil();
  386. return $1;
  387. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLMoveMethodToCommand)})},
  388. args: [],
  389. source: "isActive\x0a\x09^ self model selectedMethod notNil",
  390. messageSends: ["notNil", "selectedMethod", "model"],
  391. referencedClasses: []
  392. }),
  393. smalltalk.HLMoveMethodToCommand);
  394. smalltalk.addMethod(
  395. "_key",
  396. smalltalk.method({
  397. selector: "key",
  398. category: 'accessing',
  399. fn: function (){
  400. var self=this;
  401. return smalltalk.withContext(function($ctx1) { return (77);
  402. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToCommand.klass)})},
  403. args: [],
  404. source: "key\x0a\x09^ 77",
  405. messageSends: [],
  406. referencedClasses: []
  407. }),
  408. smalltalk.HLMoveMethodToCommand.klass);
  409. smalltalk.addMethod(
  410. "_label",
  411. smalltalk.method({
  412. selector: "label",
  413. category: 'accessing',
  414. fn: function (){
  415. var self=this;
  416. return smalltalk.withContext(function($ctx1) { return "Method";
  417. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToCommand.klass)})},
  418. args: [],
  419. source: "label\x0a\x09^ 'Method'",
  420. messageSends: [],
  421. referencedClasses: []
  422. }),
  423. smalltalk.HLMoveMethodToCommand.klass);
  424. smalltalk.addClass('HLMoveMethodToClassCommand', smalltalk.HLMoveMethodToCommand, [], 'Helios-Commands-Browser');
  425. smalltalk.addMethod(
  426. "_displayLabel",
  427. smalltalk.method({
  428. selector: "displayLabel",
  429. category: 'accessing',
  430. fn: function (){
  431. var self=this;
  432. return smalltalk.withContext(function($ctx1) { return "select a class";
  433. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLMoveMethodToClassCommand)})},
  434. args: [],
  435. source: "displayLabel\x0a\x09^ 'select a class'",
  436. messageSends: [],
  437. referencedClasses: []
  438. }),
  439. smalltalk.HLMoveMethodToClassCommand);
  440. smalltalk.addMethod(
  441. "_execute",
  442. smalltalk.method({
  443. selector: "execute",
  444. category: 'executing',
  445. fn: function (){
  446. var self=this;
  447. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._moveMethodToClass_(_st(self)._input());
  448. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLMoveMethodToClassCommand)})},
  449. args: [],
  450. source: "execute\x0a\x09self model moveMethodToClass: self input",
  451. messageSends: ["moveMethodToClass:", "input", "model"],
  452. referencedClasses: []
  453. }),
  454. smalltalk.HLMoveMethodToClassCommand);
  455. smalltalk.addMethod(
  456. "_inputCompletion",
  457. smalltalk.method({
  458. selector: "inputCompletion",
  459. category: 'accessing',
  460. fn: function (){
  461. var self=this;
  462. return smalltalk.withContext(function($ctx1) { var $1;
  463. $1=_st(_st(self)._model())._availableClassNames();
  464. return $1;
  465. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},smalltalk.HLMoveMethodToClassCommand)})},
  466. args: [],
  467. source: "inputCompletion\x0a\x09^ self model availableClassNames",
  468. messageSends: ["availableClassNames", "model"],
  469. referencedClasses: []
  470. }),
  471. smalltalk.HLMoveMethodToClassCommand);
  472. smalltalk.addMethod(
  473. "_inputLabel",
  474. smalltalk.method({
  475. selector: "inputLabel",
  476. category: 'accessing',
  477. fn: function (){
  478. var self=this;
  479. return smalltalk.withContext(function($ctx1) { return "Move method to class:";
  480. }, function($ctx1) {$ctx1.fill(self,"inputLabel",{},smalltalk.HLMoveMethodToClassCommand)})},
  481. args: [],
  482. source: "inputLabel\x0a\x09^ 'Move method to class:'",
  483. messageSends: [],
  484. referencedClasses: []
  485. }),
  486. smalltalk.HLMoveMethodToClassCommand);
  487. smalltalk.addMethod(
  488. "_isInputRequired",
  489. smalltalk.method({
  490. selector: "isInputRequired",
  491. category: 'testing',
  492. fn: function (){
  493. var self=this;
  494. return smalltalk.withContext(function($ctx1) { return true;
  495. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLMoveMethodToClassCommand)})},
  496. args: [],
  497. source: "isInputRequired\x0a\x09^ true",
  498. messageSends: [],
  499. referencedClasses: []
  500. }),
  501. smalltalk.HLMoveMethodToClassCommand);
  502. smalltalk.addMethod(
  503. "_key",
  504. smalltalk.method({
  505. selector: "key",
  506. category: 'accessing',
  507. fn: function (){
  508. var self=this;
  509. return smalltalk.withContext(function($ctx1) { return (67);
  510. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  511. args: [],
  512. source: "key\x0a\x09^ 67",
  513. messageSends: [],
  514. referencedClasses: []
  515. }),
  516. smalltalk.HLMoveMethodToClassCommand.klass);
  517. smalltalk.addMethod(
  518. "_label",
  519. smalltalk.method({
  520. selector: "label",
  521. category: 'accessing',
  522. fn: function (){
  523. var self=this;
  524. return smalltalk.withContext(function($ctx1) { return "to class";
  525. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  526. args: [],
  527. source: "label\x09\x0a\x09^ 'to class'",
  528. messageSends: [],
  529. referencedClasses: []
  530. }),
  531. smalltalk.HLMoveMethodToClassCommand.klass);
  532. smalltalk.addClass('HLMoveMethodToProtocolCommand', smalltalk.HLMoveMethodToCommand, [], 'Helios-Commands-Browser');
  533. smalltalk.addMethod(
  534. "_displayLabel",
  535. smalltalk.method({
  536. selector: "displayLabel",
  537. category: 'accessing',
  538. fn: function (){
  539. var self=this;
  540. return smalltalk.withContext(function($ctx1) { return "select a protocol";
  541. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  542. args: [],
  543. source: "displayLabel\x0a\x09^ 'select a protocol'",
  544. messageSends: [],
  545. referencedClasses: []
  546. }),
  547. smalltalk.HLMoveMethodToProtocolCommand);
  548. smalltalk.addMethod(
  549. "_execute",
  550. smalltalk.method({
  551. selector: "execute",
  552. category: 'executing',
  553. fn: function (){
  554. var self=this;
  555. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._moveMethodToProtocol_(_st(self)._input());
  556. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  557. args: [],
  558. source: "execute\x0a\x09self model moveMethodToProtocol: self input",
  559. messageSends: ["moveMethodToProtocol:", "input", "model"],
  560. referencedClasses: []
  561. }),
  562. smalltalk.HLMoveMethodToProtocolCommand);
  563. smalltalk.addMethod(
  564. "_inputCompletion",
  565. smalltalk.method({
  566. selector: "inputCompletion",
  567. category: 'accessing',
  568. fn: function (){
  569. var self=this;
  570. return smalltalk.withContext(function($ctx1) { var $1;
  571. $1=_st(_st(self)._model())._availableProtocols();
  572. return $1;
  573. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  574. args: [],
  575. source: "inputCompletion\x0a\x09^ self model availableProtocols",
  576. messageSends: ["availableProtocols", "model"],
  577. referencedClasses: []
  578. }),
  579. smalltalk.HLMoveMethodToProtocolCommand);
  580. smalltalk.addMethod(
  581. "_inputLabel",
  582. smalltalk.method({
  583. selector: "inputLabel",
  584. category: 'accessing',
  585. fn: function (){
  586. var self=this;
  587. return smalltalk.withContext(function($ctx1) { return "Move method to a protocol:";
  588. }, function($ctx1) {$ctx1.fill(self,"inputLabel",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  589. args: [],
  590. source: "inputLabel\x0a\x09^ 'Move method to a protocol:'",
  591. messageSends: [],
  592. referencedClasses: []
  593. }),
  594. smalltalk.HLMoveMethodToProtocolCommand);
  595. smalltalk.addMethod(
  596. "_isInputRequired",
  597. smalltalk.method({
  598. selector: "isInputRequired",
  599. category: 'testing',
  600. fn: function (){
  601. var self=this;
  602. return smalltalk.withContext(function($ctx1) { return true;
  603. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  604. args: [],
  605. source: "isInputRequired\x0a\x09^ true",
  606. messageSends: [],
  607. referencedClasses: []
  608. }),
  609. smalltalk.HLMoveMethodToProtocolCommand);
  610. smalltalk.addMethod(
  611. "_key",
  612. smalltalk.method({
  613. selector: "key",
  614. category: 'accessing',
  615. fn: function (){
  616. var self=this;
  617. return smalltalk.withContext(function($ctx1) { return (84);
  618. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  619. args: [],
  620. source: "key\x0a\x09^ 84",
  621. messageSends: [],
  622. referencedClasses: []
  623. }),
  624. smalltalk.HLMoveMethodToProtocolCommand.klass);
  625. smalltalk.addMethod(
  626. "_label",
  627. smalltalk.method({
  628. selector: "label",
  629. category: 'accessing',
  630. fn: function (){
  631. var self=this;
  632. return smalltalk.withContext(function($ctx1) { return "to protocol";
  633. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  634. args: [],
  635. source: "label\x0a\x09^ 'to protocol'",
  636. messageSends: [],
  637. referencedClasses: []
  638. }),
  639. smalltalk.HLMoveMethodToProtocolCommand.klass);
  640. smalltalk.addClass('HLRemoveCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands-Browser');
  641. smalltalk.addMethod(
  642. "_key",
  643. smalltalk.method({
  644. selector: "key",
  645. category: 'accessing',
  646. fn: function (){
  647. var self=this;
  648. return smalltalk.withContext(function($ctx1) { return (88);
  649. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLRemoveCommand.klass)})},
  650. args: [],
  651. source: "key\x0a\x09^ 88",
  652. messageSends: [],
  653. referencedClasses: []
  654. }),
  655. smalltalk.HLRemoveCommand.klass);
  656. smalltalk.addMethod(
  657. "_label",
  658. smalltalk.method({
  659. selector: "label",
  660. category: 'accessing',
  661. fn: function (){
  662. var self=this;
  663. return smalltalk.withContext(function($ctx1) { return "Remove";
  664. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRemoveCommand.klass)})},
  665. args: [],
  666. source: "label\x0a\x09^ 'Remove'",
  667. messageSends: [],
  668. referencedClasses: []
  669. }),
  670. smalltalk.HLRemoveCommand.klass);
  671. smalltalk.addClass('HLRemoveMethodCommand', smalltalk.HLRemoveCommand, [], 'Helios-Commands-Browser');
  672. smalltalk.addMethod(
  673. "_execute",
  674. smalltalk.method({
  675. selector: "execute",
  676. category: 'executing',
  677. fn: function (){
  678. var self=this;
  679. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._removeMethod();
  680. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLRemoveMethodCommand)})},
  681. args: [],
  682. source: "execute\x0a\x09self model removeMethod",
  683. messageSends: ["removeMethod", "model"],
  684. referencedClasses: []
  685. }),
  686. smalltalk.HLRemoveMethodCommand);
  687. smalltalk.addMethod(
  688. "_isActive",
  689. smalltalk.method({
  690. selector: "isActive",
  691. category: 'testing',
  692. fn: function (){
  693. var self=this;
  694. return smalltalk.withContext(function($ctx1) { var $1;
  695. $1=_st(_st(_st(self)._model())._selectedMethod())._notNil();
  696. return $1;
  697. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLRemoveMethodCommand)})},
  698. args: [],
  699. source: "isActive\x0a\x09^ self model selectedMethod notNil",
  700. messageSends: ["notNil", "selectedMethod", "model"],
  701. referencedClasses: []
  702. }),
  703. smalltalk.HLRemoveMethodCommand);
  704. smalltalk.addMethod(
  705. "_key",
  706. smalltalk.method({
  707. selector: "key",
  708. category: 'accessing',
  709. fn: function (){
  710. var self=this;
  711. return smalltalk.withContext(function($ctx1) { return (77);
  712. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLRemoveMethodCommand.klass)})},
  713. args: [],
  714. source: "key\x0a\x09^ 77",
  715. messageSends: [],
  716. referencedClasses: []
  717. }),
  718. smalltalk.HLRemoveMethodCommand.klass);
  719. smalltalk.addMethod(
  720. "_label",
  721. smalltalk.method({
  722. selector: "label",
  723. category: 'accessing',
  724. fn: function (){
  725. var self=this;
  726. return smalltalk.withContext(function($ctx1) { return "Method";
  727. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRemoveMethodCommand.klass)})},
  728. args: [],
  729. source: "label\x0a\x09^ 'Method'",
  730. messageSends: [],
  731. referencedClasses: []
  732. }),
  733. smalltalk.HLRemoveMethodCommand.klass);
  734. smalltalk.addClass('HLToggleCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands-Browser');
  735. smalltalk.addMethod(
  736. "_key",
  737. smalltalk.method({
  738. selector: "key",
  739. category: 'accessing',
  740. fn: function (){
  741. var self=this;
  742. return smalltalk.withContext(function($ctx1) { return (84);
  743. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleCommand.klass)})},
  744. args: [],
  745. source: "key\x0a\x09^ 84",
  746. messageSends: [],
  747. referencedClasses: []
  748. }),
  749. smalltalk.HLToggleCommand.klass);
  750. smalltalk.addMethod(
  751. "_label",
  752. smalltalk.method({
  753. selector: "label",
  754. category: 'accessing',
  755. fn: function (){
  756. var self=this;
  757. return smalltalk.withContext(function($ctx1) { return "Toggle";
  758. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleCommand.klass)})},
  759. args: [],
  760. source: "label\x0a\x09^ 'Toggle'",
  761. messageSends: [],
  762. referencedClasses: []
  763. }),
  764. smalltalk.HLToggleCommand.klass);
  765. smalltalk.addClass('HLToggleClassSideCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands-Browser');
  766. smalltalk.addMethod(
  767. "_execute",
  768. smalltalk.method({
  769. selector: "execute",
  770. category: 'executing',
  771. fn: function (){
  772. var self=this;
  773. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._showInstance_(false);
  774. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleClassSideCommand)})},
  775. args: [],
  776. source: "execute\x0a\x09self model showInstance: false",
  777. messageSends: ["showInstance:", "model"],
  778. referencedClasses: []
  779. }),
  780. smalltalk.HLToggleClassSideCommand);
  781. smalltalk.addMethod(
  782. "_key",
  783. smalltalk.method({
  784. selector: "key",
  785. category: 'accessing',
  786. fn: function (){
  787. var self=this;
  788. return smalltalk.withContext(function($ctx1) { return (67);
  789. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleClassSideCommand.klass)})},
  790. args: [],
  791. source: "key\x0a\x09\x22c\x22\x0a \x0a\x09^ 67",
  792. messageSends: [],
  793. referencedClasses: []
  794. }),
  795. smalltalk.HLToggleClassSideCommand.klass);
  796. smalltalk.addMethod(
  797. "_label",
  798. smalltalk.method({
  799. selector: "label",
  800. category: 'accessing',
  801. fn: function (){
  802. var self=this;
  803. return smalltalk.withContext(function($ctx1) { return "Class side";
  804. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleClassSideCommand.klass)})},
  805. args: [],
  806. source: "label\x0a\x09^ 'Class side'",
  807. messageSends: [],
  808. referencedClasses: []
  809. }),
  810. smalltalk.HLToggleClassSideCommand.klass);
  811. smalltalk.addClass('HLToggleInstanceSideCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands-Browser');
  812. smalltalk.addMethod(
  813. "_execute",
  814. smalltalk.method({
  815. selector: "execute",
  816. category: 'executing',
  817. fn: function (){
  818. var self=this;
  819. return smalltalk.withContext(function($ctx1) { _st(_st(self)._model())._showInstance_(true);
  820. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleInstanceSideCommand)})},
  821. args: [],
  822. source: "execute\x0a\x09self model showInstance: true",
  823. messageSends: ["showInstance:", "model"],
  824. referencedClasses: []
  825. }),
  826. smalltalk.HLToggleInstanceSideCommand);
  827. smalltalk.addMethod(
  828. "_key",
  829. smalltalk.method({
  830. selector: "key",
  831. category: 'accessing',
  832. fn: function (){
  833. var self=this;
  834. return smalltalk.withContext(function($ctx1) { return (73);
  835. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleInstanceSideCommand.klass)})},
  836. args: [],
  837. source: "key\x0a\x09\x22i\x22\x0a \x0a\x09^ 73",
  838. messageSends: [],
  839. referencedClasses: []
  840. }),
  841. smalltalk.HLToggleInstanceSideCommand.klass);
  842. smalltalk.addMethod(
  843. "_label",
  844. smalltalk.method({
  845. selector: "label",
  846. category: 'accessing',
  847. fn: function (){
  848. var self=this;
  849. return smalltalk.withContext(function($ctx1) { return "Instance side";
  850. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleInstanceSideCommand.klass)})},
  851. args: [],
  852. source: "label\x0a\x09^ 'Instance side'",
  853. messageSends: [],
  854. referencedClasses: []
  855. }),
  856. smalltalk.HLToggleInstanceSideCommand.klass);