CompileMenu.buttons.model 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. {
  2. "csm": {
  3. "nodes": {
  4. "2": {
  5. "typename": {
  6. "type": "string",
  7. "value": "ButtonIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. 451,
  13. 175
  14. ]
  15. },
  16. "orientation": {
  17. "type": "double",
  18. "value": 0
  19. },
  20. "scale": {
  21. "type": "list<double>",
  22. "value": [
  23. 1,
  24. 1
  25. ]
  26. },
  27. "$contents": {
  28. "type": "map<string,*>",
  29. "value": {
  30. "nodes": {
  31. "1": {
  32. "width": {
  33. "type": "double",
  34. "value": "120"
  35. },
  36. "height": {
  37. "type": "double",
  38. "value": "50"
  39. },
  40. "cornerRadius": {
  41. "type": "double",
  42. "value": "25"
  43. },
  44. "style": {
  45. "type": "map<string,string>",
  46. "value": {
  47. "stroke": "#af0000",
  48. "stroke-dasharray": "",
  49. "fill": "#000000",
  50. "fill-opacity": 0.05,
  51. "stroke-width": 2
  52. }
  53. },
  54. "mapper": {
  55. "type": "code",
  56. "value": ""
  57. },
  58. "parser": {
  59. "type": "code",
  60. "value": ""
  61. },
  62. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  63. "position": {
  64. "type": "list<double>",
  65. "value": [
  66. -1,
  67. 0
  68. ]
  69. },
  70. "orientation": {
  71. "type": "double",
  72. "value": 0
  73. },
  74. "scale": {
  75. "type": "list<double>",
  76. "value": [
  77. 1,
  78. 1
  79. ]
  80. }
  81. },
  82. "2": {
  83. "textContent": {
  84. "type": "string",
  85. "value": "compileToCSMM"
  86. },
  87. "style": {
  88. "type": "map<string,string>",
  89. "value": {
  90. "stroke": "#000000",
  91. "stroke-dasharray": "",
  92. "fill": "#ffffff",
  93. "fill-opacity": 0.75,
  94. "font-size": "13px",
  95. "stroke-width": 1
  96. }
  97. },
  98. "mapper": {
  99. "type": "code",
  100. "value": "({\"textContent\":getAttr(\"name\")})"
  101. },
  102. "parser": {
  103. "type": "code",
  104. "value": "({\"name\":getAttr(\"textContent\")})"
  105. },
  106. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  107. "position": {
  108. "type": "list<double>",
  109. "value": [
  110. 11,
  111. 14
  112. ]
  113. },
  114. "orientation": {
  115. "type": "double",
  116. "value": 0
  117. },
  118. "scale": {
  119. "type": "list<double>",
  120. "value": [
  121. 1,
  122. 1
  123. ]
  124. }
  125. },
  126. "3": {
  127. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  128. "position": {
  129. "type": "list<double>",
  130. "value": [
  131. 12.49899850809561,
  132. 13.498998508095553
  133. ]
  134. },
  135. "orientation": {
  136. "type": "double",
  137. "value": 0
  138. },
  139. "scale": {
  140. "type": "list<double>",
  141. "value": [
  142. 1,
  143. 1
  144. ]
  145. },
  146. "link-style": {
  147. "type": "map<string,string>",
  148. "value": {
  149. "stroke": "#00ffff",
  150. "stroke-dasharray": "",
  151. "stroke-opacity": 0.1,
  152. "arrow-start": "none",
  153. "arrow-end": "classic-wide-long"
  154. }
  155. }
  156. }
  157. },
  158. "edges": [
  159. {
  160. "src": "1",
  161. "dest": 3
  162. },
  163. {
  164. "src": 3,
  165. "dest": "2"
  166. }
  167. ]
  168. }
  169. },
  170. "$asuri": {
  171. "type": "string",
  172. "value": "/Formalisms/__Utilities__/Buttons/Buttons/Button/2.instance"
  173. },
  174. "mapper": {
  175. "type": "code",
  176. "value": ""
  177. },
  178. "parser": {
  179. "type": "code",
  180. "value": ""
  181. },
  182. "$type": "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons/ButtonIcon"
  183. },
  184. "3": {
  185. "typename": {
  186. "type": "string",
  187. "value": "ButtonIcon"
  188. },
  189. "position": {
  190. "type": "list<double>",
  191. "value": [
  192. 602,
  193. 201
  194. ]
  195. },
  196. "orientation": {
  197. "type": "double",
  198. "value": 0
  199. },
  200. "scale": {
  201. "type": "list<double>",
  202. "value": [
  203. 1,
  204. 1
  205. ]
  206. },
  207. "$contents": {
  208. "type": "map<string,*>",
  209. "value": {
  210. "nodes": {
  211. "1": {
  212. "width": {
  213. "type": "double",
  214. "value": "120"
  215. },
  216. "height": {
  217. "type": "double",
  218. "value": "50"
  219. },
  220. "cornerRadius": {
  221. "type": "double",
  222. "value": "25"
  223. },
  224. "style": {
  225. "type": "map<string,string>",
  226. "value": {
  227. "stroke": "#af0000",
  228. "stroke-dasharray": "",
  229. "fill": "#000000",
  230. "fill-opacity": 0.05,
  231. "stroke-width": 2
  232. }
  233. },
  234. "mapper": {
  235. "type": "code",
  236. "value": ""
  237. },
  238. "parser": {
  239. "type": "code",
  240. "value": ""
  241. },
  242. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  243. "position": {
  244. "type": "list<double>",
  245. "value": [
  246. -1,
  247. 0
  248. ]
  249. },
  250. "orientation": {
  251. "type": "double",
  252. "value": 0
  253. },
  254. "scale": {
  255. "type": "list<double>",
  256. "value": [
  257. 1,
  258. 1
  259. ]
  260. }
  261. },
  262. "2": {
  263. "textContent": {
  264. "type": "string",
  265. "value": "compileToASMM"
  266. },
  267. "style": {
  268. "type": "map<string,string>",
  269. "value": {
  270. "stroke": "#000000",
  271. "stroke-dasharray": "",
  272. "fill": "#ffffff",
  273. "fill-opacity": 0.75,
  274. "font-size": "13px",
  275. "stroke-width": 1
  276. }
  277. },
  278. "mapper": {
  279. "type": "code",
  280. "value": "({\"textContent\":getAttr(\"name\")})"
  281. },
  282. "parser": {
  283. "type": "code",
  284. "value": "({\"name\":getAttr(\"textContent\")})"
  285. },
  286. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  287. "position": {
  288. "type": "list<double>",
  289. "value": [
  290. 11,
  291. 14
  292. ]
  293. },
  294. "orientation": {
  295. "type": "double",
  296. "value": 0
  297. },
  298. "scale": {
  299. "type": "list<double>",
  300. "value": [
  301. 1,
  302. 1
  303. ]
  304. }
  305. },
  306. "3": {
  307. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  308. "position": {
  309. "type": "list<double>",
  310. "value": [
  311. 12.49899850809561,
  312. 13.498998508095553
  313. ]
  314. },
  315. "orientation": {
  316. "type": "double",
  317. "value": 0
  318. },
  319. "scale": {
  320. "type": "list<double>",
  321. "value": [
  322. 1,
  323. 1
  324. ]
  325. },
  326. "link-style": {
  327. "type": "map<string,string>",
  328. "value": {
  329. "stroke": "#00ffff",
  330. "stroke-dasharray": "",
  331. "stroke-opacity": 0.1,
  332. "arrow-start": "none",
  333. "arrow-end": "classic-wide-long"
  334. }
  335. }
  336. }
  337. },
  338. "edges": [
  339. {
  340. "src": "1",
  341. "dest": 3
  342. },
  343. {
  344. "src": 3,
  345. "dest": "2"
  346. }
  347. ]
  348. }
  349. },
  350. "$asuri": {
  351. "type": "string",
  352. "value": "/Formalisms/__Utilities__/Buttons/Buttons/Button/3.instance"
  353. },
  354. "mapper": {
  355. "type": "code",
  356. "value": ""
  357. },
  358. "parser": {
  359. "type": "code",
  360. "value": ""
  361. },
  362. "$type": "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons/ButtonIcon"
  363. },
  364. "5": {
  365. "typename": {
  366. "type": "string",
  367. "value": "ButtonIcon"
  368. },
  369. "position": {
  370. "type": "list<double>",
  371. "value": [
  372. 750,
  373. 226
  374. ]
  375. },
  376. "orientation": {
  377. "type": "double",
  378. "value": 0
  379. },
  380. "scale": {
  381. "type": "list<double>",
  382. "value": [
  383. 1,
  384. 1
  385. ]
  386. },
  387. "mapper": {
  388. "type": "code",
  389. "value": ""
  390. },
  391. "parser": {
  392. "type": "code",
  393. "value": ""
  394. },
  395. "$contents": {
  396. "type": "map<string,*>",
  397. "value": {
  398. "nodes": {
  399. "1": {
  400. "width": {
  401. "type": "double",
  402. "value": "120"
  403. },
  404. "height": {
  405. "type": "double",
  406. "value": "50"
  407. },
  408. "cornerRadius": {
  409. "type": "double",
  410. "value": "25"
  411. },
  412. "style": {
  413. "type": "map<string,string>",
  414. "value": {
  415. "stroke": "#af0000",
  416. "stroke-dasharray": "",
  417. "fill": "#000000",
  418. "fill-opacity": 0.05,
  419. "stroke-width": 2
  420. }
  421. },
  422. "mapper": {
  423. "type": "code",
  424. "value": ""
  425. },
  426. "parser": {
  427. "type": "code",
  428. "value": ""
  429. },
  430. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  431. "position": {
  432. "type": "list<double>",
  433. "value": [
  434. 0,
  435. 0
  436. ]
  437. },
  438. "orientation": {
  439. "type": "double",
  440. "value": 0
  441. },
  442. "scale": {
  443. "type": "list<double>",
  444. "value": [
  445. 1,
  446. 1
  447. ]
  448. }
  449. },
  450. "2": {
  451. "textContent": {
  452. "type": "string",
  453. "value": "compileToPatternMM"
  454. },
  455. "style": {
  456. "type": "map<string,string>",
  457. "value": {
  458. "stroke": "#000000",
  459. "stroke-dasharray": "",
  460. "fill": "#ffffff",
  461. "fill-opacity": 0.75,
  462. "font-size": "13px",
  463. "stroke-width": 1
  464. }
  465. },
  466. "mapper": {
  467. "type": "code",
  468. "value": "({\"textContent\":getAttr(\"name\")})"
  469. },
  470. "parser": {
  471. "type": "code",
  472. "value": "({\"name\":getAttr(\"textContent\")})"
  473. },
  474. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  475. "position": {
  476. "type": "list<double>",
  477. "value": [
  478. 10,
  479. 13
  480. ]
  481. },
  482. "orientation": {
  483. "type": "double",
  484. "value": 0
  485. },
  486. "scale": {
  487. "type": "list<double>",
  488. "value": [
  489. 1,
  490. 1
  491. ]
  492. }
  493. },
  494. "3": {
  495. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  496. "position": {
  497. "type": "list<double>",
  498. "value": [
  499. 17.74899850809561,
  500. 12.998998508095553
  501. ]
  502. },
  503. "orientation": {
  504. "type": "double",
  505. "value": 0
  506. },
  507. "scale": {
  508. "type": "list<double>",
  509. "value": [
  510. 1,
  511. 1
  512. ]
  513. },
  514. "link-style": {
  515. "type": "map<string,string>",
  516. "value": {
  517. "stroke": "#00ffff",
  518. "stroke-dasharray": "",
  519. "stroke-opacity": 0.1,
  520. "arrow-start": "none",
  521. "arrow-end": "classic-wide-long"
  522. }
  523. }
  524. }
  525. },
  526. "edges": [
  527. {
  528. "src": "1",
  529. "dest": 3
  530. },
  531. {
  532. "src": 3,
  533. "dest": "2"
  534. }
  535. ]
  536. }
  537. },
  538. "$asuri": {
  539. "type": "string",
  540. "value": "/Formalisms/__Utilities__/Buttons/Buttons/Button/5.instance"
  541. },
  542. "$type": "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons/ButtonIcon"
  543. }
  544. },
  545. "edges": [],
  546. "metamodels": [
  547. "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax.defaultIcons",
  548. "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons",
  549. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons",
  550. "/Formalisms/SCCD/SCCD.defaultIcons"
  551. ]
  552. },
  553. "asm": {
  554. "nodes": {
  555. "2": {
  556. "name": {
  557. "type": "string",
  558. "value": "compileToCSMM"
  559. },
  560. "tooltip": {
  561. "type": "string",
  562. "value": "compile current model into an icon definition metamodel"
  563. },
  564. "code": {
  565. "type": "code",
  566. "value": "var \textension = 'Icons.metamodel',\n options = {'extensions':['\\\\..*' + extension],\n\t\t 'multipleChoice':false,\n\t\t 'manualInput':true,\n 'title':'specify target icon definition metamodel\\nextension: ' + extension + '\\nexample: TrafficLight.defaultIcons.metamodel',\n 'startDir':'model'}, \n\tcallback = \tfunction(fnames)\n\t\t\t{\n\t\t\t\tCompileUtils.compileToCSMM(fnames[0]);\n\t\t\t};\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t WindowManagement.openDialog(_FILE_BROWSER,options,callback);"
  567. },
  568. "$type": "/Formalisms/__Utilities__/Buttons/Buttons/Button"
  569. },
  570. "3": {
  571. "name": {
  572. "type": "string",
  573. "value": "compileToASMM"
  574. },
  575. "tooltip": {
  576. "type": "string",
  577. "value": "compile current model into an abstract syntax metamodel"
  578. },
  579. "code": {
  580. "type": "code",
  581. "value": "var \textension = '.metamodel',\n options = {'extensions':['\\\\' + extension],\n\t\t 'multipleChoice':false,\n\t\t 'manualInput':true,\n 'title':'specify target abstract syntax metamodel\\nextension: ' + extension + '\\nexample: TrafficLight.metamodel',\n 'startDir':'model'},\n\tcallback = \tfunction(fnames)\n\t\t\t{\n\t\t\t\tCompileUtils.compileToASMM(fnames[0]);\n\t\t\t};\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t WindowManagement.openDialog(_FILE_BROWSER,options,callback);"
  582. },
  583. "$type": "/Formalisms/__Utilities__/Buttons/Buttons/Button"
  584. },
  585. "5": {
  586. "name": {
  587. "type": "string",
  588. "value": "compileToPatternMM"
  589. },
  590. "tooltip": {
  591. "type": "string",
  592. "value": "compile an abstract syntax metamodel (and its associated icon definition metamodels) into a pattern metamodel (for use within transformation rules)"
  593. },
  594. "code": {
  595. "type": "code",
  596. "value": "var \textension = '.metamodel',\n options = {'extensions':['\\\\' + extension],\n\t\t 'multipleChoice':false,\n\t\t 'manualInput':true,\n 'title':'choose Abstract Syntax metamodel to compile\\nextension: ' + extension +'\\nexample:TrafficLight.metamodel',\n 'startDir':'model'},\n\tcallback = \tfunction(fnames)\n\t\t\t{\n\t\t\t\tCompileUtils.compileToPatternMM(fnames[0]);\n\t\t\t};\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t WindowManagement.openDialog(_FILE_BROWSER,options,callback);"
  597. },
  598. "$type": "/Formalisms/__Utilities__/Buttons/Buttons/Button"
  599. }
  600. },
  601. "edges": [],
  602. "metamodels": [
  603. "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax",
  604. "/Formalisms/__Utilities__/Buttons/Buttons",
  605. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram",
  606. "/Formalisms/SCCD/SCCD"
  607. ]
  608. }
  609. }