plugin.xml 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?eclipse version="3.4"?>
  3. <plugin>
  4. <extension
  5. point="org.eclipse.ui.commands">
  6. <command
  7. defaultHandler="org.yakindu.sct.refactoring.handlers.impl.UnfoldEntryActionsHandler"
  8. description="Unfold Entry Actions"
  9. id="com.yakindu.sct.refactoring.unfoldEntryActions"
  10. name="Unfold Entry Actions">
  11. </command>
  12. <command
  13. defaultHandler="org.yakindu.sct.refactoring.handlers.impl.UnfoldExitActionsHandler"
  14. description="Unfold Exit Actions"
  15. id="com.yakindu.sct.refactoring.unfoldExitActions"
  16. name="Unfold Exit Actions">
  17. </command>
  18. <command
  19. defaultHandler="org.yakindu.sct.refactoring.handlers.impl.GroupStatesIntoCompositeHandler"
  20. description="Group states into composite state"
  21. id="com.yakindu.sct.refactoring.groupStates"
  22. name="Group Into Composite">
  23. </command>
  24. <command
  25. defaultHandler="org.yakindu.sct.refactoring.handlers.impl.FoldIncomingActionsHandler"
  26. description="Fold Incoming Actions"
  27. id="com.yakindu.sct.refactoring.foldInActions"
  28. name="Fold Incoming Actions">
  29. </command>
  30. <command
  31. defaultHandler="org.yakindu.sct.refactoring.handlers.impl.FoldOutgoingActionsHandler"
  32. description="Fold Outgoing Actions"
  33. id="com.yakindu.sct.refactoring.foldOutActions"
  34. name="Fold Outgoing Actions">
  35. </command>
  36. <command
  37. defaultHandler="org.yakindu.sct.refactoring.handlers.impl.RenameElementHandler"
  38. description="Rename Element"
  39. id="com.yakindu.sct.refactoring.renameElement"
  40. name="Rename Element">
  41. </command>
  42. <command
  43. defaultHandler="org.yakindu.sct.refactoring.handlers.impl.ExtractSubdiagramHandler"
  44. description="Extract Subdiagram"
  45. id="com.yakindu.sct.refactoring.extractSubDiagram"
  46. name="Extract Subdiagram">
  47. </command>
  48. <command
  49. defaultHandler="org.yakindu.sct.refactoring.handlers.impl.InlineSubdiagramHandler"
  50. description="Inline Subdiagram"
  51. id="com.yakindu.sct.refactoring.inlineSubDiagram"
  52. name="Inline Subdiagram">
  53. </command>
  54. </extension>
  55. <extension
  56. point="org.eclipse.ui.menus">
  57. <menuContribution
  58. allPopups="false"
  59. locationURI="popup:org.eclipse.gmf.runtime.diagram.ui.DiagramEditorContextMenu">
  60. <menu
  61. id="refactorMenu"
  62. label="Refactor">
  63. <command
  64. commandId="com.yakindu.sct.refactoring.foldInActions"
  65. label="Fold Incoming Actions"
  66. style="push">
  67. <visibleWhen
  68. checkEnabled="false">
  69. <and>
  70. <reference
  71. definitionId="oneStateSelected">
  72. </reference>
  73. <with
  74. variable="activeEditorId">
  75. <equals
  76. value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  77. </equals>
  78. </with>
  79. </and>
  80. </visibleWhen>
  81. </command>
  82. <command
  83. commandId="com.yakindu.sct.refactoring.foldOutActions"
  84. label="Fold Outgoing Actions"
  85. style="push">
  86. <visibleWhen
  87. checkEnabled="false">
  88. <and>
  89. <reference
  90. definitionId="oneStateSelected">
  91. </reference>
  92. <with
  93. variable="activeEditorId">
  94. <equals
  95. value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  96. </equals>
  97. </with>
  98. </and>
  99. </visibleWhen>
  100. </command>
  101. <command
  102. commandId="com.yakindu.sct.refactoring.groupStates"
  103. label="Group States Into Composite"
  104. style="push">
  105. <visibleWhen
  106. checkEnabled="false">
  107. <and>
  108. <reference
  109. definitionId="multipleStatesSelected">
  110. </reference>
  111. <with
  112. variable="activeEditorId">
  113. <equals
  114. value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  115. </equals>
  116. </with>
  117. </and>
  118. </visibleWhen>
  119. </command>
  120. <command
  121. commandId="com.yakindu.sct.refactoring.unfoldEntryActions"
  122. label="Unfold Entry Actions"
  123. style="push">
  124. <visibleWhen
  125. checkEnabled="false">
  126. <and>
  127. <reference
  128. definitionId="oneStateSelected">
  129. </reference>
  130. <with
  131. variable="activeEditorId">
  132. <equals
  133. value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  134. </equals>
  135. </with>
  136. </and>
  137. </visibleWhen>
  138. </command>
  139. <command
  140. commandId="com.yakindu.sct.refactoring.unfoldExitActions"
  141. label="Unfold Exit Actions"
  142. style="push">
  143. <visibleWhen
  144. checkEnabled="false">
  145. <and>
  146. <reference
  147. definitionId="oneStateSelected">
  148. </reference>
  149. <with
  150. variable="activeEditorId">
  151. <equals
  152. value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  153. </equals>
  154. </with>
  155. </and>
  156. </visibleWhen>
  157. </command>
  158. <command
  159. commandId="com.yakindu.sct.refactoring.extractSubDiagram"
  160. label="Extract Subdiagram"
  161. style="push">
  162. style="push">
  163. <visibleWhen
  164. checkEnabled="false">
  165. <and>
  166. <reference
  167. definitionId="oneStateSelected">
  168. </reference>
  169. <with
  170. variable="activeEditorId">
  171. <equals
  172. value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  173. </equals>
  174. </with>
  175. </and>
  176. </visibleWhen>
  177. </command>
  178. <command
  179. commandId="com.yakindu.sct.refactoring.inlineSubDiagram"
  180. label="Inline Subdiagram"
  181. style="push">
  182. <visibleWhen
  183. checkEnabled="false">
  184. <and>
  185. <reference
  186. definitionId="oneStateSelected">
  187. </reference>
  188. <with
  189. variable="activeEditorId">
  190. <equals
  191. value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  192. </equals>
  193. </with>
  194. </and>
  195. </visibleWhen>
  196. </command>
  197. </menu>
  198. </menuContribution>
  199. <menuContribution
  200. allPopups="false"
  201. locationURI="popup:org.yakindu.base.xtext.utils.jface.viewers.StyledTextXtextAdapterContextMenu">
  202. <menu
  203. id="org.yakindu.refactoring"
  204. label="Refactoring">
  205. <command
  206. commandId="com.yakindu.sct.refactoring.renameElement"
  207. label="Rename..."
  208. style="push">
  209. <visibleWhen
  210. checkEnabled="false">
  211. <with
  212. variable="activeEditorId">
  213. <equals
  214. value="org.yakindu.sct.ui.editor.editor.StatechartDiagramEditor">
  215. </equals>
  216. </with>
  217. </visibleWhen>
  218. </command>
  219. </menu>
  220. </menuContribution>
  221. </extension>
  222. <extension
  223. point="org.eclipse.core.expressions.definitions">
  224. <definition
  225. id="oneStateSelected">
  226. <with
  227. variable="selection">
  228. <and>
  229. <count
  230. value="1">
  231. </count>
  232. <iterate
  233. ifEmpty="false"
  234. operator="and">
  235. <instanceof
  236. value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
  237. </instanceof>
  238. </iterate>
  239. </and>
  240. </with>
  241. </definition>
  242. <definition
  243. id="multipleStatesSelected">
  244. <with
  245. variable="selection">
  246. <iterate
  247. ifEmpty="false"
  248. operator="and">
  249. <instanceof
  250. value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
  251. </instanceof>
  252. </iterate>
  253. </with>
  254. </definition>
  255. </extension>
  256. <extension
  257. point="org.eclipse.ui.startup">
  258. <startup
  259. class="org.yakindu.sct.refactoring.Activator">
  260. </startup>
  261. </extension>
  262. </plugin>