Helios-Commands-Tools.js 44 KB

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