Helios-Commands-Tools.deploy.js 39 KB

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