Helios-Commands-Tools.js 50 KB

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