Helios-Commands-Tools.js 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665
  1. define("helios/Helios-Commands-Tools", ["amber/boot", "helios/Helios-Commands-Core"], function($boot){
  2. var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
  3. $core.addPackage('Helios-Commands-Tools');
  4. $core.packages["Helios-Commands-Tools"].innerEval = function (expr) { return eval(expr); };
  5. $core.packages["Helios-Commands-Tools"].transport = {"type":"amd","amdNamespace":"helios"};
  6. $core.addClass('HLToolCommand', $globals.HLModelCommand, [], 'Helios-Commands-Tools');
  7. $core.addMethod(
  8. $core.method({
  9. selector: "category",
  10. protocol: 'accessing',
  11. fn: function (){
  12. var self=this;
  13. return nil;
  14. },
  15. //>>excludeStart("ide", pragmas.excludeIdeData);
  16. args: [],
  17. source: "category\x0a\x09^ nil",
  18. referencedClasses: [],
  19. //>>excludeEnd("ide");
  20. messageSends: []
  21. }),
  22. $globals.HLToolCommand);
  23. $core.addMethod(
  24. $core.method({
  25. selector: "for:",
  26. protocol: 'instance creation',
  27. fn: function (aToolModel){
  28. var self=this;
  29. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  30. return $core.withContext(function($ctx1) {
  31. //>>excludeEnd("ctx");
  32. var $2,$3,$1;
  33. $2=self._new();
  34. $recv($2)._model_(aToolModel);
  35. $3=$recv($2)._yourself();
  36. $1=$3;
  37. return $1;
  38. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  39. }, function($ctx1) {$ctx1.fill(self,"for:",{aToolModel:aToolModel},$globals.HLToolCommand.klass)});
  40. //>>excludeEnd("ctx");
  41. },
  42. //>>excludeStart("ide", pragmas.excludeIdeData);
  43. args: ["aToolModel"],
  44. source: "for: aToolModel\x0a\x09^ self new\x0a \x09model: aToolModel;\x0a yourself",
  45. referencedClasses: [],
  46. //>>excludeEnd("ide");
  47. messageSends: ["model:", "new", "yourself"]
  48. }),
  49. $globals.HLToolCommand.klass);
  50. $core.addMethod(
  51. $core.method({
  52. selector: "isValidFor:",
  53. protocol: 'testing',
  54. fn: function (aModel){
  55. var self=this;
  56. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  57. return $core.withContext(function($ctx1) {
  58. //>>excludeEnd("ctx");
  59. var $1;
  60. $1=$recv(aModel)._isToolModel();
  61. return $1;
  62. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  63. }, function($ctx1) {$ctx1.fill(self,"isValidFor:",{aModel:aModel},$globals.HLToolCommand.klass)});
  64. //>>excludeEnd("ctx");
  65. },
  66. //>>excludeStart("ide", pragmas.excludeIdeData);
  67. args: ["aModel"],
  68. source: "isValidFor: aModel\x0a\x09^ aModel isToolModel",
  69. referencedClasses: [],
  70. //>>excludeEnd("ide");
  71. messageSends: ["isToolModel"]
  72. }),
  73. $globals.HLToolCommand.klass);
  74. $core.addClass('HLBrowseMethodCommand', $globals.HLToolCommand, [], 'Helios-Commands-Tools');
  75. $core.addMethod(
  76. $core.method({
  77. selector: "displayLabel",
  78. protocol: 'accessing',
  79. fn: function (){
  80. var self=this;
  81. return "browse method";
  82. },
  83. //>>excludeStart("ide", pragmas.excludeIdeData);
  84. args: [],
  85. source: "displayLabel\x0a\x09^ 'browse method'",
  86. referencedClasses: [],
  87. //>>excludeEnd("ide");
  88. messageSends: []
  89. }),
  90. $globals.HLBrowseMethodCommand);
  91. $core.addMethod(
  92. $core.method({
  93. selector: "execute",
  94. protocol: 'executing',
  95. fn: function (){
  96. var self=this;
  97. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  98. return $core.withContext(function($ctx1) {
  99. //>>excludeEnd("ctx");
  100. $recv(self._model())._openMethod();
  101. return self;
  102. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  103. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLBrowseMethodCommand)});
  104. //>>excludeEnd("ctx");
  105. },
  106. //>>excludeStart("ide", pragmas.excludeIdeData);
  107. args: [],
  108. source: "execute\x0a\x09self model openMethod",
  109. referencedClasses: [],
  110. //>>excludeEnd("ide");
  111. messageSends: ["openMethod", "model"]
  112. }),
  113. $globals.HLBrowseMethodCommand);
  114. $core.addMethod(
  115. $core.method({
  116. selector: "isValidFor:",
  117. protocol: 'testing',
  118. fn: function (aModel){
  119. var self=this;
  120. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  121. return $core.withContext(function($ctx1) {
  122. //>>excludeEnd("ctx");
  123. var $1;
  124. $1=$recv(aModel)._isReferencesModel();
  125. return $1;
  126. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  127. }, function($ctx1) {$ctx1.fill(self,"isValidFor:",{aModel:aModel},$globals.HLBrowseMethodCommand.klass)});
  128. //>>excludeEnd("ctx");
  129. },
  130. //>>excludeStart("ide", pragmas.excludeIdeData);
  131. args: ["aModel"],
  132. source: "isValidFor: aModel\x0a\x09^ aModel isReferencesModel",
  133. referencedClasses: [],
  134. //>>excludeEnd("ide");
  135. messageSends: ["isReferencesModel"]
  136. }),
  137. $globals.HLBrowseMethodCommand.klass);
  138. $core.addMethod(
  139. $core.method({
  140. selector: "key",
  141. protocol: 'accessing',
  142. fn: function (){
  143. var self=this;
  144. return "b";
  145. },
  146. //>>excludeStart("ide", pragmas.excludeIdeData);
  147. args: [],
  148. source: "key\x0a\x09^ 'b'",
  149. referencedClasses: [],
  150. //>>excludeEnd("ide");
  151. messageSends: []
  152. }),
  153. $globals.HLBrowseMethodCommand.klass);
  154. $core.addMethod(
  155. $core.method({
  156. selector: "label",
  157. protocol: 'accessing',
  158. fn: function (){
  159. var self=this;
  160. return "browse method";
  161. },
  162. //>>excludeStart("ide", pragmas.excludeIdeData);
  163. args: [],
  164. source: "label\x0a\x09^ 'browse method'",
  165. referencedClasses: [],
  166. //>>excludeEnd("ide");
  167. messageSends: []
  168. }),
  169. $globals.HLBrowseMethodCommand.klass);
  170. $core.addClass('HLCommitPackageCommand', $globals.HLToolCommand, [], 'Helios-Commands-Tools');
  171. $core.addMethod(
  172. $core.method({
  173. selector: "category",
  174. protocol: 'accessing',
  175. fn: function (){
  176. var self=this;
  177. return "Packages";
  178. },
  179. //>>excludeStart("ide", pragmas.excludeIdeData);
  180. args: [],
  181. source: "category\x0a\x09^ 'Packages'",
  182. referencedClasses: [],
  183. //>>excludeEnd("ide");
  184. messageSends: []
  185. }),
  186. $globals.HLCommitPackageCommand);
  187. $core.addMethod(
  188. $core.method({
  189. selector: "commitPackage",
  190. protocol: 'executing',
  191. fn: function (){
  192. var self=this;
  193. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  194. return $core.withContext(function($ctx1) {
  195. //>>excludeEnd("ctx");
  196. $recv(self._model())._commitPackageOnSuccess_onError_((function(){
  197. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  198. return $core.withContext(function($ctx2) {
  199. //>>excludeEnd("ctx");
  200. return self._informSuccess();
  201. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  202. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
  203. //>>excludeEnd("ctx");
  204. }),(function(error){
  205. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  206. return $core.withContext(function($ctx2) {
  207. //>>excludeEnd("ctx");
  208. return self._onPackageCommitError_(error);
  209. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  210. }, function($ctx2) {$ctx2.fillBlock({error:error},$ctx1,2)});
  211. //>>excludeEnd("ctx");
  212. }));
  213. return self;
  214. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  215. }, function($ctx1) {$ctx1.fill(self,"commitPackage",{},$globals.HLCommitPackageCommand)});
  216. //>>excludeEnd("ctx");
  217. },
  218. //>>excludeStart("ide", pragmas.excludeIdeData);
  219. args: [],
  220. source: "commitPackage\x0a\x09self model \x0a\x09\x09commitPackageOnSuccess: [ self informSuccess ]\x0a\x09\x09onError: [ :error | self onPackageCommitError: error ]",
  221. referencedClasses: [],
  222. //>>excludeEnd("ide");
  223. messageSends: ["commitPackageOnSuccess:onError:", "model", "informSuccess", "onPackageCommitError:"]
  224. }),
  225. $globals.HLCommitPackageCommand);
  226. $core.addMethod(
  227. $core.method({
  228. selector: "execute",
  229. protocol: 'executing',
  230. fn: function (){
  231. var self=this;
  232. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  233. return $core.withContext(function($ctx1) {
  234. //>>excludeEnd("ctx");
  235. self._commitPackage();
  236. return self;
  237. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  238. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLCommitPackageCommand)});
  239. //>>excludeEnd("ctx");
  240. },
  241. //>>excludeStart("ide", pragmas.excludeIdeData);
  242. args: [],
  243. source: "execute\x0a\x09self commitPackage",
  244. referencedClasses: [],
  245. //>>excludeEnd("ide");
  246. messageSends: ["commitPackage"]
  247. }),
  248. $globals.HLCommitPackageCommand);
  249. $core.addMethod(
  250. $core.method({
  251. selector: "informSuccess",
  252. protocol: 'executing',
  253. fn: function (){
  254. var self=this;
  255. function $HLInformationWidget(){return $globals.HLInformationWidget||(typeof HLInformationWidget=="undefined"?nil:HLInformationWidget)}
  256. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  257. return $core.withContext(function($ctx1) {
  258. //>>excludeEnd("ctx");
  259. var $1,$2;
  260. $1=$recv($HLInformationWidget())._new();
  261. $recv($1)._informationString_("Commit successful!");
  262. $2=$recv($1)._show();
  263. return self;
  264. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  265. }, function($ctx1) {$ctx1.fill(self,"informSuccess",{},$globals.HLCommitPackageCommand)});
  266. //>>excludeEnd("ctx");
  267. },
  268. //>>excludeStart("ide", pragmas.excludeIdeData);
  269. args: [],
  270. source: "informSuccess\x0a\x09HLInformationWidget new\x0a\x09\x09informationString: 'Commit successful!';\x0a\x09\x09show",
  271. referencedClasses: ["HLInformationWidget"],
  272. //>>excludeEnd("ide");
  273. messageSends: ["informationString:", "new", "show"]
  274. }),
  275. $globals.HLCommitPackageCommand);
  276. $core.addMethod(
  277. $core.method({
  278. selector: "isActive",
  279. protocol: 'testing',
  280. fn: function (){
  281. var self=this;
  282. return true;
  283. },
  284. //>>excludeStart("ide", pragmas.excludeIdeData);
  285. args: [],
  286. source: "isActive\x0a\x09^ true\x0a\x09\x22self model isPackageDirty\x22",
  287. referencedClasses: [],
  288. //>>excludeEnd("ide");
  289. messageSends: []
  290. }),
  291. $globals.HLCommitPackageCommand);
  292. $core.addMethod(
  293. $core.method({
  294. selector: "onPackageCommitError:",
  295. protocol: 'error handling',
  296. fn: function (anError){
  297. var self=this;
  298. function $HLPackageCommitErrorHelper(){return $globals.HLPackageCommitErrorHelper||(typeof HLPackageCommitErrorHelper=="undefined"?nil:HLPackageCommitErrorHelper)}
  299. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  300. return $core.withContext(function($ctx1) {
  301. //>>excludeEnd("ctx");
  302. $recv($recv($HLPackageCommitErrorHelper())._on_(self._model()))._showHelp();
  303. return self;
  304. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  305. }, function($ctx1) {$ctx1.fill(self,"onPackageCommitError:",{anError:anError},$globals.HLCommitPackageCommand)});
  306. //>>excludeEnd("ctx");
  307. },
  308. //>>excludeStart("ide", pragmas.excludeIdeData);
  309. args: ["anError"],
  310. source: "onPackageCommitError: anError\x0a\x09(HLPackageCommitErrorHelper on: self model)\x0a\x09\x09showHelp",
  311. referencedClasses: ["HLPackageCommitErrorHelper"],
  312. //>>excludeEnd("ide");
  313. messageSends: ["showHelp", "on:", "model"]
  314. }),
  315. $globals.HLCommitPackageCommand);
  316. $core.addMethod(
  317. $core.method({
  318. selector: "key",
  319. protocol: 'accessing',
  320. fn: function (){
  321. var self=this;
  322. return "k";
  323. },
  324. //>>excludeStart("ide", pragmas.excludeIdeData);
  325. args: [],
  326. source: "key\x0a\x09^ 'k'",
  327. referencedClasses: [],
  328. //>>excludeEnd("ide");
  329. messageSends: []
  330. }),
  331. $globals.HLCommitPackageCommand.klass);
  332. $core.addMethod(
  333. $core.method({
  334. selector: "label",
  335. protocol: 'accessing',
  336. fn: function (){
  337. var self=this;
  338. return "Commit package";
  339. },
  340. //>>excludeStart("ide", pragmas.excludeIdeData);
  341. args: [],
  342. source: "label\x0a\x09^ 'Commit package'",
  343. referencedClasses: [],
  344. //>>excludeEnd("ide");
  345. messageSends: []
  346. }),
  347. $globals.HLCommitPackageCommand.klass);
  348. $core.addClass('HLCopyCommand', $globals.HLToolCommand, [], 'Helios-Commands-Tools');
  349. $core.addMethod(
  350. $core.method({
  351. selector: "key",
  352. protocol: 'accessing',
  353. fn: function (){
  354. var self=this;
  355. return "c";
  356. },
  357. //>>excludeStart("ide", pragmas.excludeIdeData);
  358. args: [],
  359. source: "key\x0a\x09^ 'c'",
  360. referencedClasses: [],
  361. //>>excludeEnd("ide");
  362. messageSends: []
  363. }),
  364. $globals.HLCopyCommand.klass);
  365. $core.addMethod(
  366. $core.method({
  367. selector: "label",
  368. protocol: 'accessing',
  369. fn: function (){
  370. var self=this;
  371. return "Copy";
  372. },
  373. //>>excludeStart("ide", pragmas.excludeIdeData);
  374. args: [],
  375. source: "label\x0a\x09^ 'Copy'",
  376. referencedClasses: [],
  377. //>>excludeEnd("ide");
  378. messageSends: []
  379. }),
  380. $globals.HLCopyCommand.klass);
  381. $core.addClass('HLCopyClassCommand', $globals.HLCopyCommand, [], 'Helios-Commands-Tools');
  382. $core.addMethod(
  383. $core.method({
  384. selector: "category",
  385. protocol: 'accessing',
  386. fn: function (){
  387. var self=this;
  388. return "Classes";
  389. },
  390. //>>excludeStart("ide", pragmas.excludeIdeData);
  391. args: [],
  392. source: "category\x0a\x09^ 'Classes'",
  393. referencedClasses: [],
  394. //>>excludeEnd("ide");
  395. messageSends: []
  396. }),
  397. $globals.HLCopyClassCommand);
  398. $core.addMethod(
  399. $core.method({
  400. selector: "defaultInput",
  401. protocol: 'defaults',
  402. fn: function (){
  403. var self=this;
  404. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  405. return $core.withContext(function($ctx1) {
  406. //>>excludeEnd("ctx");
  407. var $1;
  408. $1=$recv($recv($recv(self._model())._selectedClass())._theNonMetaClass())._name();
  409. return $1;
  410. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  411. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},$globals.HLCopyClassCommand)});
  412. //>>excludeEnd("ctx");
  413. },
  414. //>>excludeStart("ide", pragmas.excludeIdeData);
  415. args: [],
  416. source: "defaultInput\x0a\x09^ self model selectedClass theNonMetaClass name",
  417. referencedClasses: [],
  418. //>>excludeEnd("ide");
  419. messageSends: ["name", "theNonMetaClass", "selectedClass", "model"]
  420. }),
  421. $globals.HLCopyClassCommand);
  422. $core.addMethod(
  423. $core.method({
  424. selector: "displayLabel",
  425. protocol: 'accessing',
  426. fn: function (){
  427. var self=this;
  428. return "New class name:";
  429. },
  430. //>>excludeStart("ide", pragmas.excludeIdeData);
  431. args: [],
  432. source: "displayLabel\x0a\x09^ 'New class name:'",
  433. referencedClasses: [],
  434. //>>excludeEnd("ide");
  435. messageSends: []
  436. }),
  437. $globals.HLCopyClassCommand);
  438. $core.addMethod(
  439. $core.method({
  440. selector: "execute",
  441. protocol: 'executing',
  442. fn: function (){
  443. var self=this;
  444. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  445. return $core.withContext(function($ctx1) {
  446. //>>excludeEnd("ctx");
  447. $recv(self._model())._copyClassTo_(self._input());
  448. return self;
  449. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  450. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLCopyClassCommand)});
  451. //>>excludeEnd("ctx");
  452. },
  453. //>>excludeStart("ide", pragmas.excludeIdeData);
  454. args: [],
  455. source: "execute\x0a\x09self model copyClassTo: self input",
  456. referencedClasses: [],
  457. //>>excludeEnd("ide");
  458. messageSends: ["copyClassTo:", "model", "input"]
  459. }),
  460. $globals.HLCopyClassCommand);
  461. $core.addMethod(
  462. $core.method({
  463. selector: "isActive",
  464. protocol: 'testing',
  465. fn: function (){
  466. var self=this;
  467. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  468. return $core.withContext(function($ctx1) {
  469. //>>excludeEnd("ctx");
  470. var $1;
  471. $1=$recv($recv(self._model())._selectedClass())._notNil();
  472. return $1;
  473. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  474. }, function($ctx1) {$ctx1.fill(self,"isActive",{},$globals.HLCopyClassCommand)});
  475. //>>excludeEnd("ctx");
  476. },
  477. //>>excludeStart("ide", pragmas.excludeIdeData);
  478. args: [],
  479. source: "isActive\x0a\x09^ self model selectedClass notNil",
  480. referencedClasses: [],
  481. //>>excludeEnd("ide");
  482. messageSends: ["notNil", "selectedClass", "model"]
  483. }),
  484. $globals.HLCopyClassCommand);
  485. $core.addMethod(
  486. $core.method({
  487. selector: "isInputRequired",
  488. protocol: 'testing',
  489. fn: function (){
  490. var self=this;
  491. return true;
  492. },
  493. //>>excludeStart("ide", pragmas.excludeIdeData);
  494. args: [],
  495. source: "isInputRequired\x0a\x09^ true",
  496. referencedClasses: [],
  497. //>>excludeEnd("ide");
  498. messageSends: []
  499. }),
  500. $globals.HLCopyClassCommand);
  501. $core.addMethod(
  502. $core.method({
  503. selector: "key",
  504. protocol: 'accessing',
  505. fn: function (){
  506. var self=this;
  507. return "c";
  508. },
  509. //>>excludeStart("ide", pragmas.excludeIdeData);
  510. args: [],
  511. source: "key\x0a\x09^ 'c'",
  512. referencedClasses: [],
  513. //>>excludeEnd("ide");
  514. messageSends: []
  515. }),
  516. $globals.HLCopyClassCommand.klass);
  517. $core.addMethod(
  518. $core.method({
  519. selector: "label",
  520. protocol: 'accessing',
  521. fn: function (){
  522. var self=this;
  523. return "Copy class";
  524. },
  525. //>>excludeStart("ide", pragmas.excludeIdeData);
  526. args: [],
  527. source: "label\x0a\x09^ 'Copy class'",
  528. referencedClasses: [],
  529. //>>excludeEnd("ide");
  530. messageSends: []
  531. }),
  532. $globals.HLCopyClassCommand.klass);
  533. $core.addMethod(
  534. $core.method({
  535. selector: "menuLabel",
  536. protocol: 'accessing',
  537. fn: function (){
  538. var self=this;
  539. return "Copy class...";
  540. },
  541. //>>excludeStart("ide", pragmas.excludeIdeData);
  542. args: [],
  543. source: "menuLabel\x0a\x09^ 'Copy class...'",
  544. referencedClasses: [],
  545. //>>excludeEnd("ide");
  546. messageSends: []
  547. }),
  548. $globals.HLCopyClassCommand.klass);
  549. $core.addClass('HLFindCommand', $globals.HLToolCommand, [], 'Helios-Commands-Tools');
  550. $core.addMethod(
  551. $core.method({
  552. selector: "key",
  553. protocol: 'accessing',
  554. fn: function (){
  555. var self=this;
  556. return "f";
  557. },
  558. //>>excludeStart("ide", pragmas.excludeIdeData);
  559. args: [],
  560. source: "key\x0a\x09^ 'f'",
  561. referencedClasses: [],
  562. //>>excludeEnd("ide");
  563. messageSends: []
  564. }),
  565. $globals.HLFindCommand.klass);
  566. $core.addMethod(
  567. $core.method({
  568. selector: "label",
  569. protocol: 'accessing',
  570. fn: function (){
  571. var self=this;
  572. return "Find";
  573. },
  574. //>>excludeStart("ide", pragmas.excludeIdeData);
  575. args: [],
  576. source: "label\x0a\x09^ 'Find'",
  577. referencedClasses: [],
  578. //>>excludeEnd("ide");
  579. messageSends: []
  580. }),
  581. $globals.HLFindCommand.klass);
  582. $core.addClass('HLFindClassCommand', $globals.HLFindCommand, [], 'Helios-Commands-Tools');
  583. $core.addMethod(
  584. $core.method({
  585. selector: "displayLabel",
  586. protocol: 'accessing',
  587. fn: function (){
  588. var self=this;
  589. return "select a class";
  590. },
  591. //>>excludeStart("ide", pragmas.excludeIdeData);
  592. args: [],
  593. source: "displayLabel\x0a\x09^ 'select a class'",
  594. referencedClasses: [],
  595. //>>excludeEnd("ide");
  596. messageSends: []
  597. }),
  598. $globals.HLFindClassCommand);
  599. $core.addMethod(
  600. $core.method({
  601. selector: "execute",
  602. protocol: 'executing',
  603. fn: function (){
  604. var self=this;
  605. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  606. return $core.withContext(function($ctx1) {
  607. //>>excludeEnd("ctx");
  608. $recv(self._model())._openClassNamed_(self._input());
  609. return self;
  610. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  611. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLFindClassCommand)});
  612. //>>excludeEnd("ctx");
  613. },
  614. //>>excludeStart("ide", pragmas.excludeIdeData);
  615. args: [],
  616. source: "execute\x0a\x09self model openClassNamed: self input",
  617. referencedClasses: [],
  618. //>>excludeEnd("ide");
  619. messageSends: ["openClassNamed:", "model", "input"]
  620. }),
  621. $globals.HLFindClassCommand);
  622. $core.addMethod(
  623. $core.method({
  624. selector: "inputCompletion",
  625. protocol: 'accessing',
  626. fn: function (){
  627. var self=this;
  628. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  629. return $core.withContext(function($ctx1) {
  630. //>>excludeEnd("ctx");
  631. var $1;
  632. $1=$recv(self._model())._availableClassNames();
  633. return $1;
  634. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  635. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},$globals.HLFindClassCommand)});
  636. //>>excludeEnd("ctx");
  637. },
  638. //>>excludeStart("ide", pragmas.excludeIdeData);
  639. args: [],
  640. source: "inputCompletion\x0a\x09^ self model availableClassNames",
  641. referencedClasses: [],
  642. //>>excludeEnd("ide");
  643. messageSends: ["availableClassNames", "model"]
  644. }),
  645. $globals.HLFindClassCommand);
  646. $core.addMethod(
  647. $core.method({
  648. selector: "inputLabel",
  649. protocol: 'accessing',
  650. fn: function (){
  651. var self=this;
  652. return "Find a class";
  653. },
  654. //>>excludeStart("ide", pragmas.excludeIdeData);
  655. args: [],
  656. source: "inputLabel\x0a\x09^ 'Find a class'",
  657. referencedClasses: [],
  658. //>>excludeEnd("ide");
  659. messageSends: []
  660. }),
  661. $globals.HLFindClassCommand);
  662. $core.addMethod(
  663. $core.method({
  664. selector: "isInputRequired",
  665. protocol: 'testing',
  666. fn: function (){
  667. var self=this;
  668. return true;
  669. },
  670. //>>excludeStart("ide", pragmas.excludeIdeData);
  671. args: [],
  672. source: "isInputRequired\x0a\x09^ true",
  673. referencedClasses: [],
  674. //>>excludeEnd("ide");
  675. messageSends: []
  676. }),
  677. $globals.HLFindClassCommand);
  678. $core.addMethod(
  679. $core.method({
  680. selector: "key",
  681. protocol: 'accessing',
  682. fn: function (){
  683. var self=this;
  684. return "c";
  685. },
  686. //>>excludeStart("ide", pragmas.excludeIdeData);
  687. args: [],
  688. source: "key\x0a\x09^ 'c'",
  689. referencedClasses: [],
  690. //>>excludeEnd("ide");
  691. messageSends: []
  692. }),
  693. $globals.HLFindClassCommand.klass);
  694. $core.addMethod(
  695. $core.method({
  696. selector: "label",
  697. protocol: 'accessing',
  698. fn: function (){
  699. var self=this;
  700. return "Find class";
  701. },
  702. //>>excludeStart("ide", pragmas.excludeIdeData);
  703. args: [],
  704. source: "label\x0a\x09^ 'Find class'",
  705. referencedClasses: [],
  706. //>>excludeEnd("ide");
  707. messageSends: []
  708. }),
  709. $globals.HLFindClassCommand.klass);
  710. $core.addClass('HLFindReferencesCommand', $globals.HLFindCommand, [], 'Helios-Commands-Tools');
  711. $core.addMethod(
  712. $core.method({
  713. selector: "defaultInput",
  714. protocol: 'defaults',
  715. fn: function (){
  716. var self=this;
  717. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  718. return $core.withContext(function($ctx1) {
  719. //>>excludeEnd("ctx");
  720. var $3,$2,$4,$1,$receiver;
  721. $3=self._model();
  722. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  723. $ctx1.sendIdx["model"]=1;
  724. //>>excludeEnd("ctx");
  725. $2=$recv($3)._selectedMethod();
  726. if(($receiver = $2) == null || $receiver.isNil){
  727. $4=$recv(self._model())._selectedClass();
  728. if(($receiver = $4) == null || $receiver.isNil){
  729. $1="";
  730. } else {
  731. var class_;
  732. class_=$receiver;
  733. $1=$recv($recv(class_)._theNonMetaClass())._name();
  734. };
  735. } else {
  736. var method;
  737. method=$receiver;
  738. $1=$recv(method)._selector();
  739. };
  740. return $1;
  741. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  742. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},$globals.HLFindReferencesCommand)});
  743. //>>excludeEnd("ctx");
  744. },
  745. //>>excludeStart("ide", pragmas.excludeIdeData);
  746. args: [],
  747. source: "defaultInput\x0a\x09^ self model selectedMethod \x0a\x09\x09ifNil: [\x0a\x09\x09\x09self model selectedClass\x0a\x09\x09\x09\x09ifNil: [ '' ]\x0a\x09\x09\x09\x09ifNotNil: [ :class | class theNonMetaClass name ] ]\x0a\x09\x09ifNotNil: [ :method | method selector ]",
  748. referencedClasses: [],
  749. //>>excludeEnd("ide");
  750. messageSends: ["ifNil:ifNotNil:", "selectedMethod", "model", "selectedClass", "name", "theNonMetaClass", "selector"]
  751. }),
  752. $globals.HLFindReferencesCommand);
  753. $core.addMethod(
  754. $core.method({
  755. selector: "displayLabel",
  756. protocol: 'accessing',
  757. fn: function (){
  758. var self=this;
  759. return "find references";
  760. },
  761. //>>excludeStart("ide", pragmas.excludeIdeData);
  762. args: [],
  763. source: "displayLabel\x0a\x09^ 'find references'",
  764. referencedClasses: [],
  765. //>>excludeEnd("ide");
  766. messageSends: []
  767. }),
  768. $globals.HLFindReferencesCommand);
  769. $core.addMethod(
  770. $core.method({
  771. selector: "execute",
  772. protocol: 'executing',
  773. fn: function (){
  774. var self=this;
  775. function $HLReferences(){return $globals.HLReferences||(typeof HLReferences=="undefined"?nil:HLReferences)}
  776. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  777. return $core.withContext(function($ctx1) {
  778. //>>excludeEnd("ctx");
  779. var $1,$2;
  780. $1=$recv($HLReferences())._new();
  781. $recv($1)._openAsTab();
  782. $2=$recv($1)._search_(self._input());
  783. return self;
  784. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  785. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLFindReferencesCommand)});
  786. //>>excludeEnd("ctx");
  787. },
  788. //>>excludeStart("ide", pragmas.excludeIdeData);
  789. args: [],
  790. source: "execute\x0a\x09HLReferences new \x0a\x09\x09openAsTab;\x0a\x09\x09search: self input",
  791. referencedClasses: ["HLReferences"],
  792. //>>excludeEnd("ide");
  793. messageSends: ["openAsTab", "new", "search:", "input"]
  794. }),
  795. $globals.HLFindReferencesCommand);
  796. $core.addMethod(
  797. $core.method({
  798. selector: "inputCompletion",
  799. protocol: 'accessing',
  800. fn: function (){
  801. var self=this;
  802. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  803. return $core.withContext(function($ctx1) {
  804. //>>excludeEnd("ctx");
  805. var $3,$2,$1;
  806. $3=self._model();
  807. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  808. $ctx1.sendIdx["model"]=1;
  809. //>>excludeEnd("ctx");
  810. $2=$recv($3)._availableClassNames();
  811. $1=$recv($2).__comma($recv(self._model())._allSelectors());
  812. return $1;
  813. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  814. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},$globals.HLFindReferencesCommand)});
  815. //>>excludeEnd("ctx");
  816. },
  817. //>>excludeStart("ide", pragmas.excludeIdeData);
  818. args: [],
  819. source: "inputCompletion\x0a\x09^ self model availableClassNames, self model allSelectors",
  820. referencedClasses: [],
  821. //>>excludeEnd("ide");
  822. messageSends: [",", "availableClassNames", "model", "allSelectors"]
  823. }),
  824. $globals.HLFindReferencesCommand);
  825. $core.addMethod(
  826. $core.method({
  827. selector: "inputLabel",
  828. protocol: 'accessing',
  829. fn: function (){
  830. var self=this;
  831. return "Find references of";
  832. },
  833. //>>excludeStart("ide", pragmas.excludeIdeData);
  834. args: [],
  835. source: "inputLabel\x0a\x09^ 'Find references of'",
  836. referencedClasses: [],
  837. //>>excludeEnd("ide");
  838. messageSends: []
  839. }),
  840. $globals.HLFindReferencesCommand);
  841. $core.addMethod(
  842. $core.method({
  843. selector: "isInputRequired",
  844. protocol: 'testing',
  845. fn: function (){
  846. var self=this;
  847. return true;
  848. },
  849. //>>excludeStart("ide", pragmas.excludeIdeData);
  850. args: [],
  851. source: "isInputRequired\x0a\x09^ true",
  852. referencedClasses: [],
  853. //>>excludeEnd("ide");
  854. messageSends: []
  855. }),
  856. $globals.HLFindReferencesCommand);
  857. $core.addMethod(
  858. $core.method({
  859. selector: "key",
  860. protocol: 'accessing',
  861. fn: function (){
  862. var self=this;
  863. return "r";
  864. },
  865. //>>excludeStart("ide", pragmas.excludeIdeData);
  866. args: [],
  867. source: "key\x0a\x09^ 'r'",
  868. referencedClasses: [],
  869. //>>excludeEnd("ide");
  870. messageSends: []
  871. }),
  872. $globals.HLFindReferencesCommand.klass);
  873. $core.addMethod(
  874. $core.method({
  875. selector: "label",
  876. protocol: 'accessing',
  877. fn: function (){
  878. var self=this;
  879. return "Find references";
  880. },
  881. //>>excludeStart("ide", pragmas.excludeIdeData);
  882. args: [],
  883. source: "label\x0a\x09^ 'Find references'",
  884. referencedClasses: [],
  885. //>>excludeEnd("ide");
  886. messageSends: []
  887. }),
  888. $globals.HLFindReferencesCommand.klass);
  889. $core.addClass('HLMoveToCommand', $globals.HLToolCommand, [], 'Helios-Commands-Tools');
  890. $core.addMethod(
  891. $core.method({
  892. selector: "key",
  893. protocol: 'accessing',
  894. fn: function (){
  895. var self=this;
  896. return "m";
  897. },
  898. //>>excludeStart("ide", pragmas.excludeIdeData);
  899. args: [],
  900. source: "key\x0a\x09^ 'm'",
  901. referencedClasses: [],
  902. //>>excludeEnd("ide");
  903. messageSends: []
  904. }),
  905. $globals.HLMoveToCommand.klass);
  906. $core.addMethod(
  907. $core.method({
  908. selector: "label",
  909. protocol: 'accessing',
  910. fn: function (){
  911. var self=this;
  912. return "Move";
  913. },
  914. //>>excludeStart("ide", pragmas.excludeIdeData);
  915. args: [],
  916. source: "label\x0a\x09^ 'Move'",
  917. referencedClasses: [],
  918. //>>excludeEnd("ide");
  919. messageSends: []
  920. }),
  921. $globals.HLMoveToCommand.klass);
  922. $core.addClass('HLMoveClassToCommand', $globals.HLMoveToCommand, [], 'Helios-Commands-Tools');
  923. $core.addMethod(
  924. $core.method({
  925. selector: "isActive",
  926. protocol: 'testing',
  927. fn: function (){
  928. var self=this;
  929. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  930. return $core.withContext(function($ctx1) {
  931. //>>excludeEnd("ctx");
  932. var $1;
  933. $1=$recv($recv(self._model())._selectedClass())._notNil();
  934. return $1;
  935. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  936. }, function($ctx1) {$ctx1.fill(self,"isActive",{},$globals.HLMoveClassToCommand)});
  937. //>>excludeEnd("ctx");
  938. },
  939. //>>excludeStart("ide", pragmas.excludeIdeData);
  940. args: [],
  941. source: "isActive\x0a\x09^ self model selectedClass notNil",
  942. referencedClasses: [],
  943. //>>excludeEnd("ide");
  944. messageSends: ["notNil", "selectedClass", "model"]
  945. }),
  946. $globals.HLMoveClassToCommand);
  947. $core.addMethod(
  948. $core.method({
  949. selector: "key",
  950. protocol: 'accessing',
  951. fn: function (){
  952. var self=this;
  953. return "c";
  954. },
  955. //>>excludeStart("ide", pragmas.excludeIdeData);
  956. args: [],
  957. source: "key\x0a\x09^ 'c'",
  958. referencedClasses: [],
  959. //>>excludeEnd("ide");
  960. messageSends: []
  961. }),
  962. $globals.HLMoveClassToCommand.klass);
  963. $core.addMethod(
  964. $core.method({
  965. selector: "label",
  966. protocol: 'accessing',
  967. fn: function (){
  968. var self=this;
  969. return "Move class";
  970. },
  971. //>>excludeStart("ide", pragmas.excludeIdeData);
  972. args: [],
  973. source: "label\x0a\x09^ 'Move class'",
  974. referencedClasses: [],
  975. //>>excludeEnd("ide");
  976. messageSends: []
  977. }),
  978. $globals.HLMoveClassToCommand.klass);
  979. $core.addClass('HLMoveClassToPackageCommand', $globals.HLMoveClassToCommand, [], 'Helios-Commands-Tools');
  980. $core.addMethod(
  981. $core.method({
  982. selector: "category",
  983. protocol: 'accessing',
  984. fn: function (){
  985. var self=this;
  986. return "Classes";
  987. },
  988. //>>excludeStart("ide", pragmas.excludeIdeData);
  989. args: [],
  990. source: "category\x0a\x09^ 'Classes'",
  991. referencedClasses: [],
  992. //>>excludeEnd("ide");
  993. messageSends: []
  994. }),
  995. $globals.HLMoveClassToPackageCommand);
  996. $core.addMethod(
  997. $core.method({
  998. selector: "displayLabel",
  999. protocol: 'accessing',
  1000. fn: function (){
  1001. var self=this;
  1002. return "select a package";
  1003. },
  1004. //>>excludeStart("ide", pragmas.excludeIdeData);
  1005. args: [],
  1006. source: "displayLabel\x0a\x09^ 'select a package'",
  1007. referencedClasses: [],
  1008. //>>excludeEnd("ide");
  1009. messageSends: []
  1010. }),
  1011. $globals.HLMoveClassToPackageCommand);
  1012. $core.addMethod(
  1013. $core.method({
  1014. selector: "execute",
  1015. protocol: 'executing',
  1016. fn: function (){
  1017. var self=this;
  1018. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1019. return $core.withContext(function($ctx1) {
  1020. //>>excludeEnd("ctx");
  1021. $recv(self._model())._moveClassToPackage_(self._input());
  1022. return self;
  1023. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1024. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLMoveClassToPackageCommand)});
  1025. //>>excludeEnd("ctx");
  1026. },
  1027. //>>excludeStart("ide", pragmas.excludeIdeData);
  1028. args: [],
  1029. source: "execute\x0a\x09self model moveClassToPackage: self input",
  1030. referencedClasses: [],
  1031. //>>excludeEnd("ide");
  1032. messageSends: ["moveClassToPackage:", "model", "input"]
  1033. }),
  1034. $globals.HLMoveClassToPackageCommand);
  1035. $core.addMethod(
  1036. $core.method({
  1037. selector: "inputCompletion",
  1038. protocol: 'accessing',
  1039. fn: function (){
  1040. var self=this;
  1041. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1042. return $core.withContext(function($ctx1) {
  1043. //>>excludeEnd("ctx");
  1044. var $1;
  1045. $1=$recv(self._model())._availablePackageNames();
  1046. return $1;
  1047. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1048. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},$globals.HLMoveClassToPackageCommand)});
  1049. //>>excludeEnd("ctx");
  1050. },
  1051. //>>excludeStart("ide", pragmas.excludeIdeData);
  1052. args: [],
  1053. source: "inputCompletion\x0a\x09^ self model availablePackageNames",
  1054. referencedClasses: [],
  1055. //>>excludeEnd("ide");
  1056. messageSends: ["availablePackageNames", "model"]
  1057. }),
  1058. $globals.HLMoveClassToPackageCommand);
  1059. $core.addMethod(
  1060. $core.method({
  1061. selector: "inputLabel",
  1062. protocol: 'accessing',
  1063. fn: function (){
  1064. var self=this;
  1065. return "Move class to package:";
  1066. },
  1067. //>>excludeStart("ide", pragmas.excludeIdeData);
  1068. args: [],
  1069. source: "inputLabel\x0a\x09^ 'Move class to package:'",
  1070. referencedClasses: [],
  1071. //>>excludeEnd("ide");
  1072. messageSends: []
  1073. }),
  1074. $globals.HLMoveClassToPackageCommand);
  1075. $core.addMethod(
  1076. $core.method({
  1077. selector: "isInputRequired",
  1078. protocol: 'testing',
  1079. fn: function (){
  1080. var self=this;
  1081. return true;
  1082. },
  1083. //>>excludeStart("ide", pragmas.excludeIdeData);
  1084. args: [],
  1085. source: "isInputRequired\x0a\x09^ true",
  1086. referencedClasses: [],
  1087. //>>excludeEnd("ide");
  1088. messageSends: []
  1089. }),
  1090. $globals.HLMoveClassToPackageCommand);
  1091. $core.addMethod(
  1092. $core.method({
  1093. selector: "key",
  1094. protocol: 'accessing',
  1095. fn: function (){
  1096. var self=this;
  1097. return "p";
  1098. },
  1099. //>>excludeStart("ide", pragmas.excludeIdeData);
  1100. args: [],
  1101. source: "key\x0a\x09^ 'p'",
  1102. referencedClasses: [],
  1103. //>>excludeEnd("ide");
  1104. messageSends: []
  1105. }),
  1106. $globals.HLMoveClassToPackageCommand.klass);
  1107. $core.addMethod(
  1108. $core.method({
  1109. selector: "label",
  1110. protocol: 'accessing',
  1111. fn: function (){
  1112. var self=this;
  1113. return "Move class to package";
  1114. },
  1115. //>>excludeStart("ide", pragmas.excludeIdeData);
  1116. args: [],
  1117. source: "label\x0a\x09^ 'Move class to package'",
  1118. referencedClasses: [],
  1119. //>>excludeEnd("ide");
  1120. messageSends: []
  1121. }),
  1122. $globals.HLMoveClassToPackageCommand.klass);
  1123. $core.addMethod(
  1124. $core.method({
  1125. selector: "menuLabel",
  1126. protocol: 'accessing',
  1127. fn: function (){
  1128. var self=this;
  1129. return "Move to package...";
  1130. },
  1131. //>>excludeStart("ide", pragmas.excludeIdeData);
  1132. args: [],
  1133. source: "menuLabel\x09\x0a\x09^ 'Move to package...'",
  1134. referencedClasses: [],
  1135. //>>excludeEnd("ide");
  1136. messageSends: []
  1137. }),
  1138. $globals.HLMoveClassToPackageCommand.klass);
  1139. $core.addClass('HLMoveMethodToCommand', $globals.HLMoveToCommand, [], 'Helios-Commands-Tools');
  1140. $core.addMethod(
  1141. $core.method({
  1142. selector: "category",
  1143. protocol: 'accessing',
  1144. fn: function (){
  1145. var self=this;
  1146. return "Methods";
  1147. },
  1148. //>>excludeStart("ide", pragmas.excludeIdeData);
  1149. args: [],
  1150. source: "category\x0a\x09^ 'Methods'",
  1151. referencedClasses: [],
  1152. //>>excludeEnd("ide");
  1153. messageSends: []
  1154. }),
  1155. $globals.HLMoveMethodToCommand);
  1156. $core.addMethod(
  1157. $core.method({
  1158. selector: "isActive",
  1159. protocol: 'testing',
  1160. fn: function (){
  1161. var self=this;
  1162. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1163. return $core.withContext(function($ctx1) {
  1164. //>>excludeEnd("ctx");
  1165. var $1;
  1166. $1=$recv($recv(self._model())._selectedMethod())._notNil();
  1167. return $1;
  1168. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1169. }, function($ctx1) {$ctx1.fill(self,"isActive",{},$globals.HLMoveMethodToCommand)});
  1170. //>>excludeEnd("ctx");
  1171. },
  1172. //>>excludeStart("ide", pragmas.excludeIdeData);
  1173. args: [],
  1174. source: "isActive\x0a\x09^ self model selectedMethod notNil",
  1175. referencedClasses: [],
  1176. //>>excludeEnd("ide");
  1177. messageSends: ["notNil", "selectedMethod", "model"]
  1178. }),
  1179. $globals.HLMoveMethodToCommand);
  1180. $core.addMethod(
  1181. $core.method({
  1182. selector: "key",
  1183. protocol: 'accessing',
  1184. fn: function (){
  1185. var self=this;
  1186. return "m";
  1187. },
  1188. //>>excludeStart("ide", pragmas.excludeIdeData);
  1189. args: [],
  1190. source: "key\x0a\x09^ 'm'",
  1191. referencedClasses: [],
  1192. //>>excludeEnd("ide");
  1193. messageSends: []
  1194. }),
  1195. $globals.HLMoveMethodToCommand.klass);
  1196. $core.addMethod(
  1197. $core.method({
  1198. selector: "label",
  1199. protocol: 'accessing',
  1200. fn: function (){
  1201. var self=this;
  1202. return "Move method";
  1203. },
  1204. //>>excludeStart("ide", pragmas.excludeIdeData);
  1205. args: [],
  1206. source: "label\x0a\x09^ 'Move method'",
  1207. referencedClasses: [],
  1208. //>>excludeEnd("ide");
  1209. messageSends: []
  1210. }),
  1211. $globals.HLMoveMethodToCommand.klass);
  1212. $core.addClass('HLMoveMethodToClassCommand', $globals.HLMoveMethodToCommand, [], 'Helios-Commands-Tools');
  1213. $core.addMethod(
  1214. $core.method({
  1215. selector: "displayLabel",
  1216. protocol: 'accessing',
  1217. fn: function (){
  1218. var self=this;
  1219. return "select a class";
  1220. },
  1221. //>>excludeStart("ide", pragmas.excludeIdeData);
  1222. args: [],
  1223. source: "displayLabel\x0a\x09^ 'select a class'",
  1224. referencedClasses: [],
  1225. //>>excludeEnd("ide");
  1226. messageSends: []
  1227. }),
  1228. $globals.HLMoveMethodToClassCommand);
  1229. $core.addMethod(
  1230. $core.method({
  1231. selector: "execute",
  1232. protocol: 'executing',
  1233. fn: function (){
  1234. var self=this;
  1235. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1236. return $core.withContext(function($ctx1) {
  1237. //>>excludeEnd("ctx");
  1238. $recv(self._model())._moveMethodToClass_(self._input());
  1239. return self;
  1240. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1241. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLMoveMethodToClassCommand)});
  1242. //>>excludeEnd("ctx");
  1243. },
  1244. //>>excludeStart("ide", pragmas.excludeIdeData);
  1245. args: [],
  1246. source: "execute\x0a\x09self model moveMethodToClass: self input",
  1247. referencedClasses: [],
  1248. //>>excludeEnd("ide");
  1249. messageSends: ["moveMethodToClass:", "model", "input"]
  1250. }),
  1251. $globals.HLMoveMethodToClassCommand);
  1252. $core.addMethod(
  1253. $core.method({
  1254. selector: "inputCompletion",
  1255. protocol: 'accessing',
  1256. fn: function (){
  1257. var self=this;
  1258. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1259. return $core.withContext(function($ctx1) {
  1260. //>>excludeEnd("ctx");
  1261. var $1;
  1262. $1=$recv(self._model())._availableClassNames();
  1263. return $1;
  1264. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1265. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},$globals.HLMoveMethodToClassCommand)});
  1266. //>>excludeEnd("ctx");
  1267. },
  1268. //>>excludeStart("ide", pragmas.excludeIdeData);
  1269. args: [],
  1270. source: "inputCompletion\x0a\x09^ self model availableClassNames",
  1271. referencedClasses: [],
  1272. //>>excludeEnd("ide");
  1273. messageSends: ["availableClassNames", "model"]
  1274. }),
  1275. $globals.HLMoveMethodToClassCommand);
  1276. $core.addMethod(
  1277. $core.method({
  1278. selector: "inputLabel",
  1279. protocol: 'accessing',
  1280. fn: function (){
  1281. var self=this;
  1282. return "Move method to class:";
  1283. },
  1284. //>>excludeStart("ide", pragmas.excludeIdeData);
  1285. args: [],
  1286. source: "inputLabel\x0a\x09^ 'Move method to class:'",
  1287. referencedClasses: [],
  1288. //>>excludeEnd("ide");
  1289. messageSends: []
  1290. }),
  1291. $globals.HLMoveMethodToClassCommand);
  1292. $core.addMethod(
  1293. $core.method({
  1294. selector: "isInputRequired",
  1295. protocol: 'testing',
  1296. fn: function (){
  1297. var self=this;
  1298. return true;
  1299. },
  1300. //>>excludeStart("ide", pragmas.excludeIdeData);
  1301. args: [],
  1302. source: "isInputRequired\x0a\x09^ true",
  1303. referencedClasses: [],
  1304. //>>excludeEnd("ide");
  1305. messageSends: []
  1306. }),
  1307. $globals.HLMoveMethodToClassCommand);
  1308. $core.addMethod(
  1309. $core.method({
  1310. selector: "key",
  1311. protocol: 'accessing',
  1312. fn: function (){
  1313. var self=this;
  1314. return "c";
  1315. },
  1316. //>>excludeStart("ide", pragmas.excludeIdeData);
  1317. args: [],
  1318. source: "key\x0a\x09^ 'c'",
  1319. referencedClasses: [],
  1320. //>>excludeEnd("ide");
  1321. messageSends: []
  1322. }),
  1323. $globals.HLMoveMethodToClassCommand.klass);
  1324. $core.addMethod(
  1325. $core.method({
  1326. selector: "label",
  1327. protocol: 'accessing',
  1328. fn: function (){
  1329. var self=this;
  1330. return "Move method to class";
  1331. },
  1332. //>>excludeStart("ide", pragmas.excludeIdeData);
  1333. args: [],
  1334. source: "label\x09\x0a\x09^ 'Move method to class'",
  1335. referencedClasses: [],
  1336. //>>excludeEnd("ide");
  1337. messageSends: []
  1338. }),
  1339. $globals.HLMoveMethodToClassCommand.klass);
  1340. $core.addMethod(
  1341. $core.method({
  1342. selector: "menuLabel",
  1343. protocol: 'accessing',
  1344. fn: function (){
  1345. var self=this;
  1346. return "Move to class...";
  1347. },
  1348. //>>excludeStart("ide", pragmas.excludeIdeData);
  1349. args: [],
  1350. source: "menuLabel\x09\x0a\x09^ 'Move to class...'",
  1351. referencedClasses: [],
  1352. //>>excludeEnd("ide");
  1353. messageSends: []
  1354. }),
  1355. $globals.HLMoveMethodToClassCommand.klass);
  1356. $core.addClass('HLMoveMethodToProtocolCommand', $globals.HLMoveMethodToCommand, [], 'Helios-Commands-Tools');
  1357. $core.addMethod(
  1358. $core.method({
  1359. selector: "displayLabel",
  1360. protocol: 'accessing',
  1361. fn: function (){
  1362. var self=this;
  1363. return "select a protocol";
  1364. },
  1365. //>>excludeStart("ide", pragmas.excludeIdeData);
  1366. args: [],
  1367. source: "displayLabel\x0a\x09^ 'select a protocol'",
  1368. referencedClasses: [],
  1369. //>>excludeEnd("ide");
  1370. messageSends: []
  1371. }),
  1372. $globals.HLMoveMethodToProtocolCommand);
  1373. $core.addMethod(
  1374. $core.method({
  1375. selector: "execute",
  1376. protocol: 'executing',
  1377. fn: function (){
  1378. var self=this;
  1379. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1380. return $core.withContext(function($ctx1) {
  1381. //>>excludeEnd("ctx");
  1382. $recv(self._model())._moveMethodToProtocol_(self._input());
  1383. return self;
  1384. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1385. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLMoveMethodToProtocolCommand)});
  1386. //>>excludeEnd("ctx");
  1387. },
  1388. //>>excludeStart("ide", pragmas.excludeIdeData);
  1389. args: [],
  1390. source: "execute\x0a\x09self model moveMethodToProtocol: self input",
  1391. referencedClasses: [],
  1392. //>>excludeEnd("ide");
  1393. messageSends: ["moveMethodToProtocol:", "model", "input"]
  1394. }),
  1395. $globals.HLMoveMethodToProtocolCommand);
  1396. $core.addMethod(
  1397. $core.method({
  1398. selector: "inputCompletion",
  1399. protocol: 'accessing',
  1400. fn: function (){
  1401. var self=this;
  1402. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1403. return $core.withContext(function($ctx1) {
  1404. //>>excludeEnd("ctx");
  1405. var $1;
  1406. $1=$recv(self._model())._availableProtocols();
  1407. return $1;
  1408. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1409. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},$globals.HLMoveMethodToProtocolCommand)});
  1410. //>>excludeEnd("ctx");
  1411. },
  1412. //>>excludeStart("ide", pragmas.excludeIdeData);
  1413. args: [],
  1414. source: "inputCompletion\x0a\x09^ self model availableProtocols",
  1415. referencedClasses: [],
  1416. //>>excludeEnd("ide");
  1417. messageSends: ["availableProtocols", "model"]
  1418. }),
  1419. $globals.HLMoveMethodToProtocolCommand);
  1420. $core.addMethod(
  1421. $core.method({
  1422. selector: "inputLabel",
  1423. protocol: 'accessing',
  1424. fn: function (){
  1425. var self=this;
  1426. return "Move method to a protocol:";
  1427. },
  1428. //>>excludeStart("ide", pragmas.excludeIdeData);
  1429. args: [],
  1430. source: "inputLabel\x0a\x09^ 'Move method to a protocol:'",
  1431. referencedClasses: [],
  1432. //>>excludeEnd("ide");
  1433. messageSends: []
  1434. }),
  1435. $globals.HLMoveMethodToProtocolCommand);
  1436. $core.addMethod(
  1437. $core.method({
  1438. selector: "isInputRequired",
  1439. protocol: 'testing',
  1440. fn: function (){
  1441. var self=this;
  1442. return true;
  1443. },
  1444. //>>excludeStart("ide", pragmas.excludeIdeData);
  1445. args: [],
  1446. source: "isInputRequired\x0a\x09^ true",
  1447. referencedClasses: [],
  1448. //>>excludeEnd("ide");
  1449. messageSends: []
  1450. }),
  1451. $globals.HLMoveMethodToProtocolCommand);
  1452. $core.addMethod(
  1453. $core.method({
  1454. selector: "key",
  1455. protocol: 'accessing',
  1456. fn: function (){
  1457. var self=this;
  1458. return "t";
  1459. },
  1460. //>>excludeStart("ide", pragmas.excludeIdeData);
  1461. args: [],
  1462. source: "key\x0a\x09^ 't'",
  1463. referencedClasses: [],
  1464. //>>excludeEnd("ide");
  1465. messageSends: []
  1466. }),
  1467. $globals.HLMoveMethodToProtocolCommand.klass);
  1468. $core.addMethod(
  1469. $core.method({
  1470. selector: "label",
  1471. protocol: 'accessing',
  1472. fn: function (){
  1473. var self=this;
  1474. return "Move method to protocol";
  1475. },
  1476. //>>excludeStart("ide", pragmas.excludeIdeData);
  1477. args: [],
  1478. source: "label\x0a\x09^ 'Move method to protocol'",
  1479. referencedClasses: [],
  1480. //>>excludeEnd("ide");
  1481. messageSends: []
  1482. }),
  1483. $globals.HLMoveMethodToProtocolCommand.klass);
  1484. $core.addMethod(
  1485. $core.method({
  1486. selector: "menuLabel",
  1487. protocol: 'accessing',
  1488. fn: function (){
  1489. var self=this;
  1490. return "Move to protocol...";
  1491. },
  1492. //>>excludeStart("ide", pragmas.excludeIdeData);
  1493. args: [],
  1494. source: "menuLabel\x0a\x09^ 'Move to protocol...'",
  1495. referencedClasses: [],
  1496. //>>excludeEnd("ide");
  1497. messageSends: []
  1498. }),
  1499. $globals.HLMoveMethodToProtocolCommand.klass);
  1500. $core.addClass('HLRemoveCommand', $globals.HLToolCommand, [], 'Helios-Commands-Tools');
  1501. $core.addMethod(
  1502. $core.method({
  1503. selector: "key",
  1504. protocol: 'accessing',
  1505. fn: function (){
  1506. var self=this;
  1507. return "x";
  1508. },
  1509. //>>excludeStart("ide", pragmas.excludeIdeData);
  1510. args: [],
  1511. source: "key\x0a\x09^ 'x'",
  1512. referencedClasses: [],
  1513. //>>excludeEnd("ide");
  1514. messageSends: []
  1515. }),
  1516. $globals.HLRemoveCommand.klass);
  1517. $core.addMethod(
  1518. $core.method({
  1519. selector: "label",
  1520. protocol: 'accessing',
  1521. fn: function (){
  1522. var self=this;
  1523. return "Remove";
  1524. },
  1525. //>>excludeStart("ide", pragmas.excludeIdeData);
  1526. args: [],
  1527. source: "label\x0a\x09^ 'Remove'",
  1528. referencedClasses: [],
  1529. //>>excludeEnd("ide");
  1530. messageSends: []
  1531. }),
  1532. $globals.HLRemoveCommand.klass);
  1533. $core.addClass('HLRemoveClassCommand', $globals.HLRemoveCommand, [], 'Helios-Commands-Tools');
  1534. $core.addMethod(
  1535. $core.method({
  1536. selector: "category",
  1537. protocol: 'accessing',
  1538. fn: function (){
  1539. var self=this;
  1540. return "Classes";
  1541. },
  1542. //>>excludeStart("ide", pragmas.excludeIdeData);
  1543. args: [],
  1544. source: "category\x0a\x09^ 'Classes'",
  1545. referencedClasses: [],
  1546. //>>excludeEnd("ide");
  1547. messageSends: []
  1548. }),
  1549. $globals.HLRemoveClassCommand);
  1550. $core.addMethod(
  1551. $core.method({
  1552. selector: "execute",
  1553. protocol: 'executing',
  1554. fn: function (){
  1555. var self=this;
  1556. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1557. return $core.withContext(function($ctx1) {
  1558. //>>excludeEnd("ctx");
  1559. $recv(self._model())._removeClass();
  1560. return self;
  1561. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1562. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLRemoveClassCommand)});
  1563. //>>excludeEnd("ctx");
  1564. },
  1565. //>>excludeStart("ide", pragmas.excludeIdeData);
  1566. args: [],
  1567. source: "execute\x0a\x09self model removeClass",
  1568. referencedClasses: [],
  1569. //>>excludeEnd("ide");
  1570. messageSends: ["removeClass", "model"]
  1571. }),
  1572. $globals.HLRemoveClassCommand);
  1573. $core.addMethod(
  1574. $core.method({
  1575. selector: "isActive",
  1576. protocol: 'testing',
  1577. fn: function (){
  1578. var self=this;
  1579. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1580. return $core.withContext(function($ctx1) {
  1581. //>>excludeEnd("ctx");
  1582. var $1;
  1583. $1=$recv($recv(self._model())._selectedClass())._notNil();
  1584. return $1;
  1585. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1586. }, function($ctx1) {$ctx1.fill(self,"isActive",{},$globals.HLRemoveClassCommand)});
  1587. //>>excludeEnd("ctx");
  1588. },
  1589. //>>excludeStart("ide", pragmas.excludeIdeData);
  1590. args: [],
  1591. source: "isActive\x0a\x09^ self model selectedClass notNil",
  1592. referencedClasses: [],
  1593. //>>excludeEnd("ide");
  1594. messageSends: ["notNil", "selectedClass", "model"]
  1595. }),
  1596. $globals.HLRemoveClassCommand);
  1597. $core.addMethod(
  1598. $core.method({
  1599. selector: "key",
  1600. protocol: 'accessing',
  1601. fn: function (){
  1602. var self=this;
  1603. return "c";
  1604. },
  1605. //>>excludeStart("ide", pragmas.excludeIdeData);
  1606. args: [],
  1607. source: "key\x0a\x09^ 'c'",
  1608. referencedClasses: [],
  1609. //>>excludeEnd("ide");
  1610. messageSends: []
  1611. }),
  1612. $globals.HLRemoveClassCommand.klass);
  1613. $core.addMethod(
  1614. $core.method({
  1615. selector: "label",
  1616. protocol: 'accessing',
  1617. fn: function (){
  1618. var self=this;
  1619. return "Remove class";
  1620. },
  1621. //>>excludeStart("ide", pragmas.excludeIdeData);
  1622. args: [],
  1623. source: "label\x0a\x09^ 'Remove class'",
  1624. referencedClasses: [],
  1625. //>>excludeEnd("ide");
  1626. messageSends: []
  1627. }),
  1628. $globals.HLRemoveClassCommand.klass);
  1629. $core.addMethod(
  1630. $core.method({
  1631. selector: "menuLabel",
  1632. protocol: 'accessing',
  1633. fn: function (){
  1634. var self=this;
  1635. return "Remove class";
  1636. },
  1637. //>>excludeStart("ide", pragmas.excludeIdeData);
  1638. args: [],
  1639. source: "menuLabel\x0a\x09^ 'Remove class'",
  1640. referencedClasses: [],
  1641. //>>excludeEnd("ide");
  1642. messageSends: []
  1643. }),
  1644. $globals.HLRemoveClassCommand.klass);
  1645. $core.addClass('HLRemoveMethodCommand', $globals.HLRemoveCommand, [], 'Helios-Commands-Tools');
  1646. $core.addMethod(
  1647. $core.method({
  1648. selector: "category",
  1649. protocol: 'accessing',
  1650. fn: function (){
  1651. var self=this;
  1652. return "Methods";
  1653. },
  1654. //>>excludeStart("ide", pragmas.excludeIdeData);
  1655. args: [],
  1656. source: "category\x0a\x09^ 'Methods'",
  1657. referencedClasses: [],
  1658. //>>excludeEnd("ide");
  1659. messageSends: []
  1660. }),
  1661. $globals.HLRemoveMethodCommand);
  1662. $core.addMethod(
  1663. $core.method({
  1664. selector: "execute",
  1665. protocol: 'executing',
  1666. fn: function (){
  1667. var self=this;
  1668. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1669. return $core.withContext(function($ctx1) {
  1670. //>>excludeEnd("ctx");
  1671. $recv(self._model())._removeMethod();
  1672. return self;
  1673. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1674. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLRemoveMethodCommand)});
  1675. //>>excludeEnd("ctx");
  1676. },
  1677. //>>excludeStart("ide", pragmas.excludeIdeData);
  1678. args: [],
  1679. source: "execute\x0a\x09self model removeMethod",
  1680. referencedClasses: [],
  1681. //>>excludeEnd("ide");
  1682. messageSends: ["removeMethod", "model"]
  1683. }),
  1684. $globals.HLRemoveMethodCommand);
  1685. $core.addMethod(
  1686. $core.method({
  1687. selector: "isActive",
  1688. protocol: 'testing',
  1689. fn: function (){
  1690. var self=this;
  1691. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1692. return $core.withContext(function($ctx1) {
  1693. //>>excludeEnd("ctx");
  1694. var $1;
  1695. $1=$recv($recv(self._model())._selectedMethod())._notNil();
  1696. return $1;
  1697. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1698. }, function($ctx1) {$ctx1.fill(self,"isActive",{},$globals.HLRemoveMethodCommand)});
  1699. //>>excludeEnd("ctx");
  1700. },
  1701. //>>excludeStart("ide", pragmas.excludeIdeData);
  1702. args: [],
  1703. source: "isActive\x0a\x09^ self model selectedMethod notNil",
  1704. referencedClasses: [],
  1705. //>>excludeEnd("ide");
  1706. messageSends: ["notNil", "selectedMethod", "model"]
  1707. }),
  1708. $globals.HLRemoveMethodCommand);
  1709. $core.addMethod(
  1710. $core.method({
  1711. selector: "key",
  1712. protocol: 'accessing',
  1713. fn: function (){
  1714. var self=this;
  1715. return "m";
  1716. },
  1717. //>>excludeStart("ide", pragmas.excludeIdeData);
  1718. args: [],
  1719. source: "key\x0a\x09^ 'm'",
  1720. referencedClasses: [],
  1721. //>>excludeEnd("ide");
  1722. messageSends: []
  1723. }),
  1724. $globals.HLRemoveMethodCommand.klass);
  1725. $core.addMethod(
  1726. $core.method({
  1727. selector: "label",
  1728. protocol: 'accessing',
  1729. fn: function (){
  1730. var self=this;
  1731. return "Remove method";
  1732. },
  1733. //>>excludeStart("ide", pragmas.excludeIdeData);
  1734. args: [],
  1735. source: "label\x0a\x09^ 'Remove method'",
  1736. referencedClasses: [],
  1737. //>>excludeEnd("ide");
  1738. messageSends: []
  1739. }),
  1740. $globals.HLRemoveMethodCommand.klass);
  1741. $core.addMethod(
  1742. $core.method({
  1743. selector: "menuLabel",
  1744. protocol: 'accessing',
  1745. fn: function (){
  1746. var self=this;
  1747. return "Remove method";
  1748. },
  1749. //>>excludeStart("ide", pragmas.excludeIdeData);
  1750. args: [],
  1751. source: "menuLabel\x0a\x09^ 'Remove method'",
  1752. referencedClasses: [],
  1753. //>>excludeEnd("ide");
  1754. messageSends: []
  1755. }),
  1756. $globals.HLRemoveMethodCommand.klass);
  1757. $core.addClass('HLRemoveProtocolCommand', $globals.HLRemoveCommand, [], 'Helios-Commands-Tools');
  1758. $core.addMethod(
  1759. $core.method({
  1760. selector: "category",
  1761. protocol: 'accessing',
  1762. fn: function (){
  1763. var self=this;
  1764. return "Protocols";
  1765. },
  1766. //>>excludeStart("ide", pragmas.excludeIdeData);
  1767. args: [],
  1768. source: "category\x0a\x09^ 'Protocols'",
  1769. referencedClasses: [],
  1770. //>>excludeEnd("ide");
  1771. messageSends: []
  1772. }),
  1773. $globals.HLRemoveProtocolCommand);
  1774. $core.addMethod(
  1775. $core.method({
  1776. selector: "execute",
  1777. protocol: 'executing',
  1778. fn: function (){
  1779. var self=this;
  1780. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1781. return $core.withContext(function($ctx1) {
  1782. //>>excludeEnd("ctx");
  1783. $recv(self._model())._removeProtocol();
  1784. return self;
  1785. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1786. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLRemoveProtocolCommand)});
  1787. //>>excludeEnd("ctx");
  1788. },
  1789. //>>excludeStart("ide", pragmas.excludeIdeData);
  1790. args: [],
  1791. source: "execute\x0a\x09self model removeProtocol",
  1792. referencedClasses: [],
  1793. //>>excludeEnd("ide");
  1794. messageSends: ["removeProtocol", "model"]
  1795. }),
  1796. $globals.HLRemoveProtocolCommand);
  1797. $core.addMethod(
  1798. $core.method({
  1799. selector: "isActive",
  1800. protocol: 'testing',
  1801. fn: function (){
  1802. var self=this;
  1803. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1804. return $core.withContext(function($ctx1) {
  1805. //>>excludeEnd("ctx");
  1806. var $1;
  1807. $1=$recv($recv(self._model())._selectedProtocol())._notNil();
  1808. return $1;
  1809. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1810. }, function($ctx1) {$ctx1.fill(self,"isActive",{},$globals.HLRemoveProtocolCommand)});
  1811. //>>excludeEnd("ctx");
  1812. },
  1813. //>>excludeStart("ide", pragmas.excludeIdeData);
  1814. args: [],
  1815. source: "isActive\x0a\x09^ self model selectedProtocol notNil",
  1816. referencedClasses: [],
  1817. //>>excludeEnd("ide");
  1818. messageSends: ["notNil", "selectedProtocol", "model"]
  1819. }),
  1820. $globals.HLRemoveProtocolCommand);
  1821. $core.addMethod(
  1822. $core.method({
  1823. selector: "key",
  1824. protocol: 'accessing',
  1825. fn: function (){
  1826. var self=this;
  1827. return "t";
  1828. },
  1829. //>>excludeStart("ide", pragmas.excludeIdeData);
  1830. args: [],
  1831. source: "key\x0a\x09^ 't'",
  1832. referencedClasses: [],
  1833. //>>excludeEnd("ide");
  1834. messageSends: []
  1835. }),
  1836. $globals.HLRemoveProtocolCommand.klass);
  1837. $core.addMethod(
  1838. $core.method({
  1839. selector: "label",
  1840. protocol: 'accessing',
  1841. fn: function (){
  1842. var self=this;
  1843. return "Remove protocol";
  1844. },
  1845. //>>excludeStart("ide", pragmas.excludeIdeData);
  1846. args: [],
  1847. source: "label\x0a\x09^ 'Remove protocol'",
  1848. referencedClasses: [],
  1849. //>>excludeEnd("ide");
  1850. messageSends: []
  1851. }),
  1852. $globals.HLRemoveProtocolCommand.klass);
  1853. $core.addMethod(
  1854. $core.method({
  1855. selector: "menuLabel",
  1856. protocol: 'accessing',
  1857. fn: function (){
  1858. var self=this;
  1859. return "Remove protocol";
  1860. },
  1861. //>>excludeStart("ide", pragmas.excludeIdeData);
  1862. args: [],
  1863. source: "menuLabel\x0a\x09^ 'Remove protocol'",
  1864. referencedClasses: [],
  1865. //>>excludeEnd("ide");
  1866. messageSends: []
  1867. }),
  1868. $globals.HLRemoveProtocolCommand.klass);
  1869. $core.addClass('HLRenameCommand', $globals.HLToolCommand, [], 'Helios-Commands-Tools');
  1870. $core.addMethod(
  1871. $core.method({
  1872. selector: "key",
  1873. protocol: 'accessing',
  1874. fn: function (){
  1875. var self=this;
  1876. return "r";
  1877. },
  1878. //>>excludeStart("ide", pragmas.excludeIdeData);
  1879. args: [],
  1880. source: "key\x0a\x09^ 'r'",
  1881. referencedClasses: [],
  1882. //>>excludeEnd("ide");
  1883. messageSends: []
  1884. }),
  1885. $globals.HLRenameCommand.klass);
  1886. $core.addMethod(
  1887. $core.method({
  1888. selector: "label",
  1889. protocol: 'accessing',
  1890. fn: function (){
  1891. var self=this;
  1892. return "Rename";
  1893. },
  1894. //>>excludeStart("ide", pragmas.excludeIdeData);
  1895. args: [],
  1896. source: "label\x0a\x09^ 'Rename'",
  1897. referencedClasses: [],
  1898. //>>excludeEnd("ide");
  1899. messageSends: []
  1900. }),
  1901. $globals.HLRenameCommand.klass);
  1902. $core.addClass('HLRenameClassCommand', $globals.HLRenameCommand, [], 'Helios-Commands-Tools');
  1903. $core.addMethod(
  1904. $core.method({
  1905. selector: "category",
  1906. protocol: 'accessing',
  1907. fn: function (){
  1908. var self=this;
  1909. return "Classes";
  1910. },
  1911. //>>excludeStart("ide", pragmas.excludeIdeData);
  1912. args: [],
  1913. source: "category\x0a\x09^ 'Classes'",
  1914. referencedClasses: [],
  1915. //>>excludeEnd("ide");
  1916. messageSends: []
  1917. }),
  1918. $globals.HLRenameClassCommand);
  1919. $core.addMethod(
  1920. $core.method({
  1921. selector: "defaultInput",
  1922. protocol: 'defaults',
  1923. fn: function (){
  1924. var self=this;
  1925. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1926. return $core.withContext(function($ctx1) {
  1927. //>>excludeEnd("ctx");
  1928. var $1;
  1929. $1=$recv($recv($recv(self._model())._selectedClass())._theNonMetaClass())._name();
  1930. return $1;
  1931. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1932. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},$globals.HLRenameClassCommand)});
  1933. //>>excludeEnd("ctx");
  1934. },
  1935. //>>excludeStart("ide", pragmas.excludeIdeData);
  1936. args: [],
  1937. source: "defaultInput\x0a\x09^ self model selectedClass theNonMetaClass name",
  1938. referencedClasses: [],
  1939. //>>excludeEnd("ide");
  1940. messageSends: ["name", "theNonMetaClass", "selectedClass", "model"]
  1941. }),
  1942. $globals.HLRenameClassCommand);
  1943. $core.addMethod(
  1944. $core.method({
  1945. selector: "displayLabel",
  1946. protocol: 'accessing',
  1947. fn: function (){
  1948. var self=this;
  1949. return "Rename class to:";
  1950. },
  1951. //>>excludeStart("ide", pragmas.excludeIdeData);
  1952. args: [],
  1953. source: "displayLabel\x0a\x09^ 'Rename class to:'",
  1954. referencedClasses: [],
  1955. //>>excludeEnd("ide");
  1956. messageSends: []
  1957. }),
  1958. $globals.HLRenameClassCommand);
  1959. $core.addMethod(
  1960. $core.method({
  1961. selector: "execute",
  1962. protocol: 'executing',
  1963. fn: function (){
  1964. var self=this;
  1965. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1966. return $core.withContext(function($ctx1) {
  1967. //>>excludeEnd("ctx");
  1968. $recv(self._model())._renameClassTo_(self._input());
  1969. return self;
  1970. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1971. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLRenameClassCommand)});
  1972. //>>excludeEnd("ctx");
  1973. },
  1974. //>>excludeStart("ide", pragmas.excludeIdeData);
  1975. args: [],
  1976. source: "execute\x0a\x09self model renameClassTo: self input",
  1977. referencedClasses: [],
  1978. //>>excludeEnd("ide");
  1979. messageSends: ["renameClassTo:", "model", "input"]
  1980. }),
  1981. $globals.HLRenameClassCommand);
  1982. $core.addMethod(
  1983. $core.method({
  1984. selector: "isActive",
  1985. protocol: 'testing',
  1986. fn: function (){
  1987. var self=this;
  1988. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1989. return $core.withContext(function($ctx1) {
  1990. //>>excludeEnd("ctx");
  1991. var $1;
  1992. $1=$recv($recv(self._model())._selectedClass())._notNil();
  1993. return $1;
  1994. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  1995. }, function($ctx1) {$ctx1.fill(self,"isActive",{},$globals.HLRenameClassCommand)});
  1996. //>>excludeEnd("ctx");
  1997. },
  1998. //>>excludeStart("ide", pragmas.excludeIdeData);
  1999. args: [],
  2000. source: "isActive\x0a\x09^ self model selectedClass notNil",
  2001. referencedClasses: [],
  2002. //>>excludeEnd("ide");
  2003. messageSends: ["notNil", "selectedClass", "model"]
  2004. }),
  2005. $globals.HLRenameClassCommand);
  2006. $core.addMethod(
  2007. $core.method({
  2008. selector: "isInputRequired",
  2009. protocol: 'testing',
  2010. fn: function (){
  2011. var self=this;
  2012. return true;
  2013. },
  2014. //>>excludeStart("ide", pragmas.excludeIdeData);
  2015. args: [],
  2016. source: "isInputRequired\x0a\x09^ true",
  2017. referencedClasses: [],
  2018. //>>excludeEnd("ide");
  2019. messageSends: []
  2020. }),
  2021. $globals.HLRenameClassCommand);
  2022. $core.addMethod(
  2023. $core.method({
  2024. selector: "key",
  2025. protocol: 'accessing',
  2026. fn: function (){
  2027. var self=this;
  2028. return "c";
  2029. },
  2030. //>>excludeStart("ide", pragmas.excludeIdeData);
  2031. args: [],
  2032. source: "key\x0a\x09^ 'c'",
  2033. referencedClasses: [],
  2034. //>>excludeEnd("ide");
  2035. messageSends: []
  2036. }),
  2037. $globals.HLRenameClassCommand.klass);
  2038. $core.addMethod(
  2039. $core.method({
  2040. selector: "label",
  2041. protocol: 'accessing',
  2042. fn: function (){
  2043. var self=this;
  2044. return "Rename class";
  2045. },
  2046. //>>excludeStart("ide", pragmas.excludeIdeData);
  2047. args: [],
  2048. source: "label\x0a\x09^ 'Rename class'",
  2049. referencedClasses: [],
  2050. //>>excludeEnd("ide");
  2051. messageSends: []
  2052. }),
  2053. $globals.HLRenameClassCommand.klass);
  2054. $core.addMethod(
  2055. $core.method({
  2056. selector: "menuLabel",
  2057. protocol: 'accessing',
  2058. fn: function (){
  2059. var self=this;
  2060. return "Rename class...";
  2061. },
  2062. //>>excludeStart("ide", pragmas.excludeIdeData);
  2063. args: [],
  2064. source: "menuLabel\x0a\x09^ 'Rename class...'",
  2065. referencedClasses: [],
  2066. //>>excludeEnd("ide");
  2067. messageSends: []
  2068. }),
  2069. $globals.HLRenameClassCommand.klass);
  2070. $core.addClass('HLRenamePackageCommand', $globals.HLRenameCommand, [], 'Helios-Commands-Tools');
  2071. $core.addMethod(
  2072. $core.method({
  2073. selector: "category",
  2074. protocol: 'accessing',
  2075. fn: function (){
  2076. var self=this;
  2077. return "Packages";
  2078. },
  2079. //>>excludeStart("ide", pragmas.excludeIdeData);
  2080. args: [],
  2081. source: "category\x0a\x09^ 'Packages'",
  2082. referencedClasses: [],
  2083. //>>excludeEnd("ide");
  2084. messageSends: []
  2085. }),
  2086. $globals.HLRenamePackageCommand);
  2087. $core.addMethod(
  2088. $core.method({
  2089. selector: "defaultInput",
  2090. protocol: 'defaults',
  2091. fn: function (){
  2092. var self=this;
  2093. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2094. return $core.withContext(function($ctx1) {
  2095. //>>excludeEnd("ctx");
  2096. var $1;
  2097. $1=$recv($recv(self._model())._selectedPackage())._name();
  2098. return $1;
  2099. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2100. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},$globals.HLRenamePackageCommand)});
  2101. //>>excludeEnd("ctx");
  2102. },
  2103. //>>excludeStart("ide", pragmas.excludeIdeData);
  2104. args: [],
  2105. source: "defaultInput\x0a\x09^ self model selectedPackage name",
  2106. referencedClasses: [],
  2107. //>>excludeEnd("ide");
  2108. messageSends: ["name", "selectedPackage", "model"]
  2109. }),
  2110. $globals.HLRenamePackageCommand);
  2111. $core.addMethod(
  2112. $core.method({
  2113. selector: "displayLabel",
  2114. protocol: 'accessing',
  2115. fn: function (){
  2116. var self=this;
  2117. return "Rename package to:";
  2118. },
  2119. //>>excludeStart("ide", pragmas.excludeIdeData);
  2120. args: [],
  2121. source: "displayLabel\x0a\x09^ 'Rename package to:'",
  2122. referencedClasses: [],
  2123. //>>excludeEnd("ide");
  2124. messageSends: []
  2125. }),
  2126. $globals.HLRenamePackageCommand);
  2127. $core.addMethod(
  2128. $core.method({
  2129. selector: "execute",
  2130. protocol: 'executing',
  2131. fn: function (){
  2132. var self=this;
  2133. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2134. return $core.withContext(function($ctx1) {
  2135. //>>excludeEnd("ctx");
  2136. $recv(self._model())._renamePackageTo_(self._input());
  2137. return self;
  2138. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2139. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLRenamePackageCommand)});
  2140. //>>excludeEnd("ctx");
  2141. },
  2142. //>>excludeStart("ide", pragmas.excludeIdeData);
  2143. args: [],
  2144. source: "execute\x0a\x09self model renamePackageTo: self input",
  2145. referencedClasses: [],
  2146. //>>excludeEnd("ide");
  2147. messageSends: ["renamePackageTo:", "model", "input"]
  2148. }),
  2149. $globals.HLRenamePackageCommand);
  2150. $core.addMethod(
  2151. $core.method({
  2152. selector: "isActive",
  2153. protocol: 'testing',
  2154. fn: function (){
  2155. var self=this;
  2156. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2157. return $core.withContext(function($ctx1) {
  2158. //>>excludeEnd("ctx");
  2159. var $1;
  2160. $1=$recv($recv(self._model())._selectedPackage())._notNil();
  2161. return $1;
  2162. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2163. }, function($ctx1) {$ctx1.fill(self,"isActive",{},$globals.HLRenamePackageCommand)});
  2164. //>>excludeEnd("ctx");
  2165. },
  2166. //>>excludeStart("ide", pragmas.excludeIdeData);
  2167. args: [],
  2168. source: "isActive\x0a\x09^ self model selectedPackage notNil",
  2169. referencedClasses: [],
  2170. //>>excludeEnd("ide");
  2171. messageSends: ["notNil", "selectedPackage", "model"]
  2172. }),
  2173. $globals.HLRenamePackageCommand);
  2174. $core.addMethod(
  2175. $core.method({
  2176. selector: "isInputRequired",
  2177. protocol: 'testing',
  2178. fn: function (){
  2179. var self=this;
  2180. return true;
  2181. },
  2182. //>>excludeStart("ide", pragmas.excludeIdeData);
  2183. args: [],
  2184. source: "isInputRequired\x0a\x09^ true",
  2185. referencedClasses: [],
  2186. //>>excludeEnd("ide");
  2187. messageSends: []
  2188. }),
  2189. $globals.HLRenamePackageCommand);
  2190. $core.addMethod(
  2191. $core.method({
  2192. selector: "key",
  2193. protocol: 'accessing',
  2194. fn: function (){
  2195. var self=this;
  2196. return "p";
  2197. },
  2198. //>>excludeStart("ide", pragmas.excludeIdeData);
  2199. args: [],
  2200. source: "key\x0a\x09^ 'p'",
  2201. referencedClasses: [],
  2202. //>>excludeEnd("ide");
  2203. messageSends: []
  2204. }),
  2205. $globals.HLRenamePackageCommand.klass);
  2206. $core.addMethod(
  2207. $core.method({
  2208. selector: "label",
  2209. protocol: 'accessing',
  2210. fn: function (){
  2211. var self=this;
  2212. return "Rename package";
  2213. },
  2214. //>>excludeStart("ide", pragmas.excludeIdeData);
  2215. args: [],
  2216. source: "label\x0a\x09^ 'Rename package'",
  2217. referencedClasses: [],
  2218. //>>excludeEnd("ide");
  2219. messageSends: []
  2220. }),
  2221. $globals.HLRenamePackageCommand.klass);
  2222. $core.addMethod(
  2223. $core.method({
  2224. selector: "menuLabel",
  2225. protocol: 'accessing',
  2226. fn: function (){
  2227. var self=this;
  2228. return "Rename package...";
  2229. },
  2230. //>>excludeStart("ide", pragmas.excludeIdeData);
  2231. args: [],
  2232. source: "menuLabel\x0a\x09^ 'Rename package...'",
  2233. referencedClasses: [],
  2234. //>>excludeEnd("ide");
  2235. messageSends: []
  2236. }),
  2237. $globals.HLRenamePackageCommand.klass);
  2238. $core.addClass('HLRenameProtocolCommand', $globals.HLRenameCommand, [], 'Helios-Commands-Tools');
  2239. $core.addMethod(
  2240. $core.method({
  2241. selector: "category",
  2242. protocol: 'accessing',
  2243. fn: function (){
  2244. var self=this;
  2245. return "Protocols";
  2246. },
  2247. //>>excludeStart("ide", pragmas.excludeIdeData);
  2248. args: [],
  2249. source: "category\x0a\x09^ 'Protocols'",
  2250. referencedClasses: [],
  2251. //>>excludeEnd("ide");
  2252. messageSends: []
  2253. }),
  2254. $globals.HLRenameProtocolCommand);
  2255. $core.addMethod(
  2256. $core.method({
  2257. selector: "defaultInput",
  2258. protocol: 'defaults',
  2259. fn: function (){
  2260. var self=this;
  2261. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2262. return $core.withContext(function($ctx1) {
  2263. //>>excludeEnd("ctx");
  2264. var $1;
  2265. $1=$recv(self._model())._selectedProtocol();
  2266. return $1;
  2267. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2268. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},$globals.HLRenameProtocolCommand)});
  2269. //>>excludeEnd("ctx");
  2270. },
  2271. //>>excludeStart("ide", pragmas.excludeIdeData);
  2272. args: [],
  2273. source: "defaultInput\x0a\x09^ self model selectedProtocol",
  2274. referencedClasses: [],
  2275. //>>excludeEnd("ide");
  2276. messageSends: ["selectedProtocol", "model"]
  2277. }),
  2278. $globals.HLRenameProtocolCommand);
  2279. $core.addMethod(
  2280. $core.method({
  2281. selector: "displayLabel",
  2282. protocol: 'accessing',
  2283. fn: function (){
  2284. var self=this;
  2285. return "Rename protocol to:";
  2286. },
  2287. //>>excludeStart("ide", pragmas.excludeIdeData);
  2288. args: [],
  2289. source: "displayLabel\x0a\x09^ 'Rename protocol to:'",
  2290. referencedClasses: [],
  2291. //>>excludeEnd("ide");
  2292. messageSends: []
  2293. }),
  2294. $globals.HLRenameProtocolCommand);
  2295. $core.addMethod(
  2296. $core.method({
  2297. selector: "execute",
  2298. protocol: 'executing',
  2299. fn: function (){
  2300. var self=this;
  2301. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2302. return $core.withContext(function($ctx1) {
  2303. //>>excludeEnd("ctx");
  2304. $recv(self._model())._renameProtocolTo_(self._input());
  2305. return self;
  2306. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2307. }, function($ctx1) {$ctx1.fill(self,"execute",{},$globals.HLRenameProtocolCommand)});
  2308. //>>excludeEnd("ctx");
  2309. },
  2310. //>>excludeStart("ide", pragmas.excludeIdeData);
  2311. args: [],
  2312. source: "execute\x0a\x09self model renameProtocolTo: self input",
  2313. referencedClasses: [],
  2314. //>>excludeEnd("ide");
  2315. messageSends: ["renameProtocolTo:", "model", "input"]
  2316. }),
  2317. $globals.HLRenameProtocolCommand);
  2318. $core.addMethod(
  2319. $core.method({
  2320. selector: "isActive",
  2321. protocol: 'testing',
  2322. fn: function (){
  2323. var self=this;
  2324. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2325. return $core.withContext(function($ctx1) {
  2326. //>>excludeEnd("ctx");
  2327. var $1;
  2328. $1=$recv($recv(self._model())._selectedProtocol())._notNil();
  2329. return $1;
  2330. //>>excludeStart("ctx", pragmas.excludeDebugContexts);
  2331. }, function($ctx1) {$ctx1.fill(self,"isActive",{},$globals.HLRenameProtocolCommand)});
  2332. //>>excludeEnd("ctx");
  2333. },
  2334. //>>excludeStart("ide", pragmas.excludeIdeData);
  2335. args: [],
  2336. source: "isActive\x0a\x09^ self model selectedProtocol notNil",
  2337. referencedClasses: [],
  2338. //>>excludeEnd("ide");
  2339. messageSends: ["notNil", "selectedProtocol", "model"]
  2340. }),
  2341. $globals.HLRenameProtocolCommand);
  2342. $core.addMethod(
  2343. $core.method({
  2344. selector: "isInputRequired",
  2345. protocol: 'testing',
  2346. fn: function (){
  2347. var self=this;
  2348. return true;
  2349. },
  2350. //>>excludeStart("ide", pragmas.excludeIdeData);
  2351. args: [],
  2352. source: "isInputRequired\x0a\x09^ true",
  2353. referencedClasses: [],
  2354. //>>excludeEnd("ide");
  2355. messageSends: []
  2356. }),
  2357. $globals.HLRenameProtocolCommand);
  2358. $core.addMethod(
  2359. $core.method({
  2360. selector: "key",
  2361. protocol: 'accessing',
  2362. fn: function (){
  2363. var self=this;
  2364. return "t";
  2365. },
  2366. //>>excludeStart("ide", pragmas.excludeIdeData);
  2367. args: [],
  2368. source: "key\x0a\x09^ 't'",
  2369. referencedClasses: [],
  2370. //>>excludeEnd("ide");
  2371. messageSends: []
  2372. }),
  2373. $globals.HLRenameProtocolCommand.klass);
  2374. $core.addMethod(
  2375. $core.method({
  2376. selector: "label",
  2377. protocol: 'accessing',
  2378. fn: function (){
  2379. var self=this;
  2380. return "Rename protocol";
  2381. },
  2382. //>>excludeStart("ide", pragmas.excludeIdeData);
  2383. args: [],
  2384. source: "label\x0a\x09^ 'Rename protocol'",
  2385. referencedClasses: [],
  2386. //>>excludeEnd("ide");
  2387. messageSends: []
  2388. }),
  2389. $globals.HLRenameProtocolCommand.klass);
  2390. $core.addMethod(
  2391. $core.method({
  2392. selector: "menuLabel",
  2393. protocol: 'accessing',
  2394. fn: function (){
  2395. var self=this;
  2396. return "Rename protocol...";
  2397. },
  2398. //>>excludeStart("ide", pragmas.excludeIdeData);
  2399. args: [],
  2400. source: "menuLabel\x0a\x09^ 'Rename protocol...'",
  2401. referencedClasses: [],
  2402. //>>excludeEnd("ide");
  2403. messageSends: []
  2404. }),
  2405. $globals.HLRenameProtocolCommand.klass);
  2406. });