plugin.xml_gen 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?eclipse version="3.0"?>
  3. <plugin>
  4. <extension
  5. point="org.eclipse.ui.editors">
  6. <editor
  7. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
  8. contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
  9. default="true"
  10. extensions="stext"
  11. id="org.yakindu.sct.model.stext.SText"
  12. name="SText Editor">
  13. </editor>
  14. </extension>
  15. <extension
  16. point="org.eclipse.ui.handlers">
  17. <handler
  18. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler"
  19. commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
  20. <activeWhen>
  21. <reference
  22. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  23. </reference>
  24. </activeWhen>
  25. </handler>
  26. <handler
  27. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler"
  28. commandId="org.yakindu.sct.model.stext.SText.validate">
  29. <activeWhen>
  30. <reference
  31. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  32. </reference>
  33. </activeWhen>
  34. </handler>
  35. </extension>
  36. <extension point="org.eclipse.core.expressions.definitions">
  37. <definition id="org.yakindu.sct.model.stext.SText.Editor.opened">
  38. <and>
  39. <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/>
  40. <with variable="activeEditor">
  41. <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
  42. value="org.yakindu.sct.model.stext.SText"
  43. forcePluginActivation="true"/>
  44. </with>
  45. </and>
  46. </definition>
  47. </extension>
  48. <extension
  49. point="org.eclipse.ui.preferencePages">
  50. <page
  51. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
  52. id="org.yakindu.sct.model.stext.SText"
  53. name="SText">
  54. <keywordReference id="org.yakindu.sct.model.stext.ui.keyword_SText"/>
  55. </page>
  56. <page
  57. category="org.yakindu.sct.model.stext.SText"
  58. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage"
  59. id="org.yakindu.sct.model.stext.SText.coloring"
  60. name="Syntax Coloring">
  61. <keywordReference id="org.yakindu.sct.model.stext.ui.keyword_SText"/>
  62. </page>
  63. <page
  64. category="org.yakindu.sct.model.stext.SText"
  65. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage"
  66. id="org.yakindu.sct.model.stext.SText.templates"
  67. name="Templates">
  68. <keywordReference id="org.yakindu.sct.model.stext.ui.keyword_SText"/>
  69. </page>
  70. </extension>
  71. <extension
  72. point="org.eclipse.ui.propertyPages">
  73. <page
  74. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
  75. id="org.yakindu.sct.model.stext.SText"
  76. name="SText">
  77. <keywordReference id="org.yakindu.sct.model.stext.ui.keyword_SText"/>
  78. <enabledWhen>
  79. <adapt type="org.eclipse.core.resources.IProject"/>
  80. </enabledWhen>
  81. <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/>
  82. </page>
  83. </extension>
  84. <extension
  85. point="org.eclipse.ui.keywords">
  86. <keyword
  87. id="org.yakindu.sct.model.stext.ui.keyword_SText"
  88. label="SText"/>
  89. </extension>
  90. <extension
  91. point="org.eclipse.ui.commands">
  92. <command
  93. description="Trigger expensive validation"
  94. id="org.yakindu.sct.model.stext.SText.validate"
  95. name="Validate">
  96. </command>
  97. </extension>
  98. <extension point="org.eclipse.ui.menus">
  99. <menuContribution
  100. locationURI="popup:#TextEditorContext?after=group.edit">
  101. <command
  102. commandId="org.yakindu.sct.model.stext.SText.validate"
  103. style="push"
  104. tooltip="Trigger expensive validation">
  105. <visibleWhen checkEnabled="false">
  106. <reference
  107. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  108. </reference>
  109. </visibleWhen>
  110. </command>
  111. </menuContribution>
  112. </extension>
  113. <extension point="org.eclipse.ui.menus">
  114. <menuContribution locationURI="popup:#TextEditorContext?endof=group.find">
  115. <command commandId="org.eclipse.xtext.ui.editor.FindReferences">
  116. <visibleWhen checkEnabled="false">
  117. <reference definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  118. </reference>
  119. </visibleWhen>
  120. </command>
  121. </menuContribution>
  122. </extension>
  123. <extension point="org.eclipse.ui.handlers">
  124. <handler
  125. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler"
  126. commandId="org.eclipse.xtext.ui.editor.FindReferences">
  127. <activeWhen>
  128. <reference
  129. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  130. </reference>
  131. </activeWhen>
  132. </handler>
  133. </extension>
  134. <!-- adding resource factories -->
  135. <extension
  136. point="org.eclipse.emf.ecore.extension_parser">
  137. <parser
  138. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
  139. type="stext">
  140. </parser>
  141. </extension>
  142. <extension point="org.eclipse.xtext.extension_resourceServiceProvider">
  143. <resourceServiceProvider
  144. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
  145. uriExtension="stext">
  146. </resourceServiceProvider>
  147. </extension>
  148. <!-- marker definitions for org.yakindu.sct.model.stext.SText -->
  149. <extension
  150. id="stext.check.fast"
  151. name="SText Problem"
  152. point="org.eclipse.core.resources.markers">
  153. <super type="org.eclipse.xtext.ui.check.fast"/>
  154. <persistent value="true"/>
  155. </extension>
  156. <extension
  157. id="stext.check.normal"
  158. name="SText Problem"
  159. point="org.eclipse.core.resources.markers">
  160. <super type="org.eclipse.xtext.ui.check.normal"/>
  161. <persistent value="true"/>
  162. </extension>
  163. <extension
  164. id="stext.check.expensive"
  165. name="SText Problem"
  166. point="org.eclipse.core.resources.markers">
  167. <super type="org.eclipse.xtext.ui.check.expensive"/>
  168. <persistent value="true"/>
  169. </extension>
  170. <!-- Quick Outline -->
  171. <extension
  172. point="org.eclipse.ui.handlers">
  173. <handler
  174. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler"
  175. commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline">
  176. <activeWhen>
  177. <reference
  178. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  179. </reference>
  180. </activeWhen>
  181. </handler>
  182. </extension>
  183. <extension
  184. point="org.eclipse.ui.commands">
  185. <command
  186. description="Open the quick outline."
  187. id="org.eclipse.xtext.ui.editor.outline.QuickOutline"
  188. name="Quick Outline">
  189. </command>
  190. </extension>
  191. <extension point="org.eclipse.ui.menus">
  192. <menuContribution
  193. locationURI="popup:#TextEditorContext?after=group.open">
  194. <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"
  195. style="push"
  196. tooltip="Open Quick Outline">
  197. <visibleWhen checkEnabled="false">
  198. <reference definitionId="org.yakindu.sct.model.stext.SText.Editor.opened"/>
  199. </visibleWhen>
  200. </command>
  201. </menuContribution>
  202. </extension>
  203. <!-- quickfix marker resolution generator for org.yakindu.sct.model.stext.SText -->
  204. <extension
  205. point="org.eclipse.ui.ide.markerResolution">
  206. <markerResolutionGenerator
  207. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
  208. markerType="org.yakindu.sct.model.stext.ui.stext.check.fast">
  209. <attribute
  210. name="FIXABLE_KEY"
  211. value="true">
  212. </attribute>
  213. </markerResolutionGenerator>
  214. <markerResolutionGenerator
  215. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
  216. markerType="org.yakindu.sct.model.stext.ui.stext.check.normal">
  217. <attribute
  218. name="FIXABLE_KEY"
  219. value="true">
  220. </attribute>
  221. </markerResolutionGenerator>
  222. <markerResolutionGenerator
  223. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
  224. markerType="org.yakindu.sct.model.stext.ui.stext.check.expensive">
  225. <attribute
  226. name="FIXABLE_KEY"
  227. value="true">
  228. </attribute>
  229. </markerResolutionGenerator>
  230. </extension>
  231. <!-- Rename Refactoring -->
  232. <extension point="org.eclipse.ui.handlers">
  233. <handler
  234. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.IRenameElementHandler"
  235. commandId="org.eclipse.xtext.ui.refactoring.RenameElement">
  236. <activeWhen>
  237. <reference
  238. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  239. </reference>
  240. </activeWhen>
  241. </handler>
  242. </extension>
  243. <extension point="org.eclipse.ui.menus">
  244. <menuContribution
  245. locationURI="popup:#TextEditorContext?after=group.edit">
  246. <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement"
  247. style="push">
  248. <visibleWhen checkEnabled="false">
  249. <reference
  250. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  251. </reference>
  252. </visibleWhen>
  253. </command>
  254. </menuContribution>
  255. </extension>
  256. <extension point="org.eclipse.ui.preferencePages">
  257. <page
  258. category="org.yakindu.sct.model.stext.SText"
  259. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage"
  260. id="org.yakindu.sct.model.stext.SText.refactoring"
  261. name="Refactoring">
  262. <keywordReference id="org.yakindu.sct.model.stext.ui.keyword_SText"/>
  263. </page>
  264. </extension>
  265. </plugin>