1
0

Helios-Commands-Tools.js 50 KB

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