plugin.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  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. <reference
  70. definitionId="oneStateSelected">
  71. </reference>
  72. </visibleWhen>
  73. </command>
  74. <command
  75. commandId="com.yakindu.sct.refactoring.foldOutActions"
  76. label="Fold Outgoing Actions"
  77. style="push">
  78. <visibleWhen
  79. checkEnabled="false">
  80. <reference
  81. definitionId="oneStateSelected">
  82. </reference>
  83. </visibleWhen>
  84. </command>
  85. <command
  86. commandId="com.yakindu.sct.refactoring.groupStates"
  87. label="Group States Into Composite"
  88. style="push">
  89. <visibleWhen
  90. checkEnabled="false">
  91. <reference
  92. definitionId="multipleStatesSelected">
  93. </reference>
  94. </visibleWhen>
  95. </command>
  96. <command
  97. commandId="com.yakindu.sct.refactoring.unfoldEntryActions"
  98. label="Unfold Entry Actions"
  99. style="push">
  100. <visibleWhen
  101. checkEnabled="false">
  102. <reference
  103. definitionId="oneStateSelected">
  104. </reference>
  105. </visibleWhen>
  106. </command>
  107. <command
  108. commandId="com.yakindu.sct.refactoring.unfoldExitActions"
  109. label="Unfold Exit Actions"
  110. style="push">
  111. <visibleWhen
  112. checkEnabled="false">
  113. <reference
  114. definitionId="oneStateSelected">
  115. </reference>
  116. </visibleWhen>
  117. </command>
  118. <command
  119. commandId="com.yakindu.sct.refactoring.extractSubDiagram"
  120. label="Extract Subdiagram"
  121. style="push">
  122. style="push">
  123. <visibleWhen
  124. checkEnabled="false">
  125. <reference
  126. definitionId="oneStateSelected">
  127. </reference>
  128. </visibleWhen>
  129. </command>
  130. <command
  131. commandId="com.yakindu.sct.refactoring.inlineSubDiagram"
  132. label="Inline Subdiagram"
  133. style="push">
  134. <visibleWhen
  135. checkEnabled="false">
  136. <reference
  137. definitionId="oneStateSelected">
  138. </reference>
  139. </visibleWhen>
  140. </command>
  141. </menu>
  142. </menuContribution>
  143. <menuContribution
  144. allPopups="false"
  145. locationURI="popup:de.itemis.xtext.utils.jface.viewers.StyledTextXtextAdapterContextMenu">
  146. <menu
  147. id="org.yakindu.refactoring"
  148. label="Refactoring">
  149. <command
  150. commandId="com.yakindu.sct.refactoring.renameElement"
  151. label="Rename..."
  152. style="push">
  153. </command>
  154. </menu>
  155. </menuContribution>
  156. </extension>
  157. <extension
  158. point="org.eclipse.core.expressions.definitions">
  159. <definition
  160. id="oneStateSelected">
  161. <with
  162. variable="selection">
  163. <and>
  164. <count
  165. value="1">
  166. </count>
  167. <iterate
  168. ifEmpty="false"
  169. operator="and">
  170. <instanceof
  171. value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
  172. </instanceof>
  173. </iterate>
  174. </and>
  175. </with>
  176. </definition>
  177. <definition
  178. id="multipleStatesSelected">
  179. <with
  180. variable="selection">
  181. <iterate
  182. ifEmpty="false"
  183. operator="and">
  184. <instanceof
  185. value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
  186. </instanceof>
  187. </iterate>
  188. </with>
  189. </definition>
  190. </extension>
  191. <extension
  192. point="org.eclipse.ui.startup">
  193. <startup
  194. class="org.yakindu.sct.refactoring.Activator">
  195. </startup>
  196. </extension>
  197. </plugin>