Helios-Commands-Tools.js 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951
  1. define("helios/Helios-Commands-Tools", ["amber/boot", "helios/Helios-Commands-Core"], function($boot){
  2. var smalltalk=$boot.vm,nil=$boot.nil,_st=$boot.asReceiver,globals=$boot.globals;
  3. smalltalk.addPackage('Helios-Commands-Tools');
  4. smalltalk.packages["Helios-Commands-Tools"].transport = {"type":"amd","amdNamespace":"helios"};
  5. smalltalk.addClass('HLToolCommand', globals.HLModelCommand, [], 'Helios-Commands-Tools');
  6. smalltalk.addMethod(
  7. smalltalk.method({
  8. selector: "category",
  9. protocol: 'accessing',
  10. fn: function (){
  11. var self=this;
  12. return nil;
  13. },
  14. args: [],
  15. source: "category\x0a\x09^ nil",
  16. messageSends: [],
  17. referencedClasses: []
  18. }),
  19. globals.HLToolCommand);
  20. smalltalk.addMethod(
  21. smalltalk.method({
  22. selector: "for:",
  23. protocol: 'instance creation',
  24. fn: function (aToolModel){
  25. var self=this;
  26. return smalltalk.withContext(function($ctx1) {
  27. var $2,$3,$1;
  28. $2=self._new();
  29. _st($2)._model_(aToolModel);
  30. $3=_st($2)._yourself();
  31. $1=$3;
  32. return $1;
  33. }, function($ctx1) {$ctx1.fill(self,"for:",{aToolModel:aToolModel},globals.HLToolCommand.klass)})},
  34. args: ["aToolModel"],
  35. source: "for: aToolModel\x0a\x09^ self new\x0a \x09model: aToolModel;\x0a yourself",
  36. messageSends: ["model:", "new", "yourself"],
  37. referencedClasses: []
  38. }),
  39. globals.HLToolCommand.klass);
  40. smalltalk.addMethod(
  41. smalltalk.method({
  42. selector: "isValidFor:",
  43. protocol: 'testing',
  44. fn: function (aModel){
  45. var self=this;
  46. return smalltalk.withContext(function($ctx1) {
  47. var $1;
  48. $1=_st(aModel)._isToolModel();
  49. return $1;
  50. }, function($ctx1) {$ctx1.fill(self,"isValidFor:",{aModel:aModel},globals.HLToolCommand.klass)})},
  51. args: ["aModel"],
  52. source: "isValidFor: aModel\x0a\x09^ aModel isToolModel",
  53. messageSends: ["isToolModel"],
  54. referencedClasses: []
  55. }),
  56. globals.HLToolCommand.klass);
  57. smalltalk.addClass('HLBrowseMethodCommand', globals.HLToolCommand, [], 'Helios-Commands-Tools');
  58. smalltalk.addMethod(
  59. smalltalk.method({
  60. selector: "displayLabel",
  61. protocol: 'accessing',
  62. fn: function (){
  63. var self=this;
  64. return "browse method";
  65. },
  66. args: [],
  67. source: "displayLabel\x0a\x09^ 'browse method'",
  68. messageSends: [],
  69. referencedClasses: []
  70. }),
  71. globals.HLBrowseMethodCommand);
  72. smalltalk.addMethod(
  73. smalltalk.method({
  74. selector: "execute",
  75. protocol: 'executing',
  76. fn: function (){
  77. var self=this;
  78. return smalltalk.withContext(function($ctx1) {
  79. _st(self._model())._openMethod();
  80. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLBrowseMethodCommand)})},
  81. args: [],
  82. source: "execute\x0a\x09self model openMethod",
  83. messageSends: ["openMethod", "model"],
  84. referencedClasses: []
  85. }),
  86. globals.HLBrowseMethodCommand);
  87. smalltalk.addMethod(
  88. smalltalk.method({
  89. selector: "isValidFor:",
  90. protocol: 'testing',
  91. fn: function (aModel){
  92. var self=this;
  93. return smalltalk.withContext(function($ctx1) {
  94. var $1;
  95. $1=_st(aModel)._isReferencesModel();
  96. return $1;
  97. }, function($ctx1) {$ctx1.fill(self,"isValidFor:",{aModel:aModel},globals.HLBrowseMethodCommand.klass)})},
  98. args: ["aModel"],
  99. source: "isValidFor: aModel\x0a\x09^ aModel isReferencesModel",
  100. messageSends: ["isReferencesModel"],
  101. referencedClasses: []
  102. }),
  103. globals.HLBrowseMethodCommand.klass);
  104. smalltalk.addMethod(
  105. smalltalk.method({
  106. selector: "key",
  107. protocol: 'accessing',
  108. fn: function (){
  109. var self=this;
  110. return "b";
  111. },
  112. args: [],
  113. source: "key\x0a\x09^ 'b'",
  114. messageSends: [],
  115. referencedClasses: []
  116. }),
  117. globals.HLBrowseMethodCommand.klass);
  118. smalltalk.addMethod(
  119. smalltalk.method({
  120. selector: "label",
  121. protocol: 'accessing',
  122. fn: function (){
  123. var self=this;
  124. return "browse method";
  125. },
  126. args: [],
  127. source: "label\x0a\x09^ 'browse method'",
  128. messageSends: [],
  129. referencedClasses: []
  130. }),
  131. globals.HLBrowseMethodCommand.klass);
  132. smalltalk.addClass('HLCommitPackageCommand', globals.HLToolCommand, [], 'Helios-Commands-Tools');
  133. smalltalk.addMethod(
  134. smalltalk.method({
  135. selector: "category",
  136. protocol: 'accessing',
  137. fn: function (){
  138. var self=this;
  139. return "Packages";
  140. },
  141. args: [],
  142. source: "category\x0a\x09^ 'Packages'",
  143. messageSends: [],
  144. referencedClasses: []
  145. }),
  146. globals.HLCommitPackageCommand);
  147. smalltalk.addMethod(
  148. smalltalk.method({
  149. selector: "commitPackage",
  150. protocol: 'executing',
  151. fn: function (){
  152. var self=this;
  153. return smalltalk.withContext(function($ctx1) {
  154. _st(self._model())._commitPackageOnSuccess_onError_((function(){
  155. return smalltalk.withContext(function($ctx2) {
  156. return self._informSuccess();
  157. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}),(function(error){
  158. return smalltalk.withContext(function($ctx2) {
  159. return self._onPackageCommitError_(error);
  160. }, function($ctx2) {$ctx2.fillBlock({error:error},$ctx1,2)})}));
  161. return self}, function($ctx1) {$ctx1.fill(self,"commitPackage",{},globals.HLCommitPackageCommand)})},
  162. args: [],
  163. source: "commitPackage\x0a\x09self model \x0a\x09\x09commitPackageOnSuccess: [ self informSuccess ]\x0a\x09\x09onError: [ :error | self onPackageCommitError: error ]",
  164. messageSends: ["commitPackageOnSuccess:onError:", "model", "informSuccess", "onPackageCommitError:"],
  165. referencedClasses: []
  166. }),
  167. globals.HLCommitPackageCommand);
  168. smalltalk.addMethod(
  169. smalltalk.method({
  170. selector: "execute",
  171. protocol: 'executing',
  172. fn: function (){
  173. var self=this;
  174. return smalltalk.withContext(function($ctx1) {
  175. self._commitPackage();
  176. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLCommitPackageCommand)})},
  177. args: [],
  178. source: "execute\x0a\x09self commitPackage",
  179. messageSends: ["commitPackage"],
  180. referencedClasses: []
  181. }),
  182. globals.HLCommitPackageCommand);
  183. smalltalk.addMethod(
  184. smalltalk.method({
  185. selector: "informSuccess",
  186. protocol: 'executing',
  187. fn: function (){
  188. var self=this;
  189. function $HLInformationWidget(){return globals.HLInformationWidget||(typeof HLInformationWidget=="undefined"?nil:HLInformationWidget)}
  190. return smalltalk.withContext(function($ctx1) {
  191. var $1,$2;
  192. $1=_st($HLInformationWidget())._new();
  193. _st($1)._informationString_("Commit successful!");
  194. $2=_st($1)._show();
  195. return self}, function($ctx1) {$ctx1.fill(self,"informSuccess",{},globals.HLCommitPackageCommand)})},
  196. args: [],
  197. source: "informSuccess\x0a\x09HLInformationWidget new\x0a\x09\x09informationString: 'Commit successful!';\x0a\x09\x09show",
  198. messageSends: ["informationString:", "new", "show"],
  199. referencedClasses: ["HLInformationWidget"]
  200. }),
  201. globals.HLCommitPackageCommand);
  202. smalltalk.addMethod(
  203. smalltalk.method({
  204. selector: "isActive",
  205. protocol: 'testing',
  206. fn: function (){
  207. var self=this;
  208. return true;
  209. },
  210. args: [],
  211. source: "isActive\x0a\x09^ true\x0a\x09\x22self model isPackageDirty\x22",
  212. messageSends: [],
  213. referencedClasses: []
  214. }),
  215. globals.HLCommitPackageCommand);
  216. smalltalk.addMethod(
  217. smalltalk.method({
  218. selector: "onPackageCommitError:",
  219. protocol: 'error handling',
  220. fn: function (anError){
  221. var self=this;
  222. function $HLPackageCommitErrorHelper(){return globals.HLPackageCommitErrorHelper||(typeof HLPackageCommitErrorHelper=="undefined"?nil:HLPackageCommitErrorHelper)}
  223. return smalltalk.withContext(function($ctx1) {
  224. _st(_st($HLPackageCommitErrorHelper())._on_(self._model()))._showHelp();
  225. return self}, function($ctx1) {$ctx1.fill(self,"onPackageCommitError:",{anError:anError},globals.HLCommitPackageCommand)})},
  226. args: ["anError"],
  227. source: "onPackageCommitError: anError\x0a\x09(HLPackageCommitErrorHelper on: self model)\x0a\x09\x09showHelp",
  228. messageSends: ["showHelp", "on:", "model"],
  229. referencedClasses: ["HLPackageCommitErrorHelper"]
  230. }),
  231. globals.HLCommitPackageCommand);
  232. smalltalk.addMethod(
  233. smalltalk.method({
  234. selector: "key",
  235. protocol: 'accessing',
  236. fn: function (){
  237. var self=this;
  238. return "k";
  239. },
  240. args: [],
  241. source: "key\x0a\x09^ 'k'",
  242. messageSends: [],
  243. referencedClasses: []
  244. }),
  245. globals.HLCommitPackageCommand.klass);
  246. smalltalk.addMethod(
  247. smalltalk.method({
  248. selector: "label",
  249. protocol: 'accessing',
  250. fn: function (){
  251. var self=this;
  252. return "Commit package";
  253. },
  254. args: [],
  255. source: "label\x0a\x09^ 'Commit package'",
  256. messageSends: [],
  257. referencedClasses: []
  258. }),
  259. globals.HLCommitPackageCommand.klass);
  260. smalltalk.addClass('HLCopyCommand', globals.HLToolCommand, [], 'Helios-Commands-Tools');
  261. smalltalk.addMethod(
  262. smalltalk.method({
  263. selector: "key",
  264. protocol: 'accessing',
  265. fn: function (){
  266. var self=this;
  267. return "c";
  268. },
  269. args: [],
  270. source: "key\x0a\x09^ 'c'",
  271. messageSends: [],
  272. referencedClasses: []
  273. }),
  274. globals.HLCopyCommand.klass);
  275. smalltalk.addMethod(
  276. smalltalk.method({
  277. selector: "label",
  278. protocol: 'accessing',
  279. fn: function (){
  280. var self=this;
  281. return "Copy";
  282. },
  283. args: [],
  284. source: "label\x0a\x09^ 'Copy'",
  285. messageSends: [],
  286. referencedClasses: []
  287. }),
  288. globals.HLCopyCommand.klass);
  289. smalltalk.addClass('HLCopyClassCommand', globals.HLCopyCommand, [], 'Helios-Commands-Tools');
  290. smalltalk.addMethod(
  291. smalltalk.method({
  292. selector: "category",
  293. protocol: 'accessing',
  294. fn: function (){
  295. var self=this;
  296. return "Classes";
  297. },
  298. args: [],
  299. source: "category\x0a\x09^ 'Classes'",
  300. messageSends: [],
  301. referencedClasses: []
  302. }),
  303. globals.HLCopyClassCommand);
  304. smalltalk.addMethod(
  305. smalltalk.method({
  306. selector: "defaultInput",
  307. protocol: 'defaults',
  308. fn: function (){
  309. var self=this;
  310. return smalltalk.withContext(function($ctx1) {
  311. var $1;
  312. $1=_st(_st(_st(self._model())._selectedClass())._theNonMetaClass())._name();
  313. return $1;
  314. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},globals.HLCopyClassCommand)})},
  315. args: [],
  316. source: "defaultInput\x0a\x09^ self model selectedClass theNonMetaClass name",
  317. messageSends: ["name", "theNonMetaClass", "selectedClass", "model"],
  318. referencedClasses: []
  319. }),
  320. globals.HLCopyClassCommand);
  321. smalltalk.addMethod(
  322. smalltalk.method({
  323. selector: "displayLabel",
  324. protocol: 'accessing',
  325. fn: function (){
  326. var self=this;
  327. return "New class name:";
  328. },
  329. args: [],
  330. source: "displayLabel\x0a\x09^ 'New class name:'",
  331. messageSends: [],
  332. referencedClasses: []
  333. }),
  334. globals.HLCopyClassCommand);
  335. smalltalk.addMethod(
  336. smalltalk.method({
  337. selector: "execute",
  338. protocol: 'executing',
  339. fn: function (){
  340. var self=this;
  341. return smalltalk.withContext(function($ctx1) {
  342. _st(self._model())._copyClassTo_(self._input());
  343. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLCopyClassCommand)})},
  344. args: [],
  345. source: "execute\x0a\x09self model copyClassTo: self input",
  346. messageSends: ["copyClassTo:", "model", "input"],
  347. referencedClasses: []
  348. }),
  349. globals.HLCopyClassCommand);
  350. smalltalk.addMethod(
  351. smalltalk.method({
  352. selector: "isActive",
  353. protocol: 'testing',
  354. fn: function (){
  355. var self=this;
  356. return smalltalk.withContext(function($ctx1) {
  357. var $1;
  358. $1=_st(_st(self._model())._selectedClass())._notNil();
  359. return $1;
  360. }, function($ctx1) {$ctx1.fill(self,"isActive",{},globals.HLCopyClassCommand)})},
  361. args: [],
  362. source: "isActive\x0a\x09^ self model selectedClass notNil",
  363. messageSends: ["notNil", "selectedClass", "model"],
  364. referencedClasses: []
  365. }),
  366. globals.HLCopyClassCommand);
  367. smalltalk.addMethod(
  368. smalltalk.method({
  369. selector: "isInputRequired",
  370. protocol: 'testing',
  371. fn: function (){
  372. var self=this;
  373. return true;
  374. },
  375. args: [],
  376. source: "isInputRequired\x0a\x09^ true",
  377. messageSends: [],
  378. referencedClasses: []
  379. }),
  380. globals.HLCopyClassCommand);
  381. smalltalk.addMethod(
  382. smalltalk.method({
  383. selector: "key",
  384. protocol: 'accessing',
  385. fn: function (){
  386. var self=this;
  387. return "c";
  388. },
  389. args: [],
  390. source: "key\x0a\x09^ 'c'",
  391. messageSends: [],
  392. referencedClasses: []
  393. }),
  394. globals.HLCopyClassCommand.klass);
  395. smalltalk.addMethod(
  396. smalltalk.method({
  397. selector: "label",
  398. protocol: 'accessing',
  399. fn: function (){
  400. var self=this;
  401. return "Copy class";
  402. },
  403. args: [],
  404. source: "label\x0a\x09^ 'Copy class'",
  405. messageSends: [],
  406. referencedClasses: []
  407. }),
  408. globals.HLCopyClassCommand.klass);
  409. smalltalk.addMethod(
  410. smalltalk.method({
  411. selector: "menuLabel",
  412. protocol: 'accessing',
  413. fn: function (){
  414. var self=this;
  415. return "Copy class...";
  416. },
  417. args: [],
  418. source: "menuLabel\x0a\x09^ 'Copy class...'",
  419. messageSends: [],
  420. referencedClasses: []
  421. }),
  422. globals.HLCopyClassCommand.klass);
  423. smalltalk.addClass('HLFindCommand', globals.HLToolCommand, [], 'Helios-Commands-Tools');
  424. smalltalk.addMethod(
  425. smalltalk.method({
  426. selector: "key",
  427. protocol: 'accessing',
  428. fn: function (){
  429. var self=this;
  430. return "f";
  431. },
  432. args: [],
  433. source: "key\x0a\x09^ 'f'",
  434. messageSends: [],
  435. referencedClasses: []
  436. }),
  437. globals.HLFindCommand.klass);
  438. smalltalk.addMethod(
  439. smalltalk.method({
  440. selector: "label",
  441. protocol: 'accessing',
  442. fn: function (){
  443. var self=this;
  444. return "Find";
  445. },
  446. args: [],
  447. source: "label\x0a\x09^ 'Find'",
  448. messageSends: [],
  449. referencedClasses: []
  450. }),
  451. globals.HLFindCommand.klass);
  452. smalltalk.addClass('HLFindClassCommand', globals.HLFindCommand, [], 'Helios-Commands-Tools');
  453. smalltalk.addMethod(
  454. smalltalk.method({
  455. selector: "displayLabel",
  456. protocol: 'accessing',
  457. fn: function (){
  458. var self=this;
  459. return "select a class";
  460. },
  461. args: [],
  462. source: "displayLabel\x0a\x09^ 'select a class'",
  463. messageSends: [],
  464. referencedClasses: []
  465. }),
  466. globals.HLFindClassCommand);
  467. smalltalk.addMethod(
  468. smalltalk.method({
  469. selector: "execute",
  470. protocol: 'executing',
  471. fn: function (){
  472. var self=this;
  473. return smalltalk.withContext(function($ctx1) {
  474. _st(self._model())._openClassNamed_(self._input());
  475. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLFindClassCommand)})},
  476. args: [],
  477. source: "execute\x0a\x09self model openClassNamed: self input",
  478. messageSends: ["openClassNamed:", "model", "input"],
  479. referencedClasses: []
  480. }),
  481. globals.HLFindClassCommand);
  482. smalltalk.addMethod(
  483. smalltalk.method({
  484. selector: "inputCompletion",
  485. protocol: 'accessing',
  486. fn: function (){
  487. var self=this;
  488. return smalltalk.withContext(function($ctx1) {
  489. var $1;
  490. $1=_st(self._model())._availableClassNames();
  491. return $1;
  492. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},globals.HLFindClassCommand)})},
  493. args: [],
  494. source: "inputCompletion\x0a\x09^ self model availableClassNames",
  495. messageSends: ["availableClassNames", "model"],
  496. referencedClasses: []
  497. }),
  498. globals.HLFindClassCommand);
  499. smalltalk.addMethod(
  500. smalltalk.method({
  501. selector: "inputLabel",
  502. protocol: 'accessing',
  503. fn: function (){
  504. var self=this;
  505. return "Find a class";
  506. },
  507. args: [],
  508. source: "inputLabel\x0a\x09^ 'Find a class'",
  509. messageSends: [],
  510. referencedClasses: []
  511. }),
  512. globals.HLFindClassCommand);
  513. smalltalk.addMethod(
  514. smalltalk.method({
  515. selector: "isInputRequired",
  516. protocol: 'testing',
  517. fn: function (){
  518. var self=this;
  519. return true;
  520. },
  521. args: [],
  522. source: "isInputRequired\x0a\x09^ true",
  523. messageSends: [],
  524. referencedClasses: []
  525. }),
  526. globals.HLFindClassCommand);
  527. smalltalk.addMethod(
  528. smalltalk.method({
  529. selector: "key",
  530. protocol: 'accessing',
  531. fn: function (){
  532. var self=this;
  533. return "c";
  534. },
  535. args: [],
  536. source: "key\x0a\x09^ 'c'",
  537. messageSends: [],
  538. referencedClasses: []
  539. }),
  540. globals.HLFindClassCommand.klass);
  541. smalltalk.addMethod(
  542. smalltalk.method({
  543. selector: "label",
  544. protocol: 'accessing',
  545. fn: function (){
  546. var self=this;
  547. return "Find class";
  548. },
  549. args: [],
  550. source: "label\x0a\x09^ 'Find class'",
  551. messageSends: [],
  552. referencedClasses: []
  553. }),
  554. globals.HLFindClassCommand.klass);
  555. smalltalk.addClass('HLFindReferencesCommand', globals.HLFindCommand, [], 'Helios-Commands-Tools');
  556. smalltalk.addMethod(
  557. smalltalk.method({
  558. selector: "defaultInput",
  559. protocol: 'defaults',
  560. fn: function (){
  561. var self=this;
  562. return smalltalk.withContext(function($ctx1) {
  563. var $3,$2,$4,$1,$receiver;
  564. $3=self._model();
  565. $ctx1.sendIdx["model"]=1;
  566. $2=_st($3)._selectedMethod();
  567. if(($receiver = $2) == null || $receiver.isNil){
  568. $4=_st(self._model())._selectedClass();
  569. if(($receiver = $4) == null || $receiver.isNil){
  570. $1="";
  571. } else {
  572. var class_;
  573. class_=$receiver;
  574. $1=_st(_st(class_)._theNonMetaClass())._name();
  575. };
  576. } else {
  577. var method;
  578. method=$receiver;
  579. $1=_st(method)._selector();
  580. };
  581. return $1;
  582. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},globals.HLFindReferencesCommand)})},
  583. args: [],
  584. 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 ]",
  585. messageSends: ["ifNil:ifNotNil:", "selectedMethod", "model", "selectedClass", "name", "theNonMetaClass", "selector"],
  586. referencedClasses: []
  587. }),
  588. globals.HLFindReferencesCommand);
  589. smalltalk.addMethod(
  590. smalltalk.method({
  591. selector: "displayLabel",
  592. protocol: 'accessing',
  593. fn: function (){
  594. var self=this;
  595. return "find references";
  596. },
  597. args: [],
  598. source: "displayLabel\x0a\x09^ 'find references'",
  599. messageSends: [],
  600. referencedClasses: []
  601. }),
  602. globals.HLFindReferencesCommand);
  603. smalltalk.addMethod(
  604. smalltalk.method({
  605. selector: "execute",
  606. protocol: 'executing',
  607. fn: function (){
  608. var self=this;
  609. function $HLReferences(){return globals.HLReferences||(typeof HLReferences=="undefined"?nil:HLReferences)}
  610. return smalltalk.withContext(function($ctx1) {
  611. var $1,$2;
  612. $1=_st($HLReferences())._new();
  613. _st($1)._openAsTab();
  614. $2=_st($1)._search_(self._input());
  615. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLFindReferencesCommand)})},
  616. args: [],
  617. source: "execute\x0a\x09HLReferences new \x0a\x09\x09openAsTab;\x0a\x09\x09search: self input",
  618. messageSends: ["openAsTab", "new", "search:", "input"],
  619. referencedClasses: ["HLReferences"]
  620. }),
  621. globals.HLFindReferencesCommand);
  622. smalltalk.addMethod(
  623. smalltalk.method({
  624. selector: "inputCompletion",
  625. protocol: 'accessing',
  626. fn: function (){
  627. var self=this;
  628. return smalltalk.withContext(function($ctx1) {
  629. var $3,$2,$1;
  630. $3=self._model();
  631. $ctx1.sendIdx["model"]=1;
  632. $2=_st($3)._availableClassNames();
  633. $1=_st($2).__comma(_st(self._model())._allSelectors());
  634. return $1;
  635. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},globals.HLFindReferencesCommand)})},
  636. args: [],
  637. source: "inputCompletion\x0a\x09^ self model availableClassNames, self model allSelectors",
  638. messageSends: [",", "availableClassNames", "model", "allSelectors"],
  639. referencedClasses: []
  640. }),
  641. globals.HLFindReferencesCommand);
  642. smalltalk.addMethod(
  643. smalltalk.method({
  644. selector: "inputLabel",
  645. protocol: 'accessing',
  646. fn: function (){
  647. var self=this;
  648. return "Find references of";
  649. },
  650. args: [],
  651. source: "inputLabel\x0a\x09^ 'Find references of'",
  652. messageSends: [],
  653. referencedClasses: []
  654. }),
  655. globals.HLFindReferencesCommand);
  656. smalltalk.addMethod(
  657. smalltalk.method({
  658. selector: "isInputRequired",
  659. protocol: 'testing',
  660. fn: function (){
  661. var self=this;
  662. return true;
  663. },
  664. args: [],
  665. source: "isInputRequired\x0a\x09^ true",
  666. messageSends: [],
  667. referencedClasses: []
  668. }),
  669. globals.HLFindReferencesCommand);
  670. smalltalk.addMethod(
  671. smalltalk.method({
  672. selector: "key",
  673. protocol: 'accessing',
  674. fn: function (){
  675. var self=this;
  676. return "r";
  677. },
  678. args: [],
  679. source: "key\x0a\x09^ 'r'",
  680. messageSends: [],
  681. referencedClasses: []
  682. }),
  683. globals.HLFindReferencesCommand.klass);
  684. smalltalk.addMethod(
  685. smalltalk.method({
  686. selector: "label",
  687. protocol: 'accessing',
  688. fn: function (){
  689. var self=this;
  690. return "Find references";
  691. },
  692. args: [],
  693. source: "label\x0a\x09^ 'Find references'",
  694. messageSends: [],
  695. referencedClasses: []
  696. }),
  697. globals.HLFindReferencesCommand.klass);
  698. smalltalk.addClass('HLMoveToCommand', globals.HLToolCommand, [], 'Helios-Commands-Tools');
  699. smalltalk.addMethod(
  700. smalltalk.method({
  701. selector: "key",
  702. protocol: 'accessing',
  703. fn: function (){
  704. var self=this;
  705. return "m";
  706. },
  707. args: [],
  708. source: "key\x0a\x09^ 'm'",
  709. messageSends: [],
  710. referencedClasses: []
  711. }),
  712. globals.HLMoveToCommand.klass);
  713. smalltalk.addMethod(
  714. smalltalk.method({
  715. selector: "label",
  716. protocol: 'accessing',
  717. fn: function (){
  718. var self=this;
  719. return "Move";
  720. },
  721. args: [],
  722. source: "label\x0a\x09^ 'Move'",
  723. messageSends: [],
  724. referencedClasses: []
  725. }),
  726. globals.HLMoveToCommand.klass);
  727. smalltalk.addClass('HLMoveClassToCommand', globals.HLMoveToCommand, [], 'Helios-Commands-Tools');
  728. smalltalk.addMethod(
  729. smalltalk.method({
  730. selector: "isActive",
  731. protocol: 'testing',
  732. fn: function (){
  733. var self=this;
  734. return smalltalk.withContext(function($ctx1) {
  735. var $1;
  736. $1=_st(_st(self._model())._selectedClass())._notNil();
  737. return $1;
  738. }, function($ctx1) {$ctx1.fill(self,"isActive",{},globals.HLMoveClassToCommand)})},
  739. args: [],
  740. source: "isActive\x0a\x09^ self model selectedClass notNil",
  741. messageSends: ["notNil", "selectedClass", "model"],
  742. referencedClasses: []
  743. }),
  744. globals.HLMoveClassToCommand);
  745. smalltalk.addMethod(
  746. smalltalk.method({
  747. selector: "key",
  748. protocol: 'accessing',
  749. fn: function (){
  750. var self=this;
  751. return "c";
  752. },
  753. args: [],
  754. source: "key\x0a\x09^ 'c'",
  755. messageSends: [],
  756. referencedClasses: []
  757. }),
  758. globals.HLMoveClassToCommand.klass);
  759. smalltalk.addMethod(
  760. smalltalk.method({
  761. selector: "label",
  762. protocol: 'accessing',
  763. fn: function (){
  764. var self=this;
  765. return "Move class";
  766. },
  767. args: [],
  768. source: "label\x0a\x09^ 'Move class'",
  769. messageSends: [],
  770. referencedClasses: []
  771. }),
  772. globals.HLMoveClassToCommand.klass);
  773. smalltalk.addClass('HLMoveClassToPackageCommand', globals.HLMoveClassToCommand, [], 'Helios-Commands-Tools');
  774. smalltalk.addMethod(
  775. smalltalk.method({
  776. selector: "category",
  777. protocol: 'accessing',
  778. fn: function (){
  779. var self=this;
  780. return "Classes";
  781. },
  782. args: [],
  783. source: "category\x0a\x09^ 'Classes'",
  784. messageSends: [],
  785. referencedClasses: []
  786. }),
  787. globals.HLMoveClassToPackageCommand);
  788. smalltalk.addMethod(
  789. smalltalk.method({
  790. selector: "displayLabel",
  791. protocol: 'accessing',
  792. fn: function (){
  793. var self=this;
  794. return "select a package";
  795. },
  796. args: [],
  797. source: "displayLabel\x0a\x09^ 'select a package'",
  798. messageSends: [],
  799. referencedClasses: []
  800. }),
  801. globals.HLMoveClassToPackageCommand);
  802. smalltalk.addMethod(
  803. smalltalk.method({
  804. selector: "execute",
  805. protocol: 'executing',
  806. fn: function (){
  807. var self=this;
  808. return smalltalk.withContext(function($ctx1) {
  809. _st(self._model())._moveClassToPackage_(self._input());
  810. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLMoveClassToPackageCommand)})},
  811. args: [],
  812. source: "execute\x0a\x09self model moveClassToPackage: self input",
  813. messageSends: ["moveClassToPackage:", "model", "input"],
  814. referencedClasses: []
  815. }),
  816. globals.HLMoveClassToPackageCommand);
  817. smalltalk.addMethod(
  818. smalltalk.method({
  819. selector: "inputCompletion",
  820. protocol: 'accessing',
  821. fn: function (){
  822. var self=this;
  823. return smalltalk.withContext(function($ctx1) {
  824. var $1;
  825. $1=_st(self._model())._availablePackageNames();
  826. return $1;
  827. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},globals.HLMoveClassToPackageCommand)})},
  828. args: [],
  829. source: "inputCompletion\x0a\x09^ self model availablePackageNames",
  830. messageSends: ["availablePackageNames", "model"],
  831. referencedClasses: []
  832. }),
  833. globals.HLMoveClassToPackageCommand);
  834. smalltalk.addMethod(
  835. smalltalk.method({
  836. selector: "inputLabel",
  837. protocol: 'accessing',
  838. fn: function (){
  839. var self=this;
  840. return "Move class to package:";
  841. },
  842. args: [],
  843. source: "inputLabel\x0a\x09^ 'Move class to package:'",
  844. messageSends: [],
  845. referencedClasses: []
  846. }),
  847. globals.HLMoveClassToPackageCommand);
  848. smalltalk.addMethod(
  849. smalltalk.method({
  850. selector: "isInputRequired",
  851. protocol: 'testing',
  852. fn: function (){
  853. var self=this;
  854. return true;
  855. },
  856. args: [],
  857. source: "isInputRequired\x0a\x09^ true",
  858. messageSends: [],
  859. referencedClasses: []
  860. }),
  861. globals.HLMoveClassToPackageCommand);
  862. smalltalk.addMethod(
  863. smalltalk.method({
  864. selector: "key",
  865. protocol: 'accessing',
  866. fn: function (){
  867. var self=this;
  868. return "p";
  869. },
  870. args: [],
  871. source: "key\x0a\x09^ 'p'",
  872. messageSends: [],
  873. referencedClasses: []
  874. }),
  875. globals.HLMoveClassToPackageCommand.klass);
  876. smalltalk.addMethod(
  877. smalltalk.method({
  878. selector: "label",
  879. protocol: 'accessing',
  880. fn: function (){
  881. var self=this;
  882. return "Move class to package";
  883. },
  884. args: [],
  885. source: "label\x0a\x09^ 'Move class to package'",
  886. messageSends: [],
  887. referencedClasses: []
  888. }),
  889. globals.HLMoveClassToPackageCommand.klass);
  890. smalltalk.addMethod(
  891. smalltalk.method({
  892. selector: "menuLabel",
  893. protocol: 'accessing',
  894. fn: function (){
  895. var self=this;
  896. return "Move to package...";
  897. },
  898. args: [],
  899. source: "menuLabel\x09\x0a\x09^ 'Move to package...'",
  900. messageSends: [],
  901. referencedClasses: []
  902. }),
  903. globals.HLMoveClassToPackageCommand.klass);
  904. smalltalk.addClass('HLMoveMethodToCommand', globals.HLMoveToCommand, [], 'Helios-Commands-Tools');
  905. smalltalk.addMethod(
  906. smalltalk.method({
  907. selector: "category",
  908. protocol: 'accessing',
  909. fn: function (){
  910. var self=this;
  911. return "Methods";
  912. },
  913. args: [],
  914. source: "category\x0a\x09^ 'Methods'",
  915. messageSends: [],
  916. referencedClasses: []
  917. }),
  918. globals.HLMoveMethodToCommand);
  919. smalltalk.addMethod(
  920. smalltalk.method({
  921. selector: "isActive",
  922. protocol: 'testing',
  923. fn: function (){
  924. var self=this;
  925. return smalltalk.withContext(function($ctx1) {
  926. var $1;
  927. $1=_st(_st(self._model())._selectedMethod())._notNil();
  928. return $1;
  929. }, function($ctx1) {$ctx1.fill(self,"isActive",{},globals.HLMoveMethodToCommand)})},
  930. args: [],
  931. source: "isActive\x0a\x09^ self model selectedMethod notNil",
  932. messageSends: ["notNil", "selectedMethod", "model"],
  933. referencedClasses: []
  934. }),
  935. globals.HLMoveMethodToCommand);
  936. smalltalk.addMethod(
  937. smalltalk.method({
  938. selector: "key",
  939. protocol: 'accessing',
  940. fn: function (){
  941. var self=this;
  942. return "m";
  943. },
  944. args: [],
  945. source: "key\x0a\x09^ 'm'",
  946. messageSends: [],
  947. referencedClasses: []
  948. }),
  949. globals.HLMoveMethodToCommand.klass);
  950. smalltalk.addMethod(
  951. smalltalk.method({
  952. selector: "label",
  953. protocol: 'accessing',
  954. fn: function (){
  955. var self=this;
  956. return "Move method";
  957. },
  958. args: [],
  959. source: "label\x0a\x09^ 'Move method'",
  960. messageSends: [],
  961. referencedClasses: []
  962. }),
  963. globals.HLMoveMethodToCommand.klass);
  964. smalltalk.addClass('HLMoveMethodToClassCommand', globals.HLMoveMethodToCommand, [], 'Helios-Commands-Tools');
  965. smalltalk.addMethod(
  966. smalltalk.method({
  967. selector: "displayLabel",
  968. protocol: 'accessing',
  969. fn: function (){
  970. var self=this;
  971. return "select a class";
  972. },
  973. args: [],
  974. source: "displayLabel\x0a\x09^ 'select a class'",
  975. messageSends: [],
  976. referencedClasses: []
  977. }),
  978. globals.HLMoveMethodToClassCommand);
  979. smalltalk.addMethod(
  980. smalltalk.method({
  981. selector: "execute",
  982. protocol: 'executing',
  983. fn: function (){
  984. var self=this;
  985. return smalltalk.withContext(function($ctx1) {
  986. _st(self._model())._moveMethodToClass_(self._input());
  987. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLMoveMethodToClassCommand)})},
  988. args: [],
  989. source: "execute\x0a\x09self model moveMethodToClass: self input",
  990. messageSends: ["moveMethodToClass:", "model", "input"],
  991. referencedClasses: []
  992. }),
  993. globals.HLMoveMethodToClassCommand);
  994. smalltalk.addMethod(
  995. smalltalk.method({
  996. selector: "inputCompletion",
  997. protocol: 'accessing',
  998. fn: function (){
  999. var self=this;
  1000. return smalltalk.withContext(function($ctx1) {
  1001. var $1;
  1002. $1=_st(self._model())._availableClassNames();
  1003. return $1;
  1004. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},globals.HLMoveMethodToClassCommand)})},
  1005. args: [],
  1006. source: "inputCompletion\x0a\x09^ self model availableClassNames",
  1007. messageSends: ["availableClassNames", "model"],
  1008. referencedClasses: []
  1009. }),
  1010. globals.HLMoveMethodToClassCommand);
  1011. smalltalk.addMethod(
  1012. smalltalk.method({
  1013. selector: "inputLabel",
  1014. protocol: 'accessing',
  1015. fn: function (){
  1016. var self=this;
  1017. return "Move method to class:";
  1018. },
  1019. args: [],
  1020. source: "inputLabel\x0a\x09^ 'Move method to class:'",
  1021. messageSends: [],
  1022. referencedClasses: []
  1023. }),
  1024. globals.HLMoveMethodToClassCommand);
  1025. smalltalk.addMethod(
  1026. smalltalk.method({
  1027. selector: "isInputRequired",
  1028. protocol: 'testing',
  1029. fn: function (){
  1030. var self=this;
  1031. return true;
  1032. },
  1033. args: [],
  1034. source: "isInputRequired\x0a\x09^ true",
  1035. messageSends: [],
  1036. referencedClasses: []
  1037. }),
  1038. globals.HLMoveMethodToClassCommand);
  1039. smalltalk.addMethod(
  1040. smalltalk.method({
  1041. selector: "key",
  1042. protocol: 'accessing',
  1043. fn: function (){
  1044. var self=this;
  1045. return "c";
  1046. },
  1047. args: [],
  1048. source: "key\x0a\x09^ 'c'",
  1049. messageSends: [],
  1050. referencedClasses: []
  1051. }),
  1052. globals.HLMoveMethodToClassCommand.klass);
  1053. smalltalk.addMethod(
  1054. smalltalk.method({
  1055. selector: "label",
  1056. protocol: 'accessing',
  1057. fn: function (){
  1058. var self=this;
  1059. return "Move method to class";
  1060. },
  1061. args: [],
  1062. source: "label\x09\x0a\x09^ 'Move method to class'",
  1063. messageSends: [],
  1064. referencedClasses: []
  1065. }),
  1066. globals.HLMoveMethodToClassCommand.klass);
  1067. smalltalk.addMethod(
  1068. smalltalk.method({
  1069. selector: "menuLabel",
  1070. protocol: 'accessing',
  1071. fn: function (){
  1072. var self=this;
  1073. return "Move to class...";
  1074. },
  1075. args: [],
  1076. source: "menuLabel\x09\x0a\x09^ 'Move to class...'",
  1077. messageSends: [],
  1078. referencedClasses: []
  1079. }),
  1080. globals.HLMoveMethodToClassCommand.klass);
  1081. smalltalk.addClass('HLMoveMethodToProtocolCommand', globals.HLMoveMethodToCommand, [], 'Helios-Commands-Tools');
  1082. smalltalk.addMethod(
  1083. smalltalk.method({
  1084. selector: "displayLabel",
  1085. protocol: 'accessing',
  1086. fn: function (){
  1087. var self=this;
  1088. return "select a protocol";
  1089. },
  1090. args: [],
  1091. source: "displayLabel\x0a\x09^ 'select a protocol'",
  1092. messageSends: [],
  1093. referencedClasses: []
  1094. }),
  1095. globals.HLMoveMethodToProtocolCommand);
  1096. smalltalk.addMethod(
  1097. smalltalk.method({
  1098. selector: "execute",
  1099. protocol: 'executing',
  1100. fn: function (){
  1101. var self=this;
  1102. return smalltalk.withContext(function($ctx1) {
  1103. _st(self._model())._moveMethodToProtocol_(self._input());
  1104. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLMoveMethodToProtocolCommand)})},
  1105. args: [],
  1106. source: "execute\x0a\x09self model moveMethodToProtocol: self input",
  1107. messageSends: ["moveMethodToProtocol:", "model", "input"],
  1108. referencedClasses: []
  1109. }),
  1110. globals.HLMoveMethodToProtocolCommand);
  1111. smalltalk.addMethod(
  1112. smalltalk.method({
  1113. selector: "inputCompletion",
  1114. protocol: 'accessing',
  1115. fn: function (){
  1116. var self=this;
  1117. return smalltalk.withContext(function($ctx1) {
  1118. var $1;
  1119. $1=_st(self._model())._availableProtocols();
  1120. return $1;
  1121. }, function($ctx1) {$ctx1.fill(self,"inputCompletion",{},globals.HLMoveMethodToProtocolCommand)})},
  1122. args: [],
  1123. source: "inputCompletion\x0a\x09^ self model availableProtocols",
  1124. messageSends: ["availableProtocols", "model"],
  1125. referencedClasses: []
  1126. }),
  1127. globals.HLMoveMethodToProtocolCommand);
  1128. smalltalk.addMethod(
  1129. smalltalk.method({
  1130. selector: "inputLabel",
  1131. protocol: 'accessing',
  1132. fn: function (){
  1133. var self=this;
  1134. return "Move method to a protocol:";
  1135. },
  1136. args: [],
  1137. source: "inputLabel\x0a\x09^ 'Move method to a protocol:'",
  1138. messageSends: [],
  1139. referencedClasses: []
  1140. }),
  1141. globals.HLMoveMethodToProtocolCommand);
  1142. smalltalk.addMethod(
  1143. smalltalk.method({
  1144. selector: "isInputRequired",
  1145. protocol: 'testing',
  1146. fn: function (){
  1147. var self=this;
  1148. return true;
  1149. },
  1150. args: [],
  1151. source: "isInputRequired\x0a\x09^ true",
  1152. messageSends: [],
  1153. referencedClasses: []
  1154. }),
  1155. globals.HLMoveMethodToProtocolCommand);
  1156. smalltalk.addMethod(
  1157. smalltalk.method({
  1158. selector: "key",
  1159. protocol: 'accessing',
  1160. fn: function (){
  1161. var self=this;
  1162. return "t";
  1163. },
  1164. args: [],
  1165. source: "key\x0a\x09^ 't'",
  1166. messageSends: [],
  1167. referencedClasses: []
  1168. }),
  1169. globals.HLMoveMethodToProtocolCommand.klass);
  1170. smalltalk.addMethod(
  1171. smalltalk.method({
  1172. selector: "label",
  1173. protocol: 'accessing',
  1174. fn: function (){
  1175. var self=this;
  1176. return "Move method to protocol";
  1177. },
  1178. args: [],
  1179. source: "label\x0a\x09^ 'Move method to protocol'",
  1180. messageSends: [],
  1181. referencedClasses: []
  1182. }),
  1183. globals.HLMoveMethodToProtocolCommand.klass);
  1184. smalltalk.addMethod(
  1185. smalltalk.method({
  1186. selector: "menuLabel",
  1187. protocol: 'accessing',
  1188. fn: function (){
  1189. var self=this;
  1190. return "Move to protocol...";
  1191. },
  1192. args: [],
  1193. source: "menuLabel\x0a\x09^ 'Move to protocol...'",
  1194. messageSends: [],
  1195. referencedClasses: []
  1196. }),
  1197. globals.HLMoveMethodToProtocolCommand.klass);
  1198. smalltalk.addClass('HLRemoveCommand', globals.HLToolCommand, [], 'Helios-Commands-Tools');
  1199. smalltalk.addMethod(
  1200. smalltalk.method({
  1201. selector: "key",
  1202. protocol: 'accessing',
  1203. fn: function (){
  1204. var self=this;
  1205. return "x";
  1206. },
  1207. args: [],
  1208. source: "key\x0a\x09^ 'x'",
  1209. messageSends: [],
  1210. referencedClasses: []
  1211. }),
  1212. globals.HLRemoveCommand.klass);
  1213. smalltalk.addMethod(
  1214. smalltalk.method({
  1215. selector: "label",
  1216. protocol: 'accessing',
  1217. fn: function (){
  1218. var self=this;
  1219. return "Remove";
  1220. },
  1221. args: [],
  1222. source: "label\x0a\x09^ 'Remove'",
  1223. messageSends: [],
  1224. referencedClasses: []
  1225. }),
  1226. globals.HLRemoveCommand.klass);
  1227. smalltalk.addClass('HLRemoveClassCommand', globals.HLRemoveCommand, [], 'Helios-Commands-Tools');
  1228. smalltalk.addMethod(
  1229. smalltalk.method({
  1230. selector: "category",
  1231. protocol: 'accessing',
  1232. fn: function (){
  1233. var self=this;
  1234. return "Classes";
  1235. },
  1236. args: [],
  1237. source: "category\x0a\x09^ 'Classes'",
  1238. messageSends: [],
  1239. referencedClasses: []
  1240. }),
  1241. globals.HLRemoveClassCommand);
  1242. smalltalk.addMethod(
  1243. smalltalk.method({
  1244. selector: "execute",
  1245. protocol: 'executing',
  1246. fn: function (){
  1247. var self=this;
  1248. return smalltalk.withContext(function($ctx1) {
  1249. _st(self._model())._removeClass();
  1250. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLRemoveClassCommand)})},
  1251. args: [],
  1252. source: "execute\x0a\x09self model removeClass",
  1253. messageSends: ["removeClass", "model"],
  1254. referencedClasses: []
  1255. }),
  1256. globals.HLRemoveClassCommand);
  1257. smalltalk.addMethod(
  1258. smalltalk.method({
  1259. selector: "isActive",
  1260. protocol: 'testing',
  1261. fn: function (){
  1262. var self=this;
  1263. return smalltalk.withContext(function($ctx1) {
  1264. var $1;
  1265. $1=_st(_st(self._model())._selectedClass())._notNil();
  1266. return $1;
  1267. }, function($ctx1) {$ctx1.fill(self,"isActive",{},globals.HLRemoveClassCommand)})},
  1268. args: [],
  1269. source: "isActive\x0a\x09^ self model selectedClass notNil",
  1270. messageSends: ["notNil", "selectedClass", "model"],
  1271. referencedClasses: []
  1272. }),
  1273. globals.HLRemoveClassCommand);
  1274. smalltalk.addMethod(
  1275. smalltalk.method({
  1276. selector: "key",
  1277. protocol: 'accessing',
  1278. fn: function (){
  1279. var self=this;
  1280. return "c";
  1281. },
  1282. args: [],
  1283. source: "key\x0a\x09^ 'c'",
  1284. messageSends: [],
  1285. referencedClasses: []
  1286. }),
  1287. globals.HLRemoveClassCommand.klass);
  1288. smalltalk.addMethod(
  1289. smalltalk.method({
  1290. selector: "label",
  1291. protocol: 'accessing',
  1292. fn: function (){
  1293. var self=this;
  1294. return "Remove class";
  1295. },
  1296. args: [],
  1297. source: "label\x0a\x09^ 'Remove class'",
  1298. messageSends: [],
  1299. referencedClasses: []
  1300. }),
  1301. globals.HLRemoveClassCommand.klass);
  1302. smalltalk.addMethod(
  1303. smalltalk.method({
  1304. selector: "menuLabel",
  1305. protocol: 'accessing',
  1306. fn: function (){
  1307. var self=this;
  1308. return "Remove class";
  1309. },
  1310. args: [],
  1311. source: "menuLabel\x0a\x09^ 'Remove class'",
  1312. messageSends: [],
  1313. referencedClasses: []
  1314. }),
  1315. globals.HLRemoveClassCommand.klass);
  1316. smalltalk.addClass('HLRemoveMethodCommand', globals.HLRemoveCommand, [], 'Helios-Commands-Tools');
  1317. smalltalk.addMethod(
  1318. smalltalk.method({
  1319. selector: "category",
  1320. protocol: 'accessing',
  1321. fn: function (){
  1322. var self=this;
  1323. return "Methods";
  1324. },
  1325. args: [],
  1326. source: "category\x0a\x09^ 'Methods'",
  1327. messageSends: [],
  1328. referencedClasses: []
  1329. }),
  1330. globals.HLRemoveMethodCommand);
  1331. smalltalk.addMethod(
  1332. smalltalk.method({
  1333. selector: "execute",
  1334. protocol: 'executing',
  1335. fn: function (){
  1336. var self=this;
  1337. return smalltalk.withContext(function($ctx1) {
  1338. _st(self._model())._removeMethod();
  1339. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLRemoveMethodCommand)})},
  1340. args: [],
  1341. source: "execute\x0a\x09self model removeMethod",
  1342. messageSends: ["removeMethod", "model"],
  1343. referencedClasses: []
  1344. }),
  1345. globals.HLRemoveMethodCommand);
  1346. smalltalk.addMethod(
  1347. smalltalk.method({
  1348. selector: "isActive",
  1349. protocol: 'testing',
  1350. fn: function (){
  1351. var self=this;
  1352. return smalltalk.withContext(function($ctx1) {
  1353. var $1;
  1354. $1=_st(_st(self._model())._selectedMethod())._notNil();
  1355. return $1;
  1356. }, function($ctx1) {$ctx1.fill(self,"isActive",{},globals.HLRemoveMethodCommand)})},
  1357. args: [],
  1358. source: "isActive\x0a\x09^ self model selectedMethod notNil",
  1359. messageSends: ["notNil", "selectedMethod", "model"],
  1360. referencedClasses: []
  1361. }),
  1362. globals.HLRemoveMethodCommand);
  1363. smalltalk.addMethod(
  1364. smalltalk.method({
  1365. selector: "key",
  1366. protocol: 'accessing',
  1367. fn: function (){
  1368. var self=this;
  1369. return "m";
  1370. },
  1371. args: [],
  1372. source: "key\x0a\x09^ 'm'",
  1373. messageSends: [],
  1374. referencedClasses: []
  1375. }),
  1376. globals.HLRemoveMethodCommand.klass);
  1377. smalltalk.addMethod(
  1378. smalltalk.method({
  1379. selector: "label",
  1380. protocol: 'accessing',
  1381. fn: function (){
  1382. var self=this;
  1383. return "Remove method";
  1384. },
  1385. args: [],
  1386. source: "label\x0a\x09^ 'Remove method'",
  1387. messageSends: [],
  1388. referencedClasses: []
  1389. }),
  1390. globals.HLRemoveMethodCommand.klass);
  1391. smalltalk.addMethod(
  1392. smalltalk.method({
  1393. selector: "menuLabel",
  1394. protocol: 'accessing',
  1395. fn: function (){
  1396. var self=this;
  1397. return "Remove method";
  1398. },
  1399. args: [],
  1400. source: "menuLabel\x0a\x09^ 'Remove method'",
  1401. messageSends: [],
  1402. referencedClasses: []
  1403. }),
  1404. globals.HLRemoveMethodCommand.klass);
  1405. smalltalk.addClass('HLRemoveProtocolCommand', globals.HLRemoveCommand, [], 'Helios-Commands-Tools');
  1406. smalltalk.addMethod(
  1407. smalltalk.method({
  1408. selector: "category",
  1409. protocol: 'accessing',
  1410. fn: function (){
  1411. var self=this;
  1412. return "Protocols";
  1413. },
  1414. args: [],
  1415. source: "category\x0a\x09^ 'Protocols'",
  1416. messageSends: [],
  1417. referencedClasses: []
  1418. }),
  1419. globals.HLRemoveProtocolCommand);
  1420. smalltalk.addMethod(
  1421. smalltalk.method({
  1422. selector: "execute",
  1423. protocol: 'executing',
  1424. fn: function (){
  1425. var self=this;
  1426. return smalltalk.withContext(function($ctx1) {
  1427. _st(self._model())._removeProtocol();
  1428. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLRemoveProtocolCommand)})},
  1429. args: [],
  1430. source: "execute\x0a\x09self model removeProtocol",
  1431. messageSends: ["removeProtocol", "model"],
  1432. referencedClasses: []
  1433. }),
  1434. globals.HLRemoveProtocolCommand);
  1435. smalltalk.addMethod(
  1436. smalltalk.method({
  1437. selector: "isActive",
  1438. protocol: 'testing',
  1439. fn: function (){
  1440. var self=this;
  1441. return smalltalk.withContext(function($ctx1) {
  1442. var $1;
  1443. $1=_st(_st(self._model())._selectedProtocol())._notNil();
  1444. return $1;
  1445. }, function($ctx1) {$ctx1.fill(self,"isActive",{},globals.HLRemoveProtocolCommand)})},
  1446. args: [],
  1447. source: "isActive\x0a\x09^ self model selectedProtocol notNil",
  1448. messageSends: ["notNil", "selectedProtocol", "model"],
  1449. referencedClasses: []
  1450. }),
  1451. globals.HLRemoveProtocolCommand);
  1452. smalltalk.addMethod(
  1453. smalltalk.method({
  1454. selector: "key",
  1455. protocol: 'accessing',
  1456. fn: function (){
  1457. var self=this;
  1458. return "t";
  1459. },
  1460. args: [],
  1461. source: "key\x0a\x09^ 't'",
  1462. messageSends: [],
  1463. referencedClasses: []
  1464. }),
  1465. globals.HLRemoveProtocolCommand.klass);
  1466. smalltalk.addMethod(
  1467. smalltalk.method({
  1468. selector: "label",
  1469. protocol: 'accessing',
  1470. fn: function (){
  1471. var self=this;
  1472. return "Remove protocol";
  1473. },
  1474. args: [],
  1475. source: "label\x0a\x09^ 'Remove protocol'",
  1476. messageSends: [],
  1477. referencedClasses: []
  1478. }),
  1479. globals.HLRemoveProtocolCommand.klass);
  1480. smalltalk.addMethod(
  1481. smalltalk.method({
  1482. selector: "menuLabel",
  1483. protocol: 'accessing',
  1484. fn: function (){
  1485. var self=this;
  1486. return "Remove protocol";
  1487. },
  1488. args: [],
  1489. source: "menuLabel\x0a\x09^ 'Remove protocol'",
  1490. messageSends: [],
  1491. referencedClasses: []
  1492. }),
  1493. globals.HLRemoveProtocolCommand.klass);
  1494. smalltalk.addClass('HLRenameCommand', globals.HLToolCommand, [], 'Helios-Commands-Tools');
  1495. smalltalk.addMethod(
  1496. smalltalk.method({
  1497. selector: "key",
  1498. protocol: 'accessing',
  1499. fn: function (){
  1500. var self=this;
  1501. return "r";
  1502. },
  1503. args: [],
  1504. source: "key\x0a\x09^ 'r'",
  1505. messageSends: [],
  1506. referencedClasses: []
  1507. }),
  1508. globals.HLRenameCommand.klass);
  1509. smalltalk.addMethod(
  1510. smalltalk.method({
  1511. selector: "label",
  1512. protocol: 'accessing',
  1513. fn: function (){
  1514. var self=this;
  1515. return "Rename";
  1516. },
  1517. args: [],
  1518. source: "label\x0a\x09^ 'Rename'",
  1519. messageSends: [],
  1520. referencedClasses: []
  1521. }),
  1522. globals.HLRenameCommand.klass);
  1523. smalltalk.addClass('HLRenameClassCommand', globals.HLRenameCommand, [], 'Helios-Commands-Tools');
  1524. smalltalk.addMethod(
  1525. smalltalk.method({
  1526. selector: "category",
  1527. protocol: 'accessing',
  1528. fn: function (){
  1529. var self=this;
  1530. return "Classes";
  1531. },
  1532. args: [],
  1533. source: "category\x0a\x09^ 'Classes'",
  1534. messageSends: [],
  1535. referencedClasses: []
  1536. }),
  1537. globals.HLRenameClassCommand);
  1538. smalltalk.addMethod(
  1539. smalltalk.method({
  1540. selector: "defaultInput",
  1541. protocol: 'defaults',
  1542. fn: function (){
  1543. var self=this;
  1544. return smalltalk.withContext(function($ctx1) {
  1545. var $1;
  1546. $1=_st(_st(_st(self._model())._selectedClass())._theNonMetaClass())._name();
  1547. return $1;
  1548. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},globals.HLRenameClassCommand)})},
  1549. args: [],
  1550. source: "defaultInput\x0a\x09^ self model selectedClass theNonMetaClass name",
  1551. messageSends: ["name", "theNonMetaClass", "selectedClass", "model"],
  1552. referencedClasses: []
  1553. }),
  1554. globals.HLRenameClassCommand);
  1555. smalltalk.addMethod(
  1556. smalltalk.method({
  1557. selector: "displayLabel",
  1558. protocol: 'accessing',
  1559. fn: function (){
  1560. var self=this;
  1561. return "Rename class to:";
  1562. },
  1563. args: [],
  1564. source: "displayLabel\x0a\x09^ 'Rename class to:'",
  1565. messageSends: [],
  1566. referencedClasses: []
  1567. }),
  1568. globals.HLRenameClassCommand);
  1569. smalltalk.addMethod(
  1570. smalltalk.method({
  1571. selector: "execute",
  1572. protocol: 'executing',
  1573. fn: function (){
  1574. var self=this;
  1575. return smalltalk.withContext(function($ctx1) {
  1576. _st(self._model())._renameClassTo_(self._input());
  1577. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLRenameClassCommand)})},
  1578. args: [],
  1579. source: "execute\x0a\x09self model renameClassTo: self input",
  1580. messageSends: ["renameClassTo:", "model", "input"],
  1581. referencedClasses: []
  1582. }),
  1583. globals.HLRenameClassCommand);
  1584. smalltalk.addMethod(
  1585. smalltalk.method({
  1586. selector: "isActive",
  1587. protocol: 'testing',
  1588. fn: function (){
  1589. var self=this;
  1590. return smalltalk.withContext(function($ctx1) {
  1591. var $1;
  1592. $1=_st(_st(self._model())._selectedClass())._notNil();
  1593. return $1;
  1594. }, function($ctx1) {$ctx1.fill(self,"isActive",{},globals.HLRenameClassCommand)})},
  1595. args: [],
  1596. source: "isActive\x0a\x09^ self model selectedClass notNil",
  1597. messageSends: ["notNil", "selectedClass", "model"],
  1598. referencedClasses: []
  1599. }),
  1600. globals.HLRenameClassCommand);
  1601. smalltalk.addMethod(
  1602. smalltalk.method({
  1603. selector: "isInputRequired",
  1604. protocol: 'testing',
  1605. fn: function (){
  1606. var self=this;
  1607. return true;
  1608. },
  1609. args: [],
  1610. source: "isInputRequired\x0a\x09^ true",
  1611. messageSends: [],
  1612. referencedClasses: []
  1613. }),
  1614. globals.HLRenameClassCommand);
  1615. smalltalk.addMethod(
  1616. smalltalk.method({
  1617. selector: "key",
  1618. protocol: 'accessing',
  1619. fn: function (){
  1620. var self=this;
  1621. return "c";
  1622. },
  1623. args: [],
  1624. source: "key\x0a\x09^ 'c'",
  1625. messageSends: [],
  1626. referencedClasses: []
  1627. }),
  1628. globals.HLRenameClassCommand.klass);
  1629. smalltalk.addMethod(
  1630. smalltalk.method({
  1631. selector: "label",
  1632. protocol: 'accessing',
  1633. fn: function (){
  1634. var self=this;
  1635. return "Rename class";
  1636. },
  1637. args: [],
  1638. source: "label\x0a\x09^ 'Rename class'",
  1639. messageSends: [],
  1640. referencedClasses: []
  1641. }),
  1642. globals.HLRenameClassCommand.klass);
  1643. smalltalk.addMethod(
  1644. smalltalk.method({
  1645. selector: "menuLabel",
  1646. protocol: 'accessing',
  1647. fn: function (){
  1648. var self=this;
  1649. return "Rename class...";
  1650. },
  1651. args: [],
  1652. source: "menuLabel\x0a\x09^ 'Rename class...'",
  1653. messageSends: [],
  1654. referencedClasses: []
  1655. }),
  1656. globals.HLRenameClassCommand.klass);
  1657. smalltalk.addClass('HLRenameProtocolCommand', globals.HLRenameCommand, [], 'Helios-Commands-Tools');
  1658. smalltalk.addMethod(
  1659. smalltalk.method({
  1660. selector: "category",
  1661. protocol: 'accessing',
  1662. fn: function (){
  1663. var self=this;
  1664. return "Protocols";
  1665. },
  1666. args: [],
  1667. source: "category\x0a\x09^ 'Protocols'",
  1668. messageSends: [],
  1669. referencedClasses: []
  1670. }),
  1671. globals.HLRenameProtocolCommand);
  1672. smalltalk.addMethod(
  1673. smalltalk.method({
  1674. selector: "defaultInput",
  1675. protocol: 'defaults',
  1676. fn: function (){
  1677. var self=this;
  1678. return smalltalk.withContext(function($ctx1) {
  1679. var $1;
  1680. $1=_st(self._model())._selectedProtocol();
  1681. return $1;
  1682. }, function($ctx1) {$ctx1.fill(self,"defaultInput",{},globals.HLRenameProtocolCommand)})},
  1683. args: [],
  1684. source: "defaultInput\x0a\x09^ self model selectedProtocol",
  1685. messageSends: ["selectedProtocol", "model"],
  1686. referencedClasses: []
  1687. }),
  1688. globals.HLRenameProtocolCommand);
  1689. smalltalk.addMethod(
  1690. smalltalk.method({
  1691. selector: "displayLabel",
  1692. protocol: 'accessing',
  1693. fn: function (){
  1694. var self=this;
  1695. return "Rename protocol to:";
  1696. },
  1697. args: [],
  1698. source: "displayLabel\x0a\x09^ 'Rename protocol to:'",
  1699. messageSends: [],
  1700. referencedClasses: []
  1701. }),
  1702. globals.HLRenameProtocolCommand);
  1703. smalltalk.addMethod(
  1704. smalltalk.method({
  1705. selector: "execute",
  1706. protocol: 'executing',
  1707. fn: function (){
  1708. var self=this;
  1709. return smalltalk.withContext(function($ctx1) {
  1710. _st(self._model())._renameProtocolTo_(self._input());
  1711. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},globals.HLRenameProtocolCommand)})},
  1712. args: [],
  1713. source: "execute\x0a\x09self model renameProtocolTo: self input",
  1714. messageSends: ["renameProtocolTo:", "model", "input"],
  1715. referencedClasses: []
  1716. }),
  1717. globals.HLRenameProtocolCommand);
  1718. smalltalk.addMethod(
  1719. smalltalk.method({
  1720. selector: "isActive",
  1721. protocol: 'testing',
  1722. fn: function (){
  1723. var self=this;
  1724. return smalltalk.withContext(function($ctx1) {
  1725. var $1;
  1726. $1=_st(_st(self._model())._selectedProtocol())._notNil();
  1727. return $1;
  1728. }, function($ctx1) {$ctx1.fill(self,"isActive",{},globals.HLRenameProtocolCommand)})},
  1729. args: [],
  1730. source: "isActive\x0a\x09^ self model selectedProtocol notNil",
  1731. messageSends: ["notNil", "selectedProtocol", "model"],
  1732. referencedClasses: []
  1733. }),
  1734. globals.HLRenameProtocolCommand);
  1735. smalltalk.addMethod(
  1736. smalltalk.method({
  1737. selector: "isInputRequired",
  1738. protocol: 'testing',
  1739. fn: function (){
  1740. var self=this;
  1741. return true;
  1742. },
  1743. args: [],
  1744. source: "isInputRequired\x0a\x09^ true",
  1745. messageSends: [],
  1746. referencedClasses: []
  1747. }),
  1748. globals.HLRenameProtocolCommand);
  1749. smalltalk.addMethod(
  1750. smalltalk.method({
  1751. selector: "key",
  1752. protocol: 'accessing',
  1753. fn: function (){
  1754. var self=this;
  1755. return "t";
  1756. },
  1757. args: [],
  1758. source: "key\x0a\x09^ 't'",
  1759. messageSends: [],
  1760. referencedClasses: []
  1761. }),
  1762. globals.HLRenameProtocolCommand.klass);
  1763. smalltalk.addMethod(
  1764. smalltalk.method({
  1765. selector: "label",
  1766. protocol: 'accessing',
  1767. fn: function (){
  1768. var self=this;
  1769. return "Rename protocol";
  1770. },
  1771. args: [],
  1772. source: "label\x0a\x09^ 'Rename protocol'",
  1773. messageSends: [],
  1774. referencedClasses: []
  1775. }),
  1776. globals.HLRenameProtocolCommand.klass);
  1777. smalltalk.addMethod(
  1778. smalltalk.method({
  1779. selector: "menuLabel",
  1780. protocol: 'accessing',
  1781. fn: function (){
  1782. var self=this;
  1783. return "Rename protocol...";
  1784. },
  1785. args: [],
  1786. source: "menuLabel\x0a\x09^ 'Rename protocol...'",
  1787. messageSends: [],
  1788. referencedClasses: []
  1789. }),
  1790. globals.HLRenameProtocolCommand.klass);
  1791. });