plugin.xml 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?eclipse version="3.4"?>
  3. <plugin>
  4. <!-- Extension Points -->
  5. <extension-point id="expressions" name="org.yakindu.sct.ui.editor.expressions" schema="schema/expressions.exsd"/>
  6. <!-- Editor -->
  7. <extension
  8. point="org.eclipse.ui.editors">
  9. <editor
  10. class="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor"
  11. contributorClass="org.yakindu.sct.ui.editor.editor.StatechartDiagramActionbarContributor"
  12. default="true"
  13. extensions="sct"
  14. icon="icons/obj16/logo-16.png"
  15. id="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor"
  16. matchingStrategy="org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.DiagramDocumentEditorMatchingStrategy"
  17. name="YAKINDU Statechart Editor">
  18. </editor>
  19. </extension>
  20. <!-- Element Types -->
  21. <extension
  22. point="org.eclipse.gmf.runtime.emf.type.core.elementTypes">
  23. <metamodel
  24. nsURI="http://www.yakindu.org/sct/sgraph/2.0.0">
  25. <metamodelType
  26. eclass="Statechart"
  27. icon="icons/obj16/logo-16.png"
  28. id="org.yakindu.sct.ui.editor.Statechart"
  29. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  30. name="Statechart">
  31. <param
  32. name="semanticHint"
  33. value="Statechart">
  34. </param>
  35. </metamodelType>
  36. <metamodelType
  37. eclass="Region"
  38. edithelper="org.yakindu.sct.ui.editor.edithelper.RegionEditHelper"
  39. icon="icons/obj16/Region-16.png"
  40. id="org.yakindu.sct.ui.editor.Region"
  41. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  42. name="Region">
  43. <param
  44. name="semanticHint"
  45. value="Region">
  46. </param>
  47. </metamodelType>
  48. <metamodelType
  49. eclass="State"
  50. edithelper="org.yakindu.sct.ui.editor.edithelper.StateEditHelper"
  51. icon="icons/obj16/State-16.png"
  52. id="org.yakindu.sct.ui.editor.State"
  53. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  54. name="State">
  55. <param
  56. name="semanticHint"
  57. value="State">
  58. </param>
  59. </metamodelType>
  60. <metamodelType
  61. eclass="State"
  62. edithelper="org.yakindu.sct.ui.editor.edithelper.StateEditHelper"
  63. icon="icons/obj16/Composite-State-16.png"
  64. id="org.yakindu.sct.ui.editor.CompositeState"
  65. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  66. name="CompositeState">
  67. <param
  68. name="semanticHint"
  69. value="State">
  70. </param>
  71. </metamodelType>
  72. <metamodelType
  73. eclass="State"
  74. edithelper="org.yakindu.sct.ui.editor.edithelper.StateEditHelper"
  75. icon="icons/obj16/Orthogonal-State-16.png"
  76. id="org.yakindu.sct.ui.editor.OrthogonalState"
  77. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  78. name="OrthogonalState">
  79. <param
  80. name="semanticHint"
  81. value="State">
  82. </param>
  83. </metamodelType>
  84. <metamodelType
  85. eclass="State"
  86. edithelper="org.yakindu.sct.ui.editor.edithelper.StateEditHelper"
  87. icon="icons/obj16/Submachine-State-16.png"
  88. id="org.yakindu.sct.ui.editor.SubmachineState"
  89. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  90. name="SubmachineState">
  91. <param
  92. name="semanticHint"
  93. value="SubmachineState">
  94. </param>
  95. </metamodelType>
  96. <metamodelType
  97. eclass="Transition"
  98. edithelper="org.yakindu.sct.ui.editor.edithelper.TransitionEditHelper"
  99. icon="icons/obj16/transition-16.png"
  100. id="org.yakindu.sct.ui.editor.Transition"
  101. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  102. name="Transition">
  103. <param
  104. name="semanticHint"
  105. value="Transition">
  106. </param>
  107. </metamodelType>
  108. <metamodelType
  109. eclass="Choice"
  110. edithelper="org.yakindu.sct.ui.editor.edithelper.VertexEditHelper"
  111. icon="icons/obj16/Choice-16.png"
  112. id="org.yakindu.sct.ui.editor.Choice"
  113. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  114. name="Choice">
  115. <param
  116. name="semanticHint"
  117. value="Choice">
  118. </param>
  119. </metamodelType>
  120. <metamodelType
  121. eclass="Entry"
  122. edithelper="org.yakindu.sct.ui.editor.edithelper.EntryEditHelper"
  123. icon="icons/obj16/Initial-State-16.png"
  124. id="org.yakindu.sct.ui.editor.Entry"
  125. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  126. name="Entry">
  127. <param
  128. name="semanticHint"
  129. value="Entry">
  130. </param>
  131. </metamodelType>
  132. <metamodelType
  133. eclass="Entry"
  134. edithelper="org.yakindu.sct.ui.editor.edithelper.EntryEditHelper"
  135. icon="icons/obj16/Shallow-History-16.png"
  136. id="org.yakindu.sct.ui.editor.ShallowHistory"
  137. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  138. name="ShallowHistory">
  139. <param
  140. name="semanticHint"
  141. value="ShallowHistory">
  142. </param>
  143. </metamodelType>
  144. <metamodelType
  145. eclass="Entry"
  146. edithelper="org.yakindu.sct.ui.editor.edithelper.EntryEditHelper"
  147. icon="icons/obj16/Deep-History-16.png"
  148. id="org.yakindu.sct.ui.editor.DeepHistory"
  149. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  150. name="DeepHistory">
  151. <param
  152. name="semanticHint"
  153. value="DeepHistory">
  154. </param>
  155. </metamodelType>
  156. <metamodelType
  157. eclass="FinalState"
  158. edithelper="org.yakindu.sct.ui.editor.edithelper.VertexEditHelper"
  159. icon="icons/obj16/Final-State-16.png"
  160. id="org.yakindu.sct.ui.editor.FinalState"
  161. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  162. name="FinalState">
  163. <param
  164. name="semanticHint"
  165. value="FinalState">
  166. </param>
  167. </metamodelType>
  168. <metamodelType
  169. eclass="Exit"
  170. edithelper="org.yakindu.sct.ui.editor.edithelper.VertexEditHelper"
  171. icon="icons/obj16/Exit-Point-16.png"
  172. id="org.yakindu.sct.ui.editor.Exit"
  173. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  174. name="Exit">
  175. <param
  176. name="semanticHint"
  177. value="Exit">
  178. </param>
  179. </metamodelType>
  180. <metamodelType
  181. eclass="Synchronization"
  182. edithelper="org.yakindu.sct.ui.editor.edithelper.VertexEditHelper"
  183. icon="icons/obj16/Synchronization-16.png"
  184. id="org.yakindu.sct.ui.editor.Synchronization"
  185. kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"
  186. name="Synchronization">
  187. <param
  188. name="semanticHint"
  189. value="Synchronization">
  190. </param>
  191. </metamodelType>
  192. <adviceBinding
  193. class="org.yakindu.sct.ui.editor.edithelper.StatechartEditHelperAdvice"
  194. id="org.yakindu.sct.ui.editor.StatechartAdviceBinding"
  195. inheritance="none"
  196. typeId="org.yakindu.sct.ui.editor.Statechart">
  197. </adviceBinding>
  198. </metamodel>
  199. </extension>
  200. <!-- Contribution Item Provider -->
  201. <extension point="org.eclipse.gmf.runtime.common.ui.services.action.contributionItemProviders">
  202. <contributionItemProvider
  203. class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContributionItemProvider"
  204. checkPluginLoaded="false">
  205. <Priority name="Low"/>
  206. <popupContribution class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider">
  207. <popupStructuredContributionCriteria objectClass="org.yakindu.sct.ui.editor.editparts.StatechartTextEditPart"/>
  208. <popupStructuredContributionCriteria objectClass="org.yakindu.sct.ui.editor.editparts.StatechartTextExpressionEditPart"/>
  209. <popupPredefinedItem id="editGroup" remove="true"/>
  210. </popupContribution>
  211. <popupContribution class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramContextMenuProvider">
  212. <popupStructuredContributionCriteria objectClass="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart"/>
  213. <popupPredefinedItem id="deleteFromDiagramAction" remove="true"/>
  214. </popupContribution>
  215. </contributionItemProvider>
  216. </extension>
  217. <!-- View Provider -->
  218. <extension
  219. point="org.eclipse.gmf.runtime.diagram.core.viewProviders">
  220. <viewProvider
  221. class="org.yakindu.sct.ui.editor.providers.StatechartDiagramViewProvider">
  222. <Priority
  223. name="Highest">
  224. </Priority>
  225. </viewProvider>
  226. </extension>
  227. <!-- EditPart Provider -->
  228. <extension
  229. point="org.eclipse.gmf.runtime.diagram.ui.editpartProviders">
  230. <editpartProvider
  231. class="org.yakindu.sct.ui.editor.providers.StatechartDiagramEditPartProvider">
  232. <Priority
  233. name="Lowest">
  234. </Priority>
  235. </editpartProvider>
  236. </extension>
  237. <extension
  238. point="org.eclipse.ui.newWizards">
  239. <category id="YAKINDU" name="Yakindu"/>
  240. <wizard
  241. category="YAKINDU"
  242. class="org.yakindu.sct.ui.editor.wizards.CreationWizard"
  243. icon="icons/obj16/logo-16.png"
  244. id="org.yakindu.sct.ui.editor.StatechartDiagramWizard"
  245. name="YAKINDU Statechart Model"
  246. project="false">
  247. </wizard>
  248. </extension>
  249. <!-- Palette Provider -->
  250. <extension
  251. point="org.eclipse.gmf.runtime.diagram.ui.paletteProviders">
  252. <paletteProvider
  253. class="org.yakindu.sct.ui.editor.providers.StatechartPaletteProvider">
  254. <contribution
  255. factoryClass="org.yakindu.sct.ui.editor.editor.StatechartDiagramPaletteFactory">
  256. <entry
  257. id="tools"
  258. kind="drawer"
  259. label="Tools"
  260. path="/">
  261. <expand
  262. force="true">
  263. </expand>
  264. </entry>
  265. <entry
  266. description="Creates a transition"
  267. id="org.yakindu.sct.ui.editor.Transition"
  268. kind="tool"
  269. label="Transition"
  270. large_icon="icons/obj32/transition-32.png"
  271. path="/tools/"
  272. small_icon="icons/obj16/transition-16.png">
  273. </entry>
  274. <entry
  275. description="Creates a state"
  276. id="org.yakindu.sct.ui.editor.State"
  277. kind="tool"
  278. label="State"
  279. large_icon="icons/obj32/State-32.png"
  280. path="/tools/"
  281. small_icon="icons/obj16/State-16.png">
  282. <expand
  283. force="true">
  284. <content>
  285. </content>
  286. </expand>
  287. </entry>
  288. <entry
  289. kind="stack" id="stack" path="/tools/" >
  290. </entry>
  291. <entry
  292. description="Creates a composite state"
  293. id="org.yakindu.sct.ui.editor.CompositeState"
  294. kind="tool"
  295. label="Composite State"
  296. large_icon="icons/obj32/Composite-State-32.png"
  297. path="/tools/stack/"
  298. small_icon="icons/obj16/Composite-State-16.png">
  299. <expand
  300. force="true">
  301. <content>
  302. </content>
  303. </expand>
  304. </entry>
  305. <entry
  306. description="Creates a orthogonal state"
  307. id="org.yakindu.sct.ui.editor.OrthogonalState"
  308. kind="tool"
  309. label="Orthogonal State"
  310. large_icon="icons/obj32/Orthogonal-State-32.png"
  311. path="/tools/stack/"
  312. small_icon="icons/obj16/Orthogonal-State-16.png">
  313. <expand
  314. force="true">
  315. <content>
  316. </content>
  317. </expand>
  318. </entry>
  319. <!-- <entry
  320. description="Creates a sub submachine state"
  321. id="org.yakindu.sct.ui.editor.SubmachineState"
  322. kind="tool"
  323. label="Submachine State"
  324. large_icon="icons/obj32/Submachine-State-32.png"
  325. path="/tools/stack/"
  326. small_icon="icons/obj16/Submachine-State-16.png">
  327. <expand
  328. force="true">
  329. <content>
  330. </content>
  331. </expand>
  332. </entry>
  333. -->
  334. <entry
  335. description="Creates a region"
  336. id="org.yakindu.sct.ui.editor.Region"
  337. kind="tool"
  338. label="Region"
  339. large_icon="icons/obj32/Region-32.png"
  340. path="/tools/"
  341. small_icon="icons/obj16/Region-16.png">
  342. </entry>
  343. <entry
  344. description="Creates an initial entry node"
  345. id="org.yakindu.sct.ui.editor.Entry"
  346. kind="tool"
  347. label="Initial entry node"
  348. large_icon="icons/obj32/Initial-State-32.png"
  349. path="/tools/"
  350. small_icon="icons/obj16/Initial-State-16.png">
  351. </entry>
  352. <entry
  353. description="Creates a shallow history"
  354. id="org.yakindu.sct.ui.editor.ShallowHistory"
  355. kind="tool"
  356. label="Shallow History"
  357. large_icon="icons/obj32/Shallow-History-32.png"
  358. path="/tools/"
  359. small_icon="icons/obj16/Shallow-History-16.png">
  360. </entry>
  361. <entry
  362. description="Creates a deep history"
  363. id="org.yakindu.sct.ui.editor.DeepHistory"
  364. kind="tool"
  365. label="Deep History"
  366. large_icon="icons/obj32/Deep-History-32.png"
  367. path="/tools/"
  368. small_icon="icons/obj16/Deep-History-16.png">
  369. </entry>
  370. <entry
  371. description="Creates a final state"
  372. id="org.yakindu.sct.ui.editor.FinalState"
  373. kind="tool"
  374. label="Final State"
  375. large_icon="icons/obj32/Final-State-32.png"
  376. path="/tools/"
  377. small_icon="icons/obj16/Final-State-16.png">
  378. </entry>
  379. <entry
  380. description="Creates an exit node"
  381. id="org.yakindu.sct.ui.editor.Exit"
  382. kind="tool"
  383. label="Exit Node"
  384. large_icon="icons/obj32/Exit-Point-32.png"
  385. path="/tools/"
  386. small_icon="icons/obj16/Exit-Point-16.png">
  387. </entry>
  388. <entry
  389. description="Creates a choice"
  390. id="org.yakindu.sct.ui.editor.Choice"
  391. kind="tool"
  392. label="Choice"
  393. large_icon="icons/obj32/Choice-32.png"
  394. path="/tools/"
  395. small_icon="icons/obj16/Choice-16.png">
  396. </entry>
  397. <entry
  398. description="Creates a synchronization"
  399. id="org.yakindu.sct.ui.editor.Synchronization"
  400. kind="tool"
  401. label="Synchronization"
  402. large_icon="icons/obj32/Synchronization-32.png"
  403. path="/tools/"
  404. small_icon="icons/obj16/Synchronization-16.png">
  405. </entry>
  406. </contribution>
  407. <Priority
  408. name="Lowest">
  409. </Priority>
  410. <editor
  411. class="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  412. </editor>
  413. </paletteProvider>
  414. </extension>
  415. <!-- Property Tabs -->
  416. <extension point="org.eclipse.ui.views.properties.tabbed.propertyContributor" id="prop-contrib">
  417. <propertyContributor
  418. contributorId="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor"
  419. labelProvider="org.yakindu.sct.ui.editor.propertysheets.SheetLabelProvider">
  420. <propertyCategory category="domain"/>
  421. <propertyCategory category="visual"/>
  422. <propertyCategory category="extra"/>
  423. </propertyContributor>
  424. </extension>
  425. <extension point="org.eclipse.ui.views.properties.tabbed.propertyTabs" id="proptabs">
  426. <propertyTabs contributorId="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  427. <propertyTab
  428. category="domain"
  429. id="property.tab.domain"
  430. label="Model"/>
  431. <propertyTab
  432. category="visual"
  433. id="property.tab.AppearancePropertySection"
  434. label="Appearance"/>
  435. <propertyTab
  436. category="visual"
  437. id="property.tab.DiagramPropertySection"
  438. label="Diagram"/>
  439. </propertyTabs>
  440. </extension>
  441. <extension point="org.eclipse.ui.views.properties.tabbed.propertySections" id="propsections">
  442. <propertySections contributorId="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  443. <!-- State model section -->
  444. <propertySection
  445. id="property.section.domain.state"
  446. tab="property.tab.domain"
  447. class="org.yakindu.sct.ui.editor.propertysheets.StatePropertySection">
  448. <input type="org.yakindu.sct.ui.editor.editparts.StateEditPart"/>
  449. <input type="org.yakindu.sct.ui.editor.editparts.StateNameEditPart"/>
  450. <input type="org.yakindu.sct.ui.editor.editparts.StateTextCompartmentEditPart"/>
  451. <input type="org.yakindu.sct.ui.editor.editparts.StateTextCompartmentExpressionEditPart"/>
  452. </propertySection>
  453. <!-- Statechart model section -->
  454. <propertySection
  455. id="property.section.domain.statechart"
  456. tab="property.tab.domain"
  457. class="org.yakindu.sct.ui.editor.propertysheets.StatechartPropertySection">
  458. <input type="org.yakindu.sct.ui.editor.editparts.StatechartNameEditPart"/>
  459. <input type="org.yakindu.sct.ui.editor.editparts.StatechartTextEditPart"/>
  460. <input type="org.yakindu.sct.ui.editor.editparts.StatechartTextExpressionEditPart"/>
  461. </propertySection>
  462. <!-- Transition model section -->
  463. <propertySection
  464. id="property.section.domain.transition"
  465. tab="property.tab.domain"
  466. class="org.yakindu.sct.ui.editor.propertysheets.TransitionPropertySection">
  467. <input type="org.yakindu.sct.ui.editor.editparts.TransitionEditPart"/>
  468. <input type="org.yakindu.sct.ui.editor.editparts.TransitionExpressionEditPart"/>
  469. </propertySection>
  470. <!-- Entry model section -->
  471. <propertySection
  472. id="property.section.domain.entry"
  473. tab="property.tab.domain"
  474. class="org.yakindu.sct.ui.editor.propertysheets.EntryPropertySection">
  475. <input type="org.yakindu.sct.ui.editor.editparts.EntryEditPart"/>
  476. </propertySection>
  477. <!-- Exit model section -->
  478. <propertySection
  479. id="property.section.domain.exit"
  480. tab="property.tab.domain"
  481. class="org.yakindu.sct.ui.editor.propertysheets.ExitPropertySection">
  482. <input type="org.yakindu.sct.ui.editor.editparts.ExitEditPart"/>
  483. </propertySection>
  484. <!-- Region model section -->
  485. <propertySection
  486. id="property.section.domain.region"
  487. tab="property.tab.domain"
  488. class="org.yakindu.sct.ui.editor.propertysheets.RegionPropertySection">
  489. <input type="org.yakindu.sct.ui.editor.editparts.RegionEditPart"/>
  490. </propertySection>
  491. <!-- Choice model section -->
  492. <propertySection
  493. id="property.section.domain.choice"
  494. tab="property.tab.domain"
  495. class="org.yakindu.sct.ui.editor.propertysheets.ChoicePropertySection">
  496. <input type="org.yakindu.sct.ui.editor.editparts.ChoiceEditPart"/>
  497. </propertySection>
  498. <propertySection id="property.section.ConnectorAppearancePropertySection"
  499. filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ConnectionEditPartPropertySectionFilter"
  500. class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.ConnectionAppearancePropertySection"
  501. tab="property.tab.AppearancePropertySection">
  502. </propertySection>
  503. <propertySection id="property.section.ShapeColorAndFontPropertySection"
  504. filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.ShapeEditPartPropertySectionFilter"
  505. class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.ShapeColorsAndFontsPropertySection"
  506. tab="property.tab.AppearancePropertySection">
  507. </propertySection>
  508. <propertySection id="property.section.DiagramColorsAndFontsPropertySection"
  509. filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.DiagramEditPartPropertySectionFilter"
  510. class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.appearance.DiagramColorsAndFontsPropertySection"
  511. tab="property.tab.AppearancePropertySection">
  512. </propertySection>
  513. <propertySection id="property.section.RulerGridPropertySection"
  514. filter="org.eclipse.gmf.runtime.diagram.ui.properties.filters.DiagramEditPartPropertySectionFilter"
  515. class="org.eclipse.gmf.runtime.diagram.ui.properties.sections.grid.RulerGridPropertySection"
  516. tab="property.tab.DiagramPropertySection">
  517. </propertySection>
  518. </propertySections>
  519. </extension>
  520. <!-- Modeling Assistant -->
  521. <extension
  522. point="org.eclipse.gmf.runtime.emf.ui.modelingAssistantProviders">
  523. <modelingAssistantProvider
  524. class="org.yakindu.sct.ui.editor.assistent.StatechartModelingAssistantProvider">
  525. <Priority
  526. name="Lowest">
  527. </Priority>
  528. <object
  529. class="org.yakindu.sct.ui.editor.editparts.RegionEditPart"
  530. id="Region">
  531. </object>
  532. <object
  533. class="org.yakindu.sct.ui.editor.editparts.StateEditPart"
  534. id="State">
  535. </object>
  536. <object
  537. class="org.yakindu.sct.ui.editor.editparts.RegionCompartmentEditPart"
  538. id="Region_Compartment">
  539. </object>
  540. <object
  541. class="org.yakindu.sct.ui.editor.editparts.StateCompartmentEditPart"
  542. id="State_Compartment">
  543. </object>
  544. </modelingAssistantProvider>
  545. </extension>
  546. <extension
  547. point="org.eclipse.ui.preferencePages">
  548. <page
  549. category="org.yakindu.sct.ui.preferences.root"
  550. class="org.yakindu.sct.ui.editor.preferences.StatechartAppearancePreferencePage"
  551. id="com.yakindu.sct.ui.appearance"
  552. name="Statechart Coloring">
  553. </page>
  554. </extension>
  555. <extension
  556. point="org.eclipse.core.runtime.preferences">
  557. <initializer
  558. class="org.yakindu.sct.ui.editor.preferences.PreferenceInitializer">
  559. </initializer>
  560. </extension>
  561. <!-- marker && validation -->
  562. <extension id="org.yakindu.sct.ui.editor.diagnostic" name="Statechart Diagram problems" point="org.eclipse.core.resources.markers">
  563. <super type="org.eclipse.core.resources.problemmarker"/>
  564. <super type="org.eclipse.gmf.runtime.common.ui.services.marker"/>
  565. <super type="org.eclipse.xtext.ui.check.fast" />
  566. <persistent value="true"/>
  567. </extension>
  568. <extension id="org.yakindu.sct.ui.editor.xtext.diagnostic" name="Statechart Expression problems" point="org.eclipse.core.resources.markers">
  569. <super type="org.eclipse.core.resources.problemmarker"/>
  570. <super type="org.eclipse.gmf.runtime.common.ui.services.marker"/>
  571. <super type="org.eclipse.xtext.ui.check.fast" />
  572. <persistent value="true"/>
  573. </extension>
  574. <extension point="org.eclipse.gmf.runtime.common.ui.services.markerNavigationProviders" id="markers-navigation">
  575. <MarkerNavigationProvider class="org.yakindu.sct.ui.editor.providers.StatechartMarkerNavigationProvider">
  576. <MarkerType name="org.yakindu.sct.ui.editor.diagnostic"/>
  577. <MarkerType name="org.yakindu.sct.ui.editor.xtext.diagnostic"/>
  578. <Priority name="Medium"/>
  579. </MarkerNavigationProvider>
  580. </extension>
  581. <!-- Decoration Providers -->
  582. <extension id="validationDecoratorProvider" name="ValidationDecorations" point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders">
  583. <decoratorProvider class="org.yakindu.sct.ui.editor.providers.StatechartValidationDecorationProvider">
  584. <Priority name="Lowest"/>
  585. <object class="org.eclipse.gmf.runtime.diagram.ui.editparts.IPrimaryEditPart(org.eclipse.gmf.runtime.diagram.ui)" id="PRIMARY_VIEW"/>
  586. <context decoratorTargets="PRIMARY_VIEW"/>
  587. </decoratorProvider>
  588. </extension>
  589. <extension point="org.eclipse.gmf.runtime.diagram.ui.decoratorProviders">
  590. <decoratorProvider class="org.yakindu.sct.ui.editor.submachine.SubmachineDecorationProvider">
  591. <Priority name="Lowest" />
  592. </decoratorProvider>
  593. </extension>
  594. <!-- Global Action handler -->
  595. <extension point="org.eclipse.gmf.runtime.common.ui.services.action.globalActionHandlerProviders" id="global-print-actions">
  596. <GlobalActionHandlerProvider
  597. class="org.eclipse.gmf.runtime.diagram.ui.printing.render.providers.DiagramWithPrintGlobalActionHandlerProvider"
  598. id="Print handler">
  599. <Priority name="Lowest"/>
  600. <ViewId id="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  601. <ElementType class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
  602. <GlobalActionId actionId="print"/>
  603. </ElementType>
  604. </ViewId>
  605. </GlobalActionHandlerProvider>
  606. <GlobalActionHandlerProvider class="org.eclipse.gmf.runtime.diagram.ui.providers.DiagramGlobalActionHandlerProvider" id="global-actions">
  607. <Priority name="Lowest">
  608. </Priority>
  609. <ViewId id="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  610. <ElementType class="org.yakindu.sct.ui.editor.editparts.ChoiceEditPart">
  611. <GlobalActionId actionId="delete">
  612. </GlobalActionId>
  613. <GlobalActionId actionId="save">
  614. </GlobalActionId>
  615. <GlobalActionId actionId="copy">
  616. </GlobalActionId>
  617. <GlobalActionId actionId="cut">
  618. </GlobalActionId>
  619. </ElementType>
  620. <ElementType
  621. class="org.yakindu.sct.ui.editor.editparts.EntryEditPart">
  622. <GlobalActionId
  623. actionId="delete">
  624. </GlobalActionId>
  625. <GlobalActionId
  626. actionId="save">
  627. </GlobalActionId>
  628. <GlobalActionId
  629. actionId="copy">
  630. </GlobalActionId>
  631. <GlobalActionId
  632. actionId="cut">
  633. </GlobalActionId>
  634. </ElementType>
  635. <ElementType
  636. class="org.yakindu.sct.ui.editor.editparts.ExitEditPart">
  637. <GlobalActionId
  638. actionId="delete">
  639. </GlobalActionId>
  640. <GlobalActionId
  641. actionId="save">
  642. </GlobalActionId>
  643. <GlobalActionId
  644. actionId="copy">
  645. </GlobalActionId>
  646. <GlobalActionId
  647. actionId="cut">
  648. </GlobalActionId>
  649. </ElementType>
  650. <ElementType
  651. class="org.yakindu.sct.ui.editor.editparts.FinalStateEditPart">
  652. <GlobalActionId
  653. actionId="delete">
  654. </GlobalActionId>
  655. <GlobalActionId
  656. actionId="save">
  657. </GlobalActionId>
  658. <GlobalActionId
  659. actionId="copy">
  660. </GlobalActionId>
  661. <GlobalActionId
  662. actionId="cut">
  663. </GlobalActionId>
  664. </ElementType>
  665. <ElementType
  666. class="org.yakindu.sct.ui.editor.editparts.TransitionEditPart">
  667. <GlobalActionId
  668. actionId="delete">
  669. </GlobalActionId>
  670. <GlobalActionId
  671. actionId="save">
  672. </GlobalActionId>
  673. <GlobalActionId
  674. actionId="copy">
  675. </GlobalActionId>
  676. <GlobalActionId
  677. actionId="cut">
  678. </GlobalActionId>
  679. </ElementType>
  680. <ElementType
  681. class="org.yakindu.sct.ui.editor.editparts.RegionEditPart">
  682. <GlobalActionId
  683. actionId="delete">
  684. </GlobalActionId>
  685. <GlobalActionId
  686. actionId="save">
  687. </GlobalActionId>
  688. <GlobalActionId
  689. actionId="copy">
  690. </GlobalActionId>
  691. <GlobalActionId
  692. actionId="paste">
  693. </GlobalActionId>
  694. <GlobalActionId
  695. actionId="cut">
  696. </GlobalActionId>
  697. </ElementType>
  698. <ElementType
  699. class="org.yakindu.sct.ui.editor.editparts.StateEditPart">
  700. <GlobalActionId
  701. actionId="delete">
  702. </GlobalActionId>
  703. <GlobalActionId
  704. actionId="save">
  705. </GlobalActionId>
  706. <GlobalActionId
  707. actionId="copy">
  708. </GlobalActionId>
  709. <GlobalActionId
  710. actionId="paste">
  711. </GlobalActionId>
  712. <GlobalActionId
  713. actionId="cut">
  714. </GlobalActionId>
  715. </ElementType>
  716. <ElementType
  717. class="org.yakindu.sct.ui.editor.editparts.SynchronizationEditPart">
  718. <GlobalActionId
  719. actionId="delete">
  720. </GlobalActionId>
  721. <GlobalActionId
  722. actionId="save">
  723. </GlobalActionId>
  724. <GlobalActionId
  725. actionId="copy">
  726. </GlobalActionId>
  727. <GlobalActionId
  728. actionId="cut">
  729. </GlobalActionId>
  730. </ElementType>
  731. <ElementType
  732. class="org.yakindu.sct.ui.editor.editparts.StateTextCompartmentEditPart">
  733. <GlobalActionId
  734. actionId="save">
  735. </GlobalActionId>
  736. <GlobalActionId
  737. actionId="paste">
  738. </GlobalActionId>
  739. </ElementType>
  740. <ElementType
  741. class="org.yakindu.sct.ui.editor.editparts.StatechartDiagramEditPart">
  742. <GlobalActionId
  743. actionId="save">
  744. </GlobalActionId>
  745. <GlobalActionId
  746. actionId="copy">
  747. </GlobalActionId>
  748. <GlobalActionId
  749. actionId="paste">
  750. </GlobalActionId>
  751. </ElementType>
  752. </ViewId>
  753. </GlobalActionHandlerProvider>
  754. <GlobalActionHandlerProvider class="org.eclipse.gmf.runtime.diagram.ui.providers.ide.providers.DiagramIDEGlobalActionHandlerProvider" id="ideActionHandlerProvider">
  755. <Priority name="Lowest">
  756. </Priority>
  757. <ViewId id="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  758. <ElementType class="org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart">
  759. <GlobalActionId actionId="bookmark">
  760. </GlobalActionId>
  761. </ElementType>
  762. </ViewId>
  763. </GlobalActionHandlerProvider>
  764. </extension>
  765. <!-- context menu contribution -->
  766. <extension point="org.eclipse.ui.commands">
  767. <command
  768. defaultHandler="org.yakindu.sct.ui.editor.commands.SetInitialEntryKindCommand"
  769. id="org.yakindu.sct.ui.editor.commands.SetInitialEntryKindCommand"
  770. name="Set Initial Entry Kind">
  771. </command>
  772. <command
  773. defaultHandler="org.yakindu.sct.ui.editor.commands.SetDeepHistoryEntryKindCommand"
  774. id="org.yakindu.sct.ui.editor.commands.SetDeepHistoryEntryKindCommand"
  775. name="Set Deep History Entry Kind">
  776. </command>
  777. <command
  778. defaultHandler="org.yakindu.sct.ui.editor.commands.SetShallowHistoryEntryKindCommand"
  779. id="org.yakindu.sct.ui.editor.commands.SetShallowHistoryEntryKindCommand"
  780. name="Set Shallow History Entry Kind">
  781. </command>
  782. <command
  783. defaultHandler="org.yakindu.sct.ui.editor.commands.ToggleSubRegionLayoutCommand"
  784. id="org.yakindu.sct.ui.editor.commands.ToggleSubRegionLayoutCommand"
  785. name="Toggle Subregion Layout">
  786. </command>
  787. <command
  788. defaultHandler="org.yakindu.sct.ui.editor.commands.ToggleShowDocumentationCommand"
  789. id="org.yakindu.sct.ui.editor.commands.ToggleShowDocumentation"
  790. name="Toggle Documentation">
  791. </command>
  792. <command
  793. defaultHandler="org.yakindu.sct.ui.editor.commands.CreateSubdiagramCommand"
  794. id="org.yakindu.sct.ui.editor.commands.CreateSubdiagram"
  795. name="Create Subdiagram">
  796. </command>
  797. </extension>
  798. <extension
  799. point="org.eclipse.ui.menus">
  800. <menuContribution
  801. allPopups="false"
  802. locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu">
  803. <menu
  804. id="changeEntryKindMenu"
  805. label="Change Entry Kind">
  806. <command
  807. commandId="org.yakindu.sct.ui.editor.commands.SetInitialEntryKindCommand"
  808. label="Initial"
  809. style="push">
  810. <visibleWhen
  811. checkEnabled="false">
  812. <reference
  813. definitionId="oneEntrySelected">
  814. </reference>
  815. </visibleWhen>
  816. </command>
  817. <command
  818. commandId="org.yakindu.sct.ui.editor.commands.SetDeepHistoryEntryKindCommand"
  819. label="Deep History"
  820. style="push">
  821. <visibleWhen
  822. checkEnabled="false">
  823. <reference
  824. definitionId="oneEntrySelected">
  825. </reference>
  826. </visibleWhen>
  827. </command>
  828. <command
  829. commandId="org.yakindu.sct.ui.editor.commands.SetShallowHistoryEntryKindCommand"
  830. label="Shallow History"
  831. style="push">
  832. <visibleWhen
  833. checkEnabled="false">
  834. <reference
  835. definitionId="oneEntrySelected">
  836. </reference>
  837. </visibleWhen>
  838. </command>
  839. </menu>
  840. <command
  841. commandId="org.yakindu.sct.ui.editor.commands.ToggleSubRegionLayoutCommand"
  842. label="Toggle Subregion Alignment"
  843. style="push">
  844. <visibleWhen
  845. checkEnabled="false">
  846. <with
  847. variable="selection">
  848. <iterate
  849. ifEmpty="false"
  850. operator="and">
  851. <instanceof
  852. value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
  853. </instanceof>
  854. </iterate>
  855. </with>
  856. </visibleWhen>
  857. </command>
  858. <command
  859. commandId="org.yakindu.sct.ui.editor.commands.ToggleShowDocumentation"
  860. label="Toggle Documentation"
  861. style="push">
  862. <visibleWhen
  863. checkEnabled="false">
  864. <with
  865. variable="selection">
  866. <iterate
  867. ifEmpty="false"
  868. operator="and">
  869. <or>
  870. <instanceof
  871. value="org.yakindu.sct.ui.editor.editparts.TransitionEditPart">
  872. </instanceof>
  873. <instanceof
  874. value="org.yakindu.sct.ui.editor.editparts.TransitionExpressionEditPart">
  875. </instanceof>
  876. <instanceof
  877. value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
  878. </instanceof>
  879. <instanceof
  880. value="org.yakindu.sct.ui.editor.editparts.StatechartTextEditPart">
  881. </instanceof>
  882. </or>
  883. </iterate>
  884. </with>
  885. </visibleWhen>
  886. </command>
  887. <command
  888. commandId="org.yakindu.sct.ui.editor.commands.CreateSubdiagram"
  889. label="Create Subdiagram"
  890. style="push">
  891. <visibleWhen
  892. checkEnabled="false">
  893. <with
  894. variable="selection">
  895. <iterate
  896. ifEmpty="false"
  897. operator="and">
  898. <or>
  899. <instanceof
  900. value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
  901. </instanceof>
  902. </or>
  903. </iterate>
  904. </with>
  905. </visibleWhen>
  906. </command>
  907. </menuContribution>
  908. </extension>
  909. <extension
  910. point="org.eclipse.core.expressions.definitions">
  911. <definition
  912. id="oneEntrySelected">
  913. <with
  914. variable="selection">
  915. <and>
  916. <count
  917. value="1">
  918. </count>
  919. <iterate
  920. ifEmpty="false"
  921. operator="and">
  922. <instanceof
  923. value="org.yakindu.sct.ui.editor.editparts.EntryEditPart">
  924. </instanceof>
  925. </iterate>
  926. </and>
  927. </with>
  928. </definition>
  929. </extension>
  930. <!-- Patched Clipboard support -->
  931. <extension
  932. point="org.eclipse.gmf.runtime.emf.clipboard.core.clipboardSupport">
  933. <factory
  934. class="org.yakindu.sct.ui.editor.clipboardsupport.ClipboardSupportFactory"
  935. nsURI="http://www.eclipse.org/gmf/runtime/1.0.2/notation"
  936. priority="medium">
  937. </factory>
  938. </extension>
  939. </plugin>