plugin.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. </visibleWhen>
  126. </command>
  127. <command
  128. commandId="com.yakindu.sct.refactoring.inlineSubDiagram"
  129. label="Inline Subdiagram"
  130. style="push">
  131. <visibleWhen
  132. checkEnabled="false">
  133. </visibleWhen>
  134. </command>
  135. </menu>
  136. </menuContribution>
  137. <menuContribution
  138. allPopups="false"
  139. locationURI="popup:de.itemis.xtext.utils.jface.viewers.StyledTextXtextAdapterContextMenu">
  140. <menu
  141. id="org.yakindu.refactoring"
  142. label="Refactoring">
  143. <command
  144. commandId="com.yakindu.sct.refactoring.renameElement"
  145. label="Rename..."
  146. style="push">
  147. </command>
  148. </menu>
  149. </menuContribution>
  150. </extension>
  151. <extension
  152. point="org.eclipse.core.expressions.definitions">
  153. <definition
  154. id="oneStateSelected">
  155. <with
  156. variable="selection">
  157. <and>
  158. <count
  159. value="1">
  160. </count>
  161. <iterate
  162. ifEmpty="false"
  163. operator="and">
  164. <instanceof
  165. value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
  166. </instanceof>
  167. </iterate>
  168. </and>
  169. </with>
  170. </definition>
  171. <definition
  172. id="multipleStatesSelected">
  173. <with
  174. variable="selection">
  175. <iterate
  176. ifEmpty="false"
  177. operator="and">
  178. <instanceof
  179. value="org.yakindu.sct.ui.editor.editparts.StateEditPart">
  180. </instanceof>
  181. </iterate>
  182. </with>
  183. </definition>
  184. </extension>
  185. <extension
  186. id="com.yakindu.sct.refactoring.rename.binding"
  187. point="org.eclipse.ui.bindings">
  188. <key
  189. commandId="com.yakindu.sct.refactoring.renameElement"
  190. contextId="org.eclipse.ui.contexts.window"
  191. schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
  192. sequence="Alt+Shift+R">
  193. </key>
  194. </extension>
  195. <extension
  196. point="org.eclipse.ui.startup">
  197. <startup
  198. class="org.yakindu.sct.refactoring.Activator">
  199. </startup>
  200. </extension>
  201. </plugin>