Helios-Commands-Tools.deploy.js 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347
  1. define("amber/Helios-Commands-Tools", ["amber_vm/smalltalk","amber_vm/nil","amber_vm/_st"], function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Helios-Commands-Tools');
  3. smalltalk.packages["Helios-Commands-Tools"].transport = {"type":"amd","amdNamespace":"amber"};
  4. smalltalk.addClass('HLToolCommand', smalltalk.HLModelCommand, [], 'Helios-Commands-Tools');
  5. smalltalk.addMethod(
  6. smalltalk.method({
  7. selector: "category",
  8. fn: function (){
  9. var self=this;
  10. return smalltalk.withContext(function($ctx1) {
  11. return nil;
  12. }, function($ctx1) {$ctx1.fill(self,"category",{},smalltalk.HLToolCommand)})},
  13. messageSends: []}),
  14. smalltalk.HLToolCommand);
  15. smalltalk.addMethod(
  16. smalltalk.method({
  17. selector: "for:",
  18. fn: function (aToolModel){
  19. var self=this;
  20. return smalltalk.withContext(function($ctx1) {
  21. var $2,$3,$1;
  22. $2=self._new();
  23. _st($2)._model_(aToolModel);
  24. $3=_st($2)._yourself();
  25. $1=$3;
  26. return $1;
  27. }, function($ctx1) {$ctx1.fill(self,"for:",{aToolModel:aToolModel},smalltalk.HLToolCommand.klass)})},
  28. messageSends: ["model:", "new", "yourself"]}),
  29. smalltalk.HLToolCommand.klass);
  30. smalltalk.addMethod(
  31. smalltalk.method({
  32. selector: "isValidFor:",
  33. fn: function (aModel){
  34. var self=this;
  35. return smalltalk.withContext(function($ctx1) {
  36. var $1;
  37. $1=_st(aModel)._isToolModel();
  38. return $1;
  39. }, function($ctx1) {$ctx1.fill(self,"isValidFor:",{aModel:aModel},smalltalk.HLToolCommand.klass)})},
  40. messageSends: ["isToolModel"]}),
  41. smalltalk.HLToolCommand.klass);
  42. smalltalk.addClass('HLCommitPackageCommand', smalltalk.HLToolCommand, [], 'Helios-Commands-Tools');
  43. smalltalk.addMethod(
  44. smalltalk.method({
  45. selector: "category",
  46. fn: function (){
  47. var self=this;
  48. return smalltalk.withContext(function($ctx1) {
  49. return "Packages";
  50. }, function($ctx1) {$ctx1.fill(self,"category",{},smalltalk.HLCommitPackageCommand)})},
  51. messageSends: []}),
  52. smalltalk.HLCommitPackageCommand);
  53. smalltalk.addMethod(
  54. smalltalk.method({
  55. selector: "execute",
  56. fn: function (){
  57. var self=this;
  58. return smalltalk.withContext(function($ctx1) {
  59. _st(self._model())._commitPackage();
  60. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLCommitPackageCommand)})},
  61. messageSends: ["commitPackage", "model"]}),
  62. smalltalk.HLCommitPackageCommand);
  63. smalltalk.addMethod(
  64. smalltalk.method({
  65. selector: "isActive",
  66. fn: function (){
  67. var self=this;
  68. return smalltalk.withContext(function($ctx1) {
  69. return true;
  70. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLCommitPackageCommand)})},
  71. messageSends: []}),
  72. smalltalk.HLCommitPackageCommand);
  73. smalltalk.addMethod(
  74. smalltalk.method({
  75. selector: "key",
  76. fn: function (){
  77. var self=this;
  78. return smalltalk.withContext(function($ctx1) {
  79. return "k";
  80. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCommitPackageCommand.klass)})},
  81. messageSends: []}),
  82. smalltalk.HLCommitPackageCommand.klass);
  83. smalltalk.addMethod(
  84. smalltalk.method({
  85. selector: "label",
  86. fn: function (){
  87. var self=this;
  88. return smalltalk.withContext(function($ctx1) {
  89. return "Commit";
  90. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLCommitPackageCommand.klass)})},
  91. messageSends: []}),
  92. smalltalk.HLCommitPackageCommand.klass);
  93. smalltalk.addClass('HLCopyCommand', smalltalk.HLToolCommand, [], 'Helios-Commands-Tools');
  94. smalltalk.addMethod(
  95. smalltalk.method({
  96. selector: "key",
  97. fn: function (){
  98. var self=this;
  99. return smalltalk.withContext(function($ctx1) {
  100. return "c";
  101. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCopyCommand.klass)})},
  102. messageSends: []}),
  103. smalltalk.HLCopyCommand.klass);
  104. smalltalk.addMethod(
  105. smalltalk.method({
  106. selector: "label",
  107. fn: function (){
  108. var self=this;
  109. return smalltalk.withContext(function($ctx1) {
  110. return "Copy";
  111. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLCopyCommand.klass)})},
  112. messageSends: []}),
  113. smalltalk.HLCopyCommand.klass);
  114. smalltalk.addClass('HLCopyClassCommand', smalltalk.HLCopyCommand, [], 'Helios-Commands-Tools');
  115. smalltalk.addMethod(
  116. smalltalk.method({
  117. selector: "category",
  118. fn: function (){
  119. var self=this;
  120. return smalltalk.withContext(function($ctx1) {
  121. return "Classes";
  122. }, function($ctx1) {$ctx1.fill(self,"category",{},smalltalk.HLCopyClassCommand)})},
  123. messageSends: []}),
  124. smalltalk.HLCopyClassCommand);
  125. smalltalk.addMethod(
  126. smalltalk.method({
  127. selector: "defaultInput",
  128. fn: function (){
  129. var self=this;
  130. return smalltalk.withContext(function($ctx1) {
  131. var $1;
  132. $1=_st(_st(self._model())._selectedClass())._name();
  133. return $1;
  134. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},smalltalk.HLCopyClassCommand)})},
  135. messageSends: ["name", "selectedClass", "model"]}),
  136. smalltalk.HLCopyClassCommand);
  137. smalltalk.addMethod(
  138. smalltalk.method({
  139. selector: "displayLabel",
  140. fn: function (){
  141. var self=this;
  142. return smalltalk.withContext(function($ctx1) {
  143. return "New class name:";
  144. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLCopyClassCommand)})},
  145. messageSends: []}),
  146. smalltalk.HLCopyClassCommand);
  147. smalltalk.addMethod(
  148. smalltalk.method({
  149. selector: "execute",
  150. fn: function (){
  151. var self=this;
  152. return smalltalk.withContext(function($ctx1) {
  153. _st(self._model())._copyClassTo_(self._input());
  154. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLCopyClassCommand)})},
  155. messageSends: ["copyClassTo:", "input", "model"]}),
  156. smalltalk.HLCopyClassCommand);
  157. smalltalk.addMethod(
  158. smalltalk.method({
  159. selector: "isActive",
  160. fn: function (){
  161. var self=this;
  162. return smalltalk.withContext(function($ctx1) {
  163. var $1;
  164. $1=_st(_st(self._model())._selectedClass())._notNil();
  165. return $1;
  166. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLCopyClassCommand)})},
  167. messageSends: ["notNil", "selectedClass", "model"]}),
  168. smalltalk.HLCopyClassCommand);
  169. smalltalk.addMethod(
  170. smalltalk.method({
  171. selector: "isInputRequired",
  172. fn: function (){
  173. var self=this;
  174. return smalltalk.withContext(function($ctx1) {
  175. return true;
  176. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLCopyClassCommand)})},
  177. messageSends: []}),
  178. smalltalk.HLCopyClassCommand);
  179. smalltalk.addMethod(
  180. smalltalk.method({
  181. selector: "key",
  182. fn: function (){
  183. var self=this;
  184. return smalltalk.withContext(function($ctx1) {
  185. return "c";
  186. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLCopyClassCommand.klass)})},
  187. messageSends: []}),
  188. smalltalk.HLCopyClassCommand.klass);
  189. smalltalk.addMethod(
  190. smalltalk.method({
  191. selector: "label",
  192. fn: function (){
  193. var self=this;
  194. return smalltalk.withContext(function($ctx1) {
  195. return "Class";
  196. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLCopyClassCommand.klass)})},
  197. messageSends: []}),
  198. smalltalk.HLCopyClassCommand.klass);
  199. smalltalk.addMethod(
  200. smalltalk.method({
  201. selector: "menuLabel",
  202. fn: function (){
  203. var self=this;
  204. return smalltalk.withContext(function($ctx1) {
  205. return "Copy class...";
  206. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLCopyClassCommand.klass)})},
  207. messageSends: []}),
  208. smalltalk.HLCopyClassCommand.klass);
  209. smalltalk.addClass('HLFindCommand', smalltalk.HLToolCommand, [], 'Helios-Commands-Tools');
  210. smalltalk.addMethod(
  211. smalltalk.method({
  212. selector: "key",
  213. fn: function (){
  214. var self=this;
  215. return smalltalk.withContext(function($ctx1) {
  216. return "f";
  217. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLFindCommand.klass)})},
  218. messageSends: []}),
  219. smalltalk.HLFindCommand.klass);
  220. smalltalk.addMethod(
  221. smalltalk.method({
  222. selector: "label",
  223. fn: function (){
  224. var self=this;
  225. return smalltalk.withContext(function($ctx1) {
  226. return "Find";
  227. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLFindCommand.klass)})},
  228. messageSends: []}),
  229. smalltalk.HLFindCommand.klass);
  230. smalltalk.addClass('HLFindClassCommand', smalltalk.HLFindCommand, [], 'Helios-Commands-Tools');
  231. smalltalk.addMethod(
  232. smalltalk.method({
  233. selector: "displayLabel",
  234. fn: function (){
  235. var self=this;
  236. return smalltalk.withContext(function($ctx1) {
  237. return "select a class";
  238. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLFindClassCommand)})},
  239. messageSends: []}),
  240. smalltalk.HLFindClassCommand);
  241. smalltalk.addMethod(
  242. smalltalk.method({
  243. selector: "execute",
  244. fn: function (){
  245. var self=this;
  246. return smalltalk.withContext(function($ctx1) {
  247. _st(self._model())._openClassNamed_(self._input());
  248. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLFindClassCommand)})},
  249. messageSends: ["openClassNamed:", "input", "model"]}),
  250. smalltalk.HLFindClassCommand);
  251. smalltalk.addMethod(
  252. smalltalk.method({
  253. selector: "inputCompletion",
  254. fn: function (){
  255. var self=this;
  256. return smalltalk.withContext(function($ctx1) {
  257. var $1;
  258. $1=_st(self._model())._availableClassNames();
  259. return $1;
  260. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},smalltalk.HLFindClassCommand)})},
  261. messageSends: ["availableClassNames", "model"]}),
  262. smalltalk.HLFindClassCommand);
  263. smalltalk.addMethod(
  264. smalltalk.method({
  265. selector: "inputLabel",
  266. fn: function (){
  267. var self=this;
  268. return smalltalk.withContext(function($ctx1) {
  269. return "Find a class";
  270. }, function($ctx1) {$ctx1.fill(self,"inputLabel",{},smalltalk.HLFindClassCommand)})},
  271. messageSends: []}),
  272. smalltalk.HLFindClassCommand);
  273. smalltalk.addMethod(
  274. smalltalk.method({
  275. selector: "isInputRequired",
  276. fn: function (){
  277. var self=this;
  278. return smalltalk.withContext(function($ctx1) {
  279. return true;
  280. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLFindClassCommand)})},
  281. messageSends: []}),
  282. smalltalk.HLFindClassCommand);
  283. smalltalk.addMethod(
  284. smalltalk.method({
  285. selector: "isValidFor:",
  286. fn: function (aModel){
  287. var self=this;
  288. return smalltalk.withContext(function($ctx1) {
  289. var $1;
  290. $1=_st(aModel)._isBrowserModel();
  291. return $1;
  292. }, function($ctx1) {$ctx1.fill(self,"isValidFor:",{aModel:aModel},smalltalk.HLFindClassCommand.klass)})},
  293. messageSends: ["isBrowserModel"]}),
  294. smalltalk.HLFindClassCommand.klass);
  295. smalltalk.addMethod(
  296. smalltalk.method({
  297. selector: "key",
  298. fn: function (){
  299. var self=this;
  300. return smalltalk.withContext(function($ctx1) {
  301. return "c";
  302. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLFindClassCommand.klass)})},
  303. messageSends: []}),
  304. smalltalk.HLFindClassCommand.klass);
  305. smalltalk.addMethod(
  306. smalltalk.method({
  307. selector: "label",
  308. fn: function (){
  309. var self=this;
  310. return smalltalk.withContext(function($ctx1) {
  311. return "Class";
  312. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLFindClassCommand.klass)})},
  313. messageSends: []}),
  314. smalltalk.HLFindClassCommand.klass);
  315. smalltalk.addClass('HLFindReferencesCommand', smalltalk.HLFindCommand, [], 'Helios-Commands-Tools');
  316. smalltalk.addMethod(
  317. smalltalk.method({
  318. selector: "defaultInput",
  319. fn: function (){
  320. var self=this;
  321. return smalltalk.withContext(function($ctx1) {
  322. var $2,$3,$1;
  323. $2=_st(self._model())._selectedMethod();
  324. if(($receiver = $2) == nil || $receiver == undefined){
  325. $3=_st(self._model())._selectedClass();
  326. if(($receiver = $3) == nil || $receiver == undefined){
  327. $1="";
  328. } else {
  329. var class_;
  330. class_=$receiver;
  331. $1=_st(class_)._name();
  332. };
  333. } else {
  334. var method;
  335. method=$receiver;
  336. $1=_st(method)._selector();
  337. };
  338. return $1;
  339. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},smalltalk.HLFindReferencesCommand)})},
  340. messageSends: ["ifNil:ifNotNil:", "name", "selectedClass", "model", "selector", "selectedMethod"]}),
  341. smalltalk.HLFindReferencesCommand);
  342. smalltalk.addMethod(
  343. smalltalk.method({
  344. selector: "displayLabel",
  345. fn: function (){
  346. var self=this;
  347. return smalltalk.withContext(function($ctx1) {
  348. return "find references";
  349. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLFindReferencesCommand)})},
  350. messageSends: []}),
  351. smalltalk.HLFindReferencesCommand);
  352. smalltalk.addMethod(
  353. smalltalk.method({
  354. selector: "execute",
  355. fn: function (){
  356. var self=this;
  357. function $HLReferences(){return smalltalk.HLReferences||(typeof HLReferences=="undefined"?nil:HLReferences)}
  358. return smalltalk.withContext(function($ctx1) {
  359. var $1,$2;
  360. $1=_st($HLReferences())._new();
  361. _st($1)._openAsTab();
  362. $2=_st($1)._search_(self._input());
  363. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLFindReferencesCommand)})},
  364. messageSends: ["openAsTab", "new", "search:", "input"]}),
  365. smalltalk.HLFindReferencesCommand);
  366. smalltalk.addMethod(
  367. smalltalk.method({
  368. selector: "inputCompletion",
  369. fn: function (){
  370. var self=this;
  371. return smalltalk.withContext(function($ctx1) {
  372. var $1;
  373. $1=_st(_st(self._model())._availableClassNames()).__comma(_st(self._model())._allSelectors());
  374. return $1;
  375. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},smalltalk.HLFindReferencesCommand)})},
  376. messageSends: [",", "allSelectors", "model", "availableClassNames"]}),
  377. smalltalk.HLFindReferencesCommand);
  378. smalltalk.addMethod(
  379. smalltalk.method({
  380. selector: "inputLabel",
  381. fn: function (){
  382. var self=this;
  383. return smalltalk.withContext(function($ctx1) {
  384. return "Find references of";
  385. }, function($ctx1) {$ctx1.fill(self,"inputLabel",{},smalltalk.HLFindReferencesCommand)})},
  386. messageSends: []}),
  387. smalltalk.HLFindReferencesCommand);
  388. smalltalk.addMethod(
  389. smalltalk.method({
  390. selector: "isInputRequired",
  391. fn: function (){
  392. var self=this;
  393. return smalltalk.withContext(function($ctx1) {
  394. return true;
  395. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLFindReferencesCommand)})},
  396. messageSends: []}),
  397. smalltalk.HLFindReferencesCommand);
  398. smalltalk.addMethod(
  399. smalltalk.method({
  400. selector: "key",
  401. fn: function (){
  402. var self=this;
  403. return smalltalk.withContext(function($ctx1) {
  404. return "r";
  405. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLFindReferencesCommand.klass)})},
  406. messageSends: []}),
  407. smalltalk.HLFindReferencesCommand.klass);
  408. smalltalk.addMethod(
  409. smalltalk.method({
  410. selector: "label",
  411. fn: function (){
  412. var self=this;
  413. return smalltalk.withContext(function($ctx1) {
  414. return "References";
  415. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLFindReferencesCommand.klass)})},
  416. messageSends: []}),
  417. smalltalk.HLFindReferencesCommand.klass);
  418. smalltalk.addClass('HLMoveToCommand', smalltalk.HLToolCommand, [], 'Helios-Commands-Tools');
  419. smalltalk.addMethod(
  420. smalltalk.method({
  421. selector: "key",
  422. fn: function (){
  423. var self=this;
  424. return smalltalk.withContext(function($ctx1) {
  425. return "m";
  426. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveToCommand.klass)})},
  427. messageSends: []}),
  428. smalltalk.HLMoveToCommand.klass);
  429. smalltalk.addMethod(
  430. smalltalk.method({
  431. selector: "label",
  432. fn: function (){
  433. var self=this;
  434. return smalltalk.withContext(function($ctx1) {
  435. return "Move";
  436. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveToCommand.klass)})},
  437. messageSends: []}),
  438. smalltalk.HLMoveToCommand.klass);
  439. smalltalk.addClass('HLMoveClassToCommand', smalltalk.HLMoveToCommand, [], 'Helios-Commands-Tools');
  440. smalltalk.addMethod(
  441. smalltalk.method({
  442. selector: "isActive",
  443. fn: function (){
  444. var self=this;
  445. return smalltalk.withContext(function($ctx1) {
  446. var $1;
  447. $1=_st(_st(self._model())._selectedClass())._notNil();
  448. return $1;
  449. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLMoveClassToCommand)})},
  450. messageSends: ["notNil", "selectedClass", "model"]}),
  451. smalltalk.HLMoveClassToCommand);
  452. smalltalk.addMethod(
  453. smalltalk.method({
  454. selector: "key",
  455. fn: function (){
  456. var self=this;
  457. return smalltalk.withContext(function($ctx1) {
  458. return "c";
  459. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveClassToCommand.klass)})},
  460. messageSends: []}),
  461. smalltalk.HLMoveClassToCommand.klass);
  462. smalltalk.addMethod(
  463. smalltalk.method({
  464. selector: "label",
  465. fn: function (){
  466. var self=this;
  467. return smalltalk.withContext(function($ctx1) {
  468. return "Class";
  469. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveClassToCommand.klass)})},
  470. messageSends: []}),
  471. smalltalk.HLMoveClassToCommand.klass);
  472. smalltalk.addClass('HLMoveClassToPackageCommand', smalltalk.HLMoveClassToCommand, [], 'Helios-Commands-Tools');
  473. smalltalk.addMethod(
  474. smalltalk.method({
  475. selector: "category",
  476. fn: function (){
  477. var self=this;
  478. return smalltalk.withContext(function($ctx1) {
  479. return "Classes";
  480. }, function($ctx1) {$ctx1.fill(self,"category",{},smalltalk.HLMoveClassToPackageCommand)})},
  481. messageSends: []}),
  482. smalltalk.HLMoveClassToPackageCommand);
  483. smalltalk.addMethod(
  484. smalltalk.method({
  485. selector: "displayLabel",
  486. fn: function (){
  487. var self=this;
  488. return smalltalk.withContext(function($ctx1) {
  489. return "select a package";
  490. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLMoveClassToPackageCommand)})},
  491. messageSends: []}),
  492. smalltalk.HLMoveClassToPackageCommand);
  493. smalltalk.addMethod(
  494. smalltalk.method({
  495. selector: "execute",
  496. fn: function (){
  497. var self=this;
  498. return smalltalk.withContext(function($ctx1) {
  499. _st(self._model())._moveClassToPackage_(self._input());
  500. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLMoveClassToPackageCommand)})},
  501. messageSends: ["moveClassToPackage:", "input", "model"]}),
  502. smalltalk.HLMoveClassToPackageCommand);
  503. smalltalk.addMethod(
  504. smalltalk.method({
  505. selector: "inputCompletion",
  506. fn: function (){
  507. var self=this;
  508. return smalltalk.withContext(function($ctx1) {
  509. var $1;
  510. $1=_st(self._model())._availablePackageNames();
  511. return $1;
  512. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},smalltalk.HLMoveClassToPackageCommand)})},
  513. messageSends: ["availablePackageNames", "model"]}),
  514. smalltalk.HLMoveClassToPackageCommand);
  515. smalltalk.addMethod(
  516. smalltalk.method({
  517. selector: "inputLabel",
  518. fn: function (){
  519. var self=this;
  520. return smalltalk.withContext(function($ctx1) {
  521. return "Move class to package:";
  522. }, function($ctx1) {$ctx1.fill(self,"inputLabel",{},smalltalk.HLMoveClassToPackageCommand)})},
  523. messageSends: []}),
  524. smalltalk.HLMoveClassToPackageCommand);
  525. smalltalk.addMethod(
  526. smalltalk.method({
  527. selector: "isInputRequired",
  528. fn: function (){
  529. var self=this;
  530. return smalltalk.withContext(function($ctx1) {
  531. return true;
  532. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLMoveClassToPackageCommand)})},
  533. messageSends: []}),
  534. smalltalk.HLMoveClassToPackageCommand);
  535. smalltalk.addMethod(
  536. smalltalk.method({
  537. selector: "key",
  538. fn: function (){
  539. var self=this;
  540. return smalltalk.withContext(function($ctx1) {
  541. return "p";
  542. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveClassToPackageCommand.klass)})},
  543. messageSends: []}),
  544. smalltalk.HLMoveClassToPackageCommand.klass);
  545. smalltalk.addMethod(
  546. smalltalk.method({
  547. selector: "label",
  548. fn: function (){
  549. var self=this;
  550. return smalltalk.withContext(function($ctx1) {
  551. return "to package";
  552. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveClassToPackageCommand.klass)})},
  553. messageSends: []}),
  554. smalltalk.HLMoveClassToPackageCommand.klass);
  555. smalltalk.addMethod(
  556. smalltalk.method({
  557. selector: "menuLabel",
  558. fn: function (){
  559. var self=this;
  560. return smalltalk.withContext(function($ctx1) {
  561. return "Move to package...";
  562. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLMoveClassToPackageCommand.klass)})},
  563. messageSends: []}),
  564. smalltalk.HLMoveClassToPackageCommand.klass);
  565. smalltalk.addClass('HLMoveMethodToCommand', smalltalk.HLMoveToCommand, [], 'Helios-Commands-Tools');
  566. smalltalk.addMethod(
  567. smalltalk.method({
  568. selector: "category",
  569. fn: function (){
  570. var self=this;
  571. return smalltalk.withContext(function($ctx1) {
  572. return "Methods";
  573. }, function($ctx1) {$ctx1.fill(self,"category",{},smalltalk.HLMoveMethodToCommand)})},
  574. messageSends: []}),
  575. smalltalk.HLMoveMethodToCommand);
  576. smalltalk.addMethod(
  577. smalltalk.method({
  578. selector: "isActive",
  579. fn: function (){
  580. var self=this;
  581. return smalltalk.withContext(function($ctx1) {
  582. var $1;
  583. $1=_st(_st(self._model())._selectedMethod())._notNil();
  584. return $1;
  585. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLMoveMethodToCommand)})},
  586. messageSends: ["notNil", "selectedMethod", "model"]}),
  587. smalltalk.HLMoveMethodToCommand);
  588. smalltalk.addMethod(
  589. smalltalk.method({
  590. selector: "key",
  591. fn: function (){
  592. var self=this;
  593. return smalltalk.withContext(function($ctx1) {
  594. return "m";
  595. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToCommand.klass)})},
  596. messageSends: []}),
  597. smalltalk.HLMoveMethodToCommand.klass);
  598. smalltalk.addMethod(
  599. smalltalk.method({
  600. selector: "label",
  601. fn: function (){
  602. var self=this;
  603. return smalltalk.withContext(function($ctx1) {
  604. return "Method";
  605. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToCommand.klass)})},
  606. messageSends: []}),
  607. smalltalk.HLMoveMethodToCommand.klass);
  608. smalltalk.addClass('HLMoveMethodToClassCommand', smalltalk.HLMoveMethodToCommand, [], 'Helios-Commands-Tools');
  609. smalltalk.addMethod(
  610. smalltalk.method({
  611. selector: "displayLabel",
  612. fn: function (){
  613. var self=this;
  614. return smalltalk.withContext(function($ctx1) {
  615. return "select a class";
  616. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLMoveMethodToClassCommand)})},
  617. messageSends: []}),
  618. smalltalk.HLMoveMethodToClassCommand);
  619. smalltalk.addMethod(
  620. smalltalk.method({
  621. selector: "execute",
  622. fn: function (){
  623. var self=this;
  624. return smalltalk.withContext(function($ctx1) {
  625. _st(self._model())._moveMethodToClass_(self._input());
  626. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLMoveMethodToClassCommand)})},
  627. messageSends: ["moveMethodToClass:", "input", "model"]}),
  628. smalltalk.HLMoveMethodToClassCommand);
  629. smalltalk.addMethod(
  630. smalltalk.method({
  631. selector: "inputCompletion",
  632. fn: function (){
  633. var self=this;
  634. return smalltalk.withContext(function($ctx1) {
  635. var $1;
  636. $1=_st(self._model())._availableClassNames();
  637. return $1;
  638. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},smalltalk.HLMoveMethodToClassCommand)})},
  639. messageSends: ["availableClassNames", "model"]}),
  640. smalltalk.HLMoveMethodToClassCommand);
  641. smalltalk.addMethod(
  642. smalltalk.method({
  643. selector: "inputLabel",
  644. fn: function (){
  645. var self=this;
  646. return smalltalk.withContext(function($ctx1) {
  647. return "Move method to class:";
  648. }, function($ctx1) {$ctx1.fill(self,"inputLabel",{},smalltalk.HLMoveMethodToClassCommand)})},
  649. messageSends: []}),
  650. smalltalk.HLMoveMethodToClassCommand);
  651. smalltalk.addMethod(
  652. smalltalk.method({
  653. selector: "isInputRequired",
  654. fn: function (){
  655. var self=this;
  656. return smalltalk.withContext(function($ctx1) {
  657. return true;
  658. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLMoveMethodToClassCommand)})},
  659. messageSends: []}),
  660. smalltalk.HLMoveMethodToClassCommand);
  661. smalltalk.addMethod(
  662. smalltalk.method({
  663. selector: "key",
  664. fn: function (){
  665. var self=this;
  666. return smalltalk.withContext(function($ctx1) {
  667. return "c";
  668. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  669. messageSends: []}),
  670. smalltalk.HLMoveMethodToClassCommand.klass);
  671. smalltalk.addMethod(
  672. smalltalk.method({
  673. selector: "label",
  674. fn: function (){
  675. var self=this;
  676. return smalltalk.withContext(function($ctx1) {
  677. return "to class";
  678. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  679. messageSends: []}),
  680. smalltalk.HLMoveMethodToClassCommand.klass);
  681. smalltalk.addMethod(
  682. smalltalk.method({
  683. selector: "menuLabel",
  684. fn: function (){
  685. var self=this;
  686. return smalltalk.withContext(function($ctx1) {
  687. return "Move to class...";
  688. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLMoveMethodToClassCommand.klass)})},
  689. messageSends: []}),
  690. smalltalk.HLMoveMethodToClassCommand.klass);
  691. smalltalk.addClass('HLMoveMethodToProtocolCommand', smalltalk.HLMoveMethodToCommand, [], 'Helios-Commands-Tools');
  692. smalltalk.addMethod(
  693. smalltalk.method({
  694. selector: "displayLabel",
  695. fn: function (){
  696. var self=this;
  697. return smalltalk.withContext(function($ctx1) {
  698. return "select a protocol";
  699. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  700. messageSends: []}),
  701. smalltalk.HLMoveMethodToProtocolCommand);
  702. smalltalk.addMethod(
  703. smalltalk.method({
  704. selector: "execute",
  705. fn: function (){
  706. var self=this;
  707. return smalltalk.withContext(function($ctx1) {
  708. _st(self._model())._moveMethodToProtocol_(self._input());
  709. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  710. messageSends: ["moveMethodToProtocol:", "input", "model"]}),
  711. smalltalk.HLMoveMethodToProtocolCommand);
  712. smalltalk.addMethod(
  713. smalltalk.method({
  714. selector: "inputCompletion",
  715. fn: function (){
  716. var self=this;
  717. return smalltalk.withContext(function($ctx1) {
  718. var $1;
  719. $1=_st(self._model())._availableProtocols();
  720. return $1;
  721. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  722. messageSends: ["availableProtocols", "model"]}),
  723. smalltalk.HLMoveMethodToProtocolCommand);
  724. smalltalk.addMethod(
  725. smalltalk.method({
  726. selector: "inputLabel",
  727. fn: function (){
  728. var self=this;
  729. return smalltalk.withContext(function($ctx1) {
  730. return "Move method to a protocol:";
  731. }, function($ctx1) {$ctx1.fill(self,"inputLabel",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  732. messageSends: []}),
  733. smalltalk.HLMoveMethodToProtocolCommand);
  734. smalltalk.addMethod(
  735. smalltalk.method({
  736. selector: "isInputRequired",
  737. fn: function (){
  738. var self=this;
  739. return smalltalk.withContext(function($ctx1) {
  740. return true;
  741. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLMoveMethodToProtocolCommand)})},
  742. messageSends: []}),
  743. smalltalk.HLMoveMethodToProtocolCommand);
  744. smalltalk.addMethod(
  745. smalltalk.method({
  746. selector: "key",
  747. fn: function (){
  748. var self=this;
  749. return smalltalk.withContext(function($ctx1) {
  750. return "t";
  751. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  752. messageSends: []}),
  753. smalltalk.HLMoveMethodToProtocolCommand.klass);
  754. smalltalk.addMethod(
  755. smalltalk.method({
  756. selector: "label",
  757. fn: function (){
  758. var self=this;
  759. return smalltalk.withContext(function($ctx1) {
  760. return "to protocol";
  761. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  762. messageSends: []}),
  763. smalltalk.HLMoveMethodToProtocolCommand.klass);
  764. smalltalk.addMethod(
  765. smalltalk.method({
  766. selector: "menuLabel",
  767. fn: function (){
  768. var self=this;
  769. return smalltalk.withContext(function($ctx1) {
  770. return "Move to protocol...";
  771. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLMoveMethodToProtocolCommand.klass)})},
  772. messageSends: []}),
  773. smalltalk.HLMoveMethodToProtocolCommand.klass);
  774. smalltalk.addClass('HLRemoveCommand', smalltalk.HLToolCommand, [], 'Helios-Commands-Tools');
  775. smalltalk.addMethod(
  776. smalltalk.method({
  777. selector: "key",
  778. fn: function (){
  779. var self=this;
  780. return smalltalk.withContext(function($ctx1) {
  781. return "x";
  782. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLRemoveCommand.klass)})},
  783. messageSends: []}),
  784. smalltalk.HLRemoveCommand.klass);
  785. smalltalk.addMethod(
  786. smalltalk.method({
  787. selector: "label",
  788. fn: function (){
  789. var self=this;
  790. return smalltalk.withContext(function($ctx1) {
  791. return "Remove";
  792. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRemoveCommand.klass)})},
  793. messageSends: []}),
  794. smalltalk.HLRemoveCommand.klass);
  795. smalltalk.addClass('HLRemoveClassCommand', smalltalk.HLRemoveCommand, [], 'Helios-Commands-Tools');
  796. smalltalk.addMethod(
  797. smalltalk.method({
  798. selector: "category",
  799. fn: function (){
  800. var self=this;
  801. return smalltalk.withContext(function($ctx1) {
  802. return "Classes";
  803. }, function($ctx1) {$ctx1.fill(self,"category",{},smalltalk.HLRemoveClassCommand)})},
  804. messageSends: []}),
  805. smalltalk.HLRemoveClassCommand);
  806. smalltalk.addMethod(
  807. smalltalk.method({
  808. selector: "execute",
  809. fn: function (){
  810. var self=this;
  811. return smalltalk.withContext(function($ctx1) {
  812. _st(self._model())._removeClass();
  813. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLRemoveClassCommand)})},
  814. messageSends: ["removeClass", "model"]}),
  815. smalltalk.HLRemoveClassCommand);
  816. smalltalk.addMethod(
  817. smalltalk.method({
  818. selector: "isActive",
  819. fn: function (){
  820. var self=this;
  821. return smalltalk.withContext(function($ctx1) {
  822. var $1;
  823. $1=_st(_st(self._model())._selectedClass())._notNil();
  824. return $1;
  825. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLRemoveClassCommand)})},
  826. messageSends: ["notNil", "selectedClass", "model"]}),
  827. smalltalk.HLRemoveClassCommand);
  828. smalltalk.addMethod(
  829. smalltalk.method({
  830. selector: "key",
  831. fn: function (){
  832. var self=this;
  833. return smalltalk.withContext(function($ctx1) {
  834. return "c";
  835. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLRemoveClassCommand.klass)})},
  836. messageSends: []}),
  837. smalltalk.HLRemoveClassCommand.klass);
  838. smalltalk.addMethod(
  839. smalltalk.method({
  840. selector: "label",
  841. fn: function (){
  842. var self=this;
  843. return smalltalk.withContext(function($ctx1) {
  844. return "Class";
  845. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRemoveClassCommand.klass)})},
  846. messageSends: []}),
  847. smalltalk.HLRemoveClassCommand.klass);
  848. smalltalk.addMethod(
  849. smalltalk.method({
  850. selector: "menuLabel",
  851. fn: function (){
  852. var self=this;
  853. return smalltalk.withContext(function($ctx1) {
  854. return "Remove class";
  855. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLRemoveClassCommand.klass)})},
  856. messageSends: []}),
  857. smalltalk.HLRemoveClassCommand.klass);
  858. smalltalk.addClass('HLRemoveMethodCommand', smalltalk.HLRemoveCommand, [], 'Helios-Commands-Tools');
  859. smalltalk.addMethod(
  860. smalltalk.method({
  861. selector: "category",
  862. fn: function (){
  863. var self=this;
  864. return smalltalk.withContext(function($ctx1) {
  865. return "Methods";
  866. }, function($ctx1) {$ctx1.fill(self,"category",{},smalltalk.HLRemoveMethodCommand)})},
  867. messageSends: []}),
  868. smalltalk.HLRemoveMethodCommand);
  869. smalltalk.addMethod(
  870. smalltalk.method({
  871. selector: "execute",
  872. fn: function (){
  873. var self=this;
  874. return smalltalk.withContext(function($ctx1) {
  875. _st(self._model())._removeMethod();
  876. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLRemoveMethodCommand)})},
  877. messageSends: ["removeMethod", "model"]}),
  878. smalltalk.HLRemoveMethodCommand);
  879. smalltalk.addMethod(
  880. smalltalk.method({
  881. selector: "isActive",
  882. fn: function (){
  883. var self=this;
  884. return smalltalk.withContext(function($ctx1) {
  885. var $1;
  886. $1=_st(_st(self._model())._selectedMethod())._notNil();
  887. return $1;
  888. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLRemoveMethodCommand)})},
  889. messageSends: ["notNil", "selectedMethod", "model"]}),
  890. smalltalk.HLRemoveMethodCommand);
  891. smalltalk.addMethod(
  892. smalltalk.method({
  893. selector: "key",
  894. fn: function (){
  895. var self=this;
  896. return smalltalk.withContext(function($ctx1) {
  897. return "m";
  898. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLRemoveMethodCommand.klass)})},
  899. messageSends: []}),
  900. smalltalk.HLRemoveMethodCommand.klass);
  901. smalltalk.addMethod(
  902. smalltalk.method({
  903. selector: "label",
  904. fn: function (){
  905. var self=this;
  906. return smalltalk.withContext(function($ctx1) {
  907. return "Method";
  908. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRemoveMethodCommand.klass)})},
  909. messageSends: []}),
  910. smalltalk.HLRemoveMethodCommand.klass);
  911. smalltalk.addMethod(
  912. smalltalk.method({
  913. selector: "menuLabel",
  914. fn: function (){
  915. var self=this;
  916. return smalltalk.withContext(function($ctx1) {
  917. return "Remove method";
  918. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLRemoveMethodCommand.klass)})},
  919. messageSends: []}),
  920. smalltalk.HLRemoveMethodCommand.klass);
  921. smalltalk.addClass('HLRemoveProtocolCommand', smalltalk.HLRemoveCommand, [], 'Helios-Commands-Tools');
  922. smalltalk.addMethod(
  923. smalltalk.method({
  924. selector: "category",
  925. fn: function (){
  926. var self=this;
  927. return smalltalk.withContext(function($ctx1) {
  928. return "Protocols";
  929. }, function($ctx1) {$ctx1.fill(self,"category",{},smalltalk.HLRemoveProtocolCommand)})},
  930. messageSends: []}),
  931. smalltalk.HLRemoveProtocolCommand);
  932. smalltalk.addMethod(
  933. smalltalk.method({
  934. selector: "execute",
  935. fn: function (){
  936. var self=this;
  937. return smalltalk.withContext(function($ctx1) {
  938. _st(self._model())._removeProtocol();
  939. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLRemoveProtocolCommand)})},
  940. messageSends: ["removeProtocol", "model"]}),
  941. smalltalk.HLRemoveProtocolCommand);
  942. smalltalk.addMethod(
  943. smalltalk.method({
  944. selector: "isActive",
  945. fn: function (){
  946. var self=this;
  947. return smalltalk.withContext(function($ctx1) {
  948. var $1;
  949. $1=_st(_st(self._model())._selectedProtocol())._notNil();
  950. return $1;
  951. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLRemoveProtocolCommand)})},
  952. messageSends: ["notNil", "selectedProtocol", "model"]}),
  953. smalltalk.HLRemoveProtocolCommand);
  954. smalltalk.addMethod(
  955. smalltalk.method({
  956. selector: "key",
  957. fn: function (){
  958. var self=this;
  959. return smalltalk.withContext(function($ctx1) {
  960. return "t";
  961. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLRemoveProtocolCommand.klass)})},
  962. messageSends: []}),
  963. smalltalk.HLRemoveProtocolCommand.klass);
  964. smalltalk.addMethod(
  965. smalltalk.method({
  966. selector: "label",
  967. fn: function (){
  968. var self=this;
  969. return smalltalk.withContext(function($ctx1) {
  970. return "Protocol";
  971. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRemoveProtocolCommand.klass)})},
  972. messageSends: []}),
  973. smalltalk.HLRemoveProtocolCommand.klass);
  974. smalltalk.addMethod(
  975. smalltalk.method({
  976. selector: "menuLabel",
  977. fn: function (){
  978. var self=this;
  979. return smalltalk.withContext(function($ctx1) {
  980. return "Remove protocol";
  981. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLRemoveProtocolCommand.klass)})},
  982. messageSends: []}),
  983. smalltalk.HLRemoveProtocolCommand.klass);
  984. smalltalk.addClass('HLRenameCommand', smalltalk.HLToolCommand, [], 'Helios-Commands-Tools');
  985. smalltalk.addMethod(
  986. smalltalk.method({
  987. selector: "key",
  988. fn: function (){
  989. var self=this;
  990. return smalltalk.withContext(function($ctx1) {
  991. return "r";
  992. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLRenameCommand.klass)})},
  993. messageSends: []}),
  994. smalltalk.HLRenameCommand.klass);
  995. smalltalk.addMethod(
  996. smalltalk.method({
  997. selector: "label",
  998. fn: function (){
  999. var self=this;
  1000. return smalltalk.withContext(function($ctx1) {
  1001. return "Rename";
  1002. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRenameCommand.klass)})},
  1003. messageSends: []}),
  1004. smalltalk.HLRenameCommand.klass);
  1005. smalltalk.addClass('HLRenameClassCommand', smalltalk.HLRenameCommand, [], 'Helios-Commands-Tools');
  1006. smalltalk.addMethod(
  1007. smalltalk.method({
  1008. selector: "category",
  1009. fn: function (){
  1010. var self=this;
  1011. return smalltalk.withContext(function($ctx1) {
  1012. return "Classes";
  1013. }, function($ctx1) {$ctx1.fill(self,"category",{},smalltalk.HLRenameClassCommand)})},
  1014. messageSends: []}),
  1015. smalltalk.HLRenameClassCommand);
  1016. smalltalk.addMethod(
  1017. smalltalk.method({
  1018. selector: "defaultInput",
  1019. fn: function (){
  1020. var self=this;
  1021. return smalltalk.withContext(function($ctx1) {
  1022. var $1;
  1023. $1=_st(_st(self._model())._selectedClass())._name();
  1024. return $1;
  1025. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},smalltalk.HLRenameClassCommand)})},
  1026. messageSends: ["name", "selectedClass", "model"]}),
  1027. smalltalk.HLRenameClassCommand);
  1028. smalltalk.addMethod(
  1029. smalltalk.method({
  1030. selector: "displayLabel",
  1031. fn: function (){
  1032. var self=this;
  1033. return smalltalk.withContext(function($ctx1) {
  1034. return "Rename class to:";
  1035. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLRenameClassCommand)})},
  1036. messageSends: []}),
  1037. smalltalk.HLRenameClassCommand);
  1038. smalltalk.addMethod(
  1039. smalltalk.method({
  1040. selector: "execute",
  1041. fn: function (){
  1042. var self=this;
  1043. return smalltalk.withContext(function($ctx1) {
  1044. _st(self._model())._renameClassTo_(self._input());
  1045. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLRenameClassCommand)})},
  1046. messageSends: ["renameClassTo:", "input", "model"]}),
  1047. smalltalk.HLRenameClassCommand);
  1048. smalltalk.addMethod(
  1049. smalltalk.method({
  1050. selector: "isActive",
  1051. fn: function (){
  1052. var self=this;
  1053. return smalltalk.withContext(function($ctx1) {
  1054. var $1;
  1055. $1=_st(_st(self._model())._selectedClass())._notNil();
  1056. return $1;
  1057. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLRenameClassCommand)})},
  1058. messageSends: ["notNil", "selectedClass", "model"]}),
  1059. smalltalk.HLRenameClassCommand);
  1060. smalltalk.addMethod(
  1061. smalltalk.method({
  1062. selector: "isInputRequired",
  1063. fn: function (){
  1064. var self=this;
  1065. return smalltalk.withContext(function($ctx1) {
  1066. return true;
  1067. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLRenameClassCommand)})},
  1068. messageSends: []}),
  1069. smalltalk.HLRenameClassCommand);
  1070. smalltalk.addMethod(
  1071. smalltalk.method({
  1072. selector: "key",
  1073. fn: function (){
  1074. var self=this;
  1075. return smalltalk.withContext(function($ctx1) {
  1076. return "c";
  1077. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLRenameClassCommand.klass)})},
  1078. messageSends: []}),
  1079. smalltalk.HLRenameClassCommand.klass);
  1080. smalltalk.addMethod(
  1081. smalltalk.method({
  1082. selector: "label",
  1083. fn: function (){
  1084. var self=this;
  1085. return smalltalk.withContext(function($ctx1) {
  1086. return "Class";
  1087. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRenameClassCommand.klass)})},
  1088. messageSends: []}),
  1089. smalltalk.HLRenameClassCommand.klass);
  1090. smalltalk.addMethod(
  1091. smalltalk.method({
  1092. selector: "menuLabel",
  1093. fn: function (){
  1094. var self=this;
  1095. return smalltalk.withContext(function($ctx1) {
  1096. return "Rename class...";
  1097. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLRenameClassCommand.klass)})},
  1098. messageSends: []}),
  1099. smalltalk.HLRenameClassCommand.klass);
  1100. smalltalk.addClass('HLRenameProtocolCommand', smalltalk.HLRenameCommand, [], 'Helios-Commands-Tools');
  1101. smalltalk.addMethod(
  1102. smalltalk.method({
  1103. selector: "category",
  1104. fn: function (){
  1105. var self=this;
  1106. return smalltalk.withContext(function($ctx1) {
  1107. return "Protocols";
  1108. }, function($ctx1) {$ctx1.fill(self,"category",{},smalltalk.HLRenameProtocolCommand)})},
  1109. messageSends: []}),
  1110. smalltalk.HLRenameProtocolCommand);
  1111. smalltalk.addMethod(
  1112. smalltalk.method({
  1113. selector: "defaultInput",
  1114. fn: function (){
  1115. var self=this;
  1116. return smalltalk.withContext(function($ctx1) {
  1117. var $1;
  1118. $1=_st(self._model())._selectedProtocol();
  1119. return $1;
  1120. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},smalltalk.HLRenameProtocolCommand)})},
  1121. messageSends: ["selectedProtocol", "model"]}),
  1122. smalltalk.HLRenameProtocolCommand);
  1123. smalltalk.addMethod(
  1124. smalltalk.method({
  1125. selector: "displayLabel",
  1126. fn: function (){
  1127. var self=this;
  1128. return smalltalk.withContext(function($ctx1) {
  1129. return "Rename protocol to:";
  1130. }, function($ctx1) {$ctx1.fill(self,"displayLabel",{},smalltalk.HLRenameProtocolCommand)})},
  1131. messageSends: []}),
  1132. smalltalk.HLRenameProtocolCommand);
  1133. smalltalk.addMethod(
  1134. smalltalk.method({
  1135. selector: "execute",
  1136. fn: function (){
  1137. var self=this;
  1138. return smalltalk.withContext(function($ctx1) {
  1139. _st(self._model())._renameProtocolTo_(self._input());
  1140. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLRenameProtocolCommand)})},
  1141. messageSends: ["renameProtocolTo:", "input", "model"]}),
  1142. smalltalk.HLRenameProtocolCommand);
  1143. smalltalk.addMethod(
  1144. smalltalk.method({
  1145. selector: "isActive",
  1146. fn: function (){
  1147. var self=this;
  1148. return smalltalk.withContext(function($ctx1) {
  1149. var $1;
  1150. $1=_st(_st(self._model())._selectedProtocol())._notNil();
  1151. return $1;
  1152. }, function($ctx1) {$ctx1.fill(self,"isActive",{},smalltalk.HLRenameProtocolCommand)})},
  1153. messageSends: ["notNil", "selectedProtocol", "model"]}),
  1154. smalltalk.HLRenameProtocolCommand);
  1155. smalltalk.addMethod(
  1156. smalltalk.method({
  1157. selector: "isInputRequired",
  1158. fn: function (){
  1159. var self=this;
  1160. return smalltalk.withContext(function($ctx1) {
  1161. return true;
  1162. }, function($ctx1) {$ctx1.fill(self,"isInputRequired",{},smalltalk.HLRenameProtocolCommand)})},
  1163. messageSends: []}),
  1164. smalltalk.HLRenameProtocolCommand);
  1165. smalltalk.addMethod(
  1166. smalltalk.method({
  1167. selector: "key",
  1168. fn: function (){
  1169. var self=this;
  1170. return smalltalk.withContext(function($ctx1) {
  1171. return "t";
  1172. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLRenameProtocolCommand.klass)})},
  1173. messageSends: []}),
  1174. smalltalk.HLRenameProtocolCommand.klass);
  1175. smalltalk.addMethod(
  1176. smalltalk.method({
  1177. selector: "label",
  1178. fn: function (){
  1179. var self=this;
  1180. return smalltalk.withContext(function($ctx1) {
  1181. return "Protocol";
  1182. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLRenameProtocolCommand.klass)})},
  1183. messageSends: []}),
  1184. smalltalk.HLRenameProtocolCommand.klass);
  1185. smalltalk.addMethod(
  1186. smalltalk.method({
  1187. selector: "menuLabel",
  1188. fn: function (){
  1189. var self=this;
  1190. return smalltalk.withContext(function($ctx1) {
  1191. return "Rename protocol...";
  1192. }, function($ctx1) {$ctx1.fill(self,"menuLabel",{},smalltalk.HLRenameProtocolCommand.klass)})},
  1193. messageSends: []}),
  1194. smalltalk.HLRenameProtocolCommand.klass);
  1195. });