Helios-Commands-Browser.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. smalltalk.addPackage('Helios-Commands-Browser');
  2. smalltalk.addClass('HLBrowserCommand', smalltalk.HLToolCommand, [], 'Helios-Commands-Browser');
  3. smalltalk.addMethod(
  4. smalltalk.method({
  5. selector: "isValidFor:",
  6. category: 'testing',
  7. fn: function (aModel){
  8. var self=this;
  9. return smalltalk.withContext(function($ctx1) {
  10. var $1;
  11. $1=_st(aModel)._isBrowserModel();
  12. return $1;
  13. }, function($ctx1) {$ctx1.fill(self,"isValidFor:",{aModel:aModel},smalltalk.HLBrowserCommand.klass)})},
  14. args: ["aModel"],
  15. source: "isValidFor: aModel\x0a\x09^ aModel isBrowserModel",
  16. messageSends: ["isBrowserModel"],
  17. referencedClasses: []
  18. }),
  19. smalltalk.HLBrowserCommand.klass);
  20. smalltalk.addClass('HLBrowserGoToCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands-Browser');
  21. smalltalk.addMethod(
  22. smalltalk.method({
  23. selector: "isValidFor:",
  24. category: 'testing',
  25. fn: function (aModel){
  26. var self=this;
  27. return smalltalk.withContext(function($ctx1) {
  28. var $1;
  29. $1=_st(aModel)._isBrowserModel();
  30. return $1;
  31. }, function($ctx1) {$ctx1.fill(self,"isValidFor:",{aModel:aModel},smalltalk.HLBrowserGoToCommand.klass)})},
  32. args: ["aModel"],
  33. source: "isValidFor: aModel\x0a\x09^ aModel isBrowserModel",
  34. messageSends: ["isBrowserModel"],
  35. referencedClasses: []
  36. }),
  37. smalltalk.HLBrowserGoToCommand.klass);
  38. smalltalk.addMethod(
  39. smalltalk.method({
  40. selector: "key",
  41. category: 'accessing',
  42. fn: function (){
  43. var self=this;
  44. return smalltalk.withContext(function($ctx1) {
  45. return "g";
  46. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLBrowserGoToCommand.klass)})},
  47. args: [],
  48. source: "key\x0a\x09^ 'g'",
  49. messageSends: [],
  50. referencedClasses: []
  51. }),
  52. smalltalk.HLBrowserGoToCommand.klass);
  53. smalltalk.addMethod(
  54. smalltalk.method({
  55. selector: "label",
  56. category: 'accessing',
  57. fn: function (){
  58. var self=this;
  59. return smalltalk.withContext(function($ctx1) {
  60. return "Go to";
  61. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLBrowserGoToCommand.klass)})},
  62. args: [],
  63. source: "label\x0a\x09^ 'Go to'",
  64. messageSends: [],
  65. referencedClasses: []
  66. }),
  67. smalltalk.HLBrowserGoToCommand.klass);
  68. smalltalk.addClass('HLGoToClassesCommand', smalltalk.HLBrowserGoToCommand, [], 'Helios-Commands-Browser');
  69. smalltalk.addMethod(
  70. smalltalk.method({
  71. selector: "execute",
  72. category: 'executing',
  73. fn: function (){
  74. var self=this;
  75. return smalltalk.withContext(function($ctx1) {
  76. _st(_st(self)._model())._focusOnClasses();
  77. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToClassesCommand)})},
  78. args: [],
  79. source: "execute\x0a\x09self model focusOnClasses",
  80. messageSends: ["focusOnClasses", "model"],
  81. referencedClasses: []
  82. }),
  83. smalltalk.HLGoToClassesCommand);
  84. smalltalk.addMethod(
  85. smalltalk.method({
  86. selector: "key",
  87. category: 'accessing',
  88. fn: function (){
  89. var self=this;
  90. return smalltalk.withContext(function($ctx1) {
  91. return "c";
  92. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToClassesCommand.klass)})},
  93. args: [],
  94. source: "key\x0a\x09^ 'c'",
  95. messageSends: [],
  96. referencedClasses: []
  97. }),
  98. smalltalk.HLGoToClassesCommand.klass);
  99. smalltalk.addMethod(
  100. smalltalk.method({
  101. selector: "label",
  102. category: 'accessing',
  103. fn: function (){
  104. var self=this;
  105. return smalltalk.withContext(function($ctx1) {
  106. return "Classes";
  107. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToClassesCommand.klass)})},
  108. args: [],
  109. source: "label\x0a\x09^ 'Classes'",
  110. messageSends: [],
  111. referencedClasses: []
  112. }),
  113. smalltalk.HLGoToClassesCommand.klass);
  114. smalltalk.addClass('HLGoToMethodsCommand', smalltalk.HLBrowserGoToCommand, [], 'Helios-Commands-Browser');
  115. smalltalk.addMethod(
  116. smalltalk.method({
  117. selector: "execute",
  118. category: 'executing',
  119. fn: function (){
  120. var self=this;
  121. return smalltalk.withContext(function($ctx1) {
  122. _st(_st(self)._model())._focusOnMethods();
  123. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToMethodsCommand)})},
  124. args: [],
  125. source: "execute\x0a\x09self model focusOnMethods",
  126. messageSends: ["focusOnMethods", "model"],
  127. referencedClasses: []
  128. }),
  129. smalltalk.HLGoToMethodsCommand);
  130. smalltalk.addMethod(
  131. smalltalk.method({
  132. selector: "key",
  133. category: 'accessing',
  134. fn: function (){
  135. var self=this;
  136. return smalltalk.withContext(function($ctx1) {
  137. return "m";
  138. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToMethodsCommand.klass)})},
  139. args: [],
  140. source: "key\x0a\x09^ 'm'",
  141. messageSends: [],
  142. referencedClasses: []
  143. }),
  144. smalltalk.HLGoToMethodsCommand.klass);
  145. smalltalk.addMethod(
  146. smalltalk.method({
  147. selector: "label",
  148. category: 'accessing',
  149. fn: function (){
  150. var self=this;
  151. return smalltalk.withContext(function($ctx1) {
  152. return "Methods";
  153. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToMethodsCommand.klass)})},
  154. args: [],
  155. source: "label\x0a\x09^ 'Methods'",
  156. messageSends: [],
  157. referencedClasses: []
  158. }),
  159. smalltalk.HLGoToMethodsCommand.klass);
  160. smalltalk.addClass('HLGoToPackagesCommand', smalltalk.HLBrowserGoToCommand, [], 'Helios-Commands-Browser');
  161. smalltalk.addMethod(
  162. smalltalk.method({
  163. selector: "execute",
  164. category: 'executing',
  165. fn: function (){
  166. var self=this;
  167. return smalltalk.withContext(function($ctx1) {
  168. _st(_st(self)._model())._focusOnPackages();
  169. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToPackagesCommand)})},
  170. args: [],
  171. source: "execute\x0a\x09self model focusOnPackages",
  172. messageSends: ["focusOnPackages", "model"],
  173. referencedClasses: []
  174. }),
  175. smalltalk.HLGoToPackagesCommand);
  176. smalltalk.addMethod(
  177. smalltalk.method({
  178. selector: "key",
  179. category: 'accessing',
  180. fn: function (){
  181. var self=this;
  182. return smalltalk.withContext(function($ctx1) {
  183. return "p";
  184. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToPackagesCommand.klass)})},
  185. args: [],
  186. source: "key\x0a\x09^ 'p'",
  187. messageSends: [],
  188. referencedClasses: []
  189. }),
  190. smalltalk.HLGoToPackagesCommand.klass);
  191. smalltalk.addMethod(
  192. smalltalk.method({
  193. selector: "label",
  194. category: 'accessing',
  195. fn: function (){
  196. var self=this;
  197. return smalltalk.withContext(function($ctx1) {
  198. return "Packages";
  199. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToPackagesCommand.klass)})},
  200. args: [],
  201. source: "label\x0a\x09^ 'Packages'",
  202. messageSends: [],
  203. referencedClasses: []
  204. }),
  205. smalltalk.HLGoToPackagesCommand.klass);
  206. smalltalk.addClass('HLGoToProtocolsCommand', smalltalk.HLBrowserGoToCommand, [], 'Helios-Commands-Browser');
  207. smalltalk.addMethod(
  208. smalltalk.method({
  209. selector: "execute",
  210. category: 'executing',
  211. fn: function (){
  212. var self=this;
  213. return smalltalk.withContext(function($ctx1) {
  214. _st(_st(self)._model())._focusOnProtocols();
  215. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToProtocolsCommand)})},
  216. args: [],
  217. source: "execute\x0a\x09self model focusOnProtocols",
  218. messageSends: ["focusOnProtocols", "model"],
  219. referencedClasses: []
  220. }),
  221. smalltalk.HLGoToProtocolsCommand);
  222. smalltalk.addMethod(
  223. smalltalk.method({
  224. selector: "key",
  225. category: 'accessing',
  226. fn: function (){
  227. var self=this;
  228. return smalltalk.withContext(function($ctx1) {
  229. return "t";
  230. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToProtocolsCommand.klass)})},
  231. args: [],
  232. source: "key\x0a\x09^ 't'",
  233. messageSends: [],
  234. referencedClasses: []
  235. }),
  236. smalltalk.HLGoToProtocolsCommand.klass);
  237. smalltalk.addMethod(
  238. smalltalk.method({
  239. selector: "label",
  240. category: 'accessing',
  241. fn: function (){
  242. var self=this;
  243. return smalltalk.withContext(function($ctx1) {
  244. return "Protocols";
  245. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToProtocolsCommand.klass)})},
  246. args: [],
  247. source: "label\x0a\x09^ 'Protocols'",
  248. messageSends: [],
  249. referencedClasses: []
  250. }),
  251. smalltalk.HLGoToProtocolsCommand.klass);
  252. smalltalk.addClass('HLGoToSourceCodeCommand', smalltalk.HLBrowserGoToCommand, [], 'Helios-Commands-Browser');
  253. smalltalk.addMethod(
  254. smalltalk.method({
  255. selector: "execute",
  256. category: 'executing',
  257. fn: function (){
  258. var self=this;
  259. return smalltalk.withContext(function($ctx1) {
  260. _st(_st(self)._model())._focusOnSourceCode();
  261. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLGoToSourceCodeCommand)})},
  262. args: [],
  263. source: "execute\x0a\x09self model focusOnSourceCode",
  264. messageSends: ["focusOnSourceCode", "model"],
  265. referencedClasses: []
  266. }),
  267. smalltalk.HLGoToSourceCodeCommand);
  268. smalltalk.addMethod(
  269. smalltalk.method({
  270. selector: "key",
  271. category: 'accessing',
  272. fn: function (){
  273. var self=this;
  274. return smalltalk.withContext(function($ctx1) {
  275. return "s";
  276. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLGoToSourceCodeCommand.klass)})},
  277. args: [],
  278. source: "key\x0a\x09^ 's'",
  279. messageSends: [],
  280. referencedClasses: []
  281. }),
  282. smalltalk.HLGoToSourceCodeCommand.klass);
  283. smalltalk.addMethod(
  284. smalltalk.method({
  285. selector: "label",
  286. category: 'accessing',
  287. fn: function (){
  288. var self=this;
  289. return smalltalk.withContext(function($ctx1) {
  290. return "Source code";
  291. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLGoToSourceCodeCommand.klass)})},
  292. args: [],
  293. source: "label\x0a\x09^ 'Source code'",
  294. messageSends: [],
  295. referencedClasses: []
  296. }),
  297. smalltalk.HLGoToSourceCodeCommand.klass);
  298. smalltalk.addClass('HLToggleCommand', smalltalk.HLBrowserCommand, [], 'Helios-Commands-Browser');
  299. smalltalk.addMethod(
  300. smalltalk.method({
  301. selector: "key",
  302. category: 'accessing',
  303. fn: function (){
  304. var self=this;
  305. return smalltalk.withContext(function($ctx1) {
  306. return "t";
  307. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleCommand.klass)})},
  308. args: [],
  309. source: "key\x0a\x09^ 't'",
  310. messageSends: [],
  311. referencedClasses: []
  312. }),
  313. smalltalk.HLToggleCommand.klass);
  314. smalltalk.addMethod(
  315. smalltalk.method({
  316. selector: "label",
  317. category: 'accessing',
  318. fn: function (){
  319. var self=this;
  320. return smalltalk.withContext(function($ctx1) {
  321. return "Toggle";
  322. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleCommand.klass)})},
  323. args: [],
  324. source: "label\x0a\x09^ 'Toggle'",
  325. messageSends: [],
  326. referencedClasses: []
  327. }),
  328. smalltalk.HLToggleCommand.klass);
  329. smalltalk.addClass('HLToggleClassCommentCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands-Browser');
  330. smalltalk.addMethod(
  331. smalltalk.method({
  332. selector: "execute",
  333. category: 'executing',
  334. fn: function (){
  335. var self=this;
  336. return smalltalk.withContext(function($ctx1) {
  337. _st(_st(self)._model())._showComment_(true);
  338. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleClassCommentCommand)})},
  339. args: [],
  340. source: "execute\x0a\x09self model showComment: true",
  341. messageSends: ["showComment:", "model"],
  342. referencedClasses: []
  343. }),
  344. smalltalk.HLToggleClassCommentCommand);
  345. smalltalk.addMethod(
  346. smalltalk.method({
  347. selector: "key",
  348. category: 'accessing',
  349. fn: function (){
  350. var self=this;
  351. return smalltalk.withContext(function($ctx1) {
  352. return "d";
  353. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleClassCommentCommand.klass)})},
  354. args: [],
  355. source: "key\x0a\x09^ 'd'",
  356. messageSends: [],
  357. referencedClasses: []
  358. }),
  359. smalltalk.HLToggleClassCommentCommand.klass);
  360. smalltalk.addMethod(
  361. smalltalk.method({
  362. selector: "label",
  363. category: 'accessing',
  364. fn: function (){
  365. var self=this;
  366. return smalltalk.withContext(function($ctx1) {
  367. return "Documentation";
  368. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleClassCommentCommand.klass)})},
  369. args: [],
  370. source: "label\x0a\x09^ 'Documentation'",
  371. messageSends: [],
  372. referencedClasses: []
  373. }),
  374. smalltalk.HLToggleClassCommentCommand.klass);
  375. smalltalk.addClass('HLToggleClassSideCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands-Browser');
  376. smalltalk.addMethod(
  377. smalltalk.method({
  378. selector: "execute",
  379. category: 'executing',
  380. fn: function (){
  381. var self=this;
  382. return smalltalk.withContext(function($ctx1) {
  383. _st(_st(self)._model())._showInstance_(false);
  384. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleClassSideCommand)})},
  385. args: [],
  386. source: "execute\x0a\x09self model showInstance: false",
  387. messageSends: ["showInstance:", "model"],
  388. referencedClasses: []
  389. }),
  390. smalltalk.HLToggleClassSideCommand);
  391. smalltalk.addMethod(
  392. smalltalk.method({
  393. selector: "key",
  394. category: 'accessing',
  395. fn: function (){
  396. var self=this;
  397. return smalltalk.withContext(function($ctx1) {
  398. return "c";
  399. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleClassSideCommand.klass)})},
  400. args: [],
  401. source: "key\x0a\x09^ 'c'",
  402. messageSends: [],
  403. referencedClasses: []
  404. }),
  405. smalltalk.HLToggleClassSideCommand.klass);
  406. smalltalk.addMethod(
  407. smalltalk.method({
  408. selector: "label",
  409. category: 'accessing',
  410. fn: function (){
  411. var self=this;
  412. return smalltalk.withContext(function($ctx1) {
  413. return "Class side";
  414. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleClassSideCommand.klass)})},
  415. args: [],
  416. source: "label\x0a\x09^ 'Class side'",
  417. messageSends: [],
  418. referencedClasses: []
  419. }),
  420. smalltalk.HLToggleClassSideCommand.klass);
  421. smalltalk.addClass('HLToggleInstanceSideCommand', smalltalk.HLToggleCommand, [], 'Helios-Commands-Browser');
  422. smalltalk.addMethod(
  423. smalltalk.method({
  424. selector: "execute",
  425. category: 'executing',
  426. fn: function (){
  427. var self=this;
  428. return smalltalk.withContext(function($ctx1) {
  429. _st(_st(self)._model())._showInstance_(true);
  430. return self}, function($ctx1) {$ctx1.fill(self,"execute",{},smalltalk.HLToggleInstanceSideCommand)})},
  431. args: [],
  432. source: "execute\x0a\x09self model showInstance: true",
  433. messageSends: ["showInstance:", "model"],
  434. referencedClasses: []
  435. }),
  436. smalltalk.HLToggleInstanceSideCommand);
  437. smalltalk.addMethod(
  438. smalltalk.method({
  439. selector: "key",
  440. category: 'accessing',
  441. fn: function (){
  442. var self=this;
  443. return smalltalk.withContext(function($ctx1) {
  444. return "i";
  445. }, function($ctx1) {$ctx1.fill(self,"key",{},smalltalk.HLToggleInstanceSideCommand.klass)})},
  446. args: [],
  447. source: "key\x0a\x09^ 'i'",
  448. messageSends: [],
  449. referencedClasses: []
  450. }),
  451. smalltalk.HLToggleInstanceSideCommand.klass);
  452. smalltalk.addMethod(
  453. smalltalk.method({
  454. selector: "label",
  455. category: 'accessing',
  456. fn: function (){
  457. var self=this;
  458. return smalltalk.withContext(function($ctx1) {
  459. return "Instance side";
  460. }, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.HLToggleInstanceSideCommand.klass)})},
  461. args: [],
  462. source: "label\x0a\x09^ 'Instance side'",
  463. messageSends: [],
  464. referencedClasses: []
  465. }),
  466. smalltalk.HLToggleInstanceSideCommand.klass);