Helios-Commands-Tools.deploy.js 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346
  1. define("amber_core/Helios-Commands-Tools", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "amber_core/Helios-Commands-Core"], function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Helios-Commands-Tools');
  3. smalltalk.packages["Helios-Commands-Tools"].transport = {"type":"amd","amdNamespace":"amber_core"};
  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. });