plugin.xml_gen 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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. <!-- copy qualified name -->
  36. <handler
  37. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedNameHandler"
  38. commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName">
  39. <activeWhen>
  40. <reference definitionId="org.yakindu.sct.model.stext.SText.Editor.opened" />
  41. </activeWhen>
  42. </handler>
  43. <handler
  44. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedNameHandler"
  45. commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName">
  46. <activeWhen>
  47. <and>
  48. <reference definitionId="org.yakindu.sct.model.stext.SText.XtextEditor.opened" />
  49. <iterate>
  50. <adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" />
  51. </iterate>
  52. </and>
  53. </activeWhen>
  54. </handler>
  55. </extension>
  56. <extension point="org.eclipse.core.expressions.definitions">
  57. <definition id="org.yakindu.sct.model.stext.SText.Editor.opened">
  58. <and>
  59. <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/>
  60. <with variable="activeEditor">
  61. <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
  62. value="org.yakindu.sct.model.stext.SText"
  63. forcePluginActivation="true"/>
  64. </with>
  65. </and>
  66. </definition>
  67. <definition id="org.yakindu.sct.model.stext.SText.XtextEditor.opened">
  68. <and>
  69. <reference definitionId="isXtextEditorActive"/>
  70. <with variable="activeEditor">
  71. <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
  72. value="org.yakindu.sct.model.stext.SText"
  73. forcePluginActivation="true"/>
  74. </with>
  75. </and>
  76. </definition>
  77. </extension>
  78. <extension
  79. point="org.eclipse.ui.preferencePages">
  80. <page
  81. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
  82. id="org.yakindu.sct.model.stext.SText"
  83. name="SText">
  84. <keywordReference id="org.yakindu.sct.model.stext.ui.keyword_SText"/>
  85. </page>
  86. <page
  87. category="org.yakindu.sct.model.stext.SText"
  88. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage"
  89. id="org.yakindu.sct.model.stext.SText.coloring"
  90. name="Syntax Coloring">
  91. <keywordReference id="org.yakindu.sct.model.stext.ui.keyword_SText"/>
  92. </page>
  93. <page
  94. category="org.yakindu.sct.model.stext.SText"
  95. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage"
  96. id="org.yakindu.sct.model.stext.SText.templates"
  97. name="Templates">
  98. <keywordReference id="org.yakindu.sct.model.stext.ui.keyword_SText"/>
  99. </page>
  100. </extension>
  101. <extension
  102. point="org.eclipse.ui.propertyPages">
  103. <page
  104. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
  105. id="org.yakindu.sct.model.stext.SText"
  106. name="SText">
  107. <keywordReference id="org.yakindu.sct.model.stext.ui.keyword_SText"/>
  108. <enabledWhen>
  109. <adapt type="org.eclipse.core.resources.IProject"/>
  110. </enabledWhen>
  111. <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/>
  112. </page>
  113. </extension>
  114. <extension
  115. point="org.eclipse.ui.keywords">
  116. <keyword
  117. id="org.yakindu.sct.model.stext.ui.keyword_SText"
  118. label="SText"/>
  119. </extension>
  120. <extension
  121. point="org.eclipse.ui.commands">
  122. <command
  123. description="Trigger expensive validation"
  124. id="org.yakindu.sct.model.stext.SText.validate"
  125. name="Validate">
  126. </command>
  127. <!-- copy qualified name -->
  128. <command
  129. id="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"
  130. categoryId="org.eclipse.ui.category.edit"
  131. description="Copy the qualified name for the selected element"
  132. name="Copy Qualified Name">
  133. </command>
  134. <command
  135. id="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName"
  136. categoryId="org.eclipse.ui.category.edit"
  137. description="Copy the qualified name for the selected element"
  138. name="Copy Qualified Name">
  139. </command>
  140. </extension>
  141. <extension point="org.eclipse.ui.menus">
  142. <menuContribution
  143. locationURI="popup:#TextEditorContext?after=group.edit">
  144. <command
  145. commandId="org.yakindu.sct.model.stext.SText.validate"
  146. style="push"
  147. tooltip="Trigger expensive validation">
  148. <visibleWhen checkEnabled="false">
  149. <reference
  150. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  151. </reference>
  152. </visibleWhen>
  153. </command>
  154. </menuContribution>
  155. <!-- copy qualified name -->
  156. <menuContribution locationURI="popup:#TextEditorContext?after=copy">
  157. <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"
  158. style="push" tooltip="Copy Qualified Name">
  159. <visibleWhen checkEnabled="false">
  160. <reference definitionId="org.yakindu.sct.model.stext.SText.Editor.opened" />
  161. </visibleWhen>
  162. </command>
  163. </menuContribution>
  164. <menuContribution locationURI="menu:edit?after=copy">
  165. <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"
  166. style="push" tooltip="Copy Qualified Name">
  167. <visibleWhen checkEnabled="false">
  168. <reference definitionId="org.yakindu.sct.model.stext.SText.Editor.opened" />
  169. </visibleWhen>
  170. </command>
  171. </menuContribution>
  172. <menuContribution locationURI="popup:org.eclipse.xtext.ui.outline?after=additions">
  173. <command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName"
  174. style="push" tooltip="Copy Qualified Name">
  175. <visibleWhen checkEnabled="false">
  176. <and>
  177. <reference definitionId="org.yakindu.sct.model.stext.SText.XtextEditor.opened" />
  178. <iterate>
  179. <adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" />
  180. </iterate>
  181. </and>
  182. </visibleWhen>
  183. </command>
  184. </menuContribution>
  185. </extension>
  186. <extension point="org.eclipse.ui.menus">
  187. <menuContribution locationURI="popup:#TextEditorContext?endof=group.find">
  188. <command commandId="org.eclipse.xtext.ui.editor.FindReferences">
  189. <visibleWhen checkEnabled="false">
  190. <reference definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  191. </reference>
  192. </visibleWhen>
  193. </command>
  194. </menuContribution>
  195. </extension>
  196. <extension point="org.eclipse.ui.handlers">
  197. <handler
  198. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler"
  199. commandId="org.eclipse.xtext.ui.editor.FindReferences">
  200. <activeWhen>
  201. <reference
  202. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  203. </reference>
  204. </activeWhen>
  205. </handler>
  206. </extension>
  207. <!-- adding resource factories -->
  208. <extension
  209. point="org.eclipse.emf.ecore.extension_parser">
  210. <parser
  211. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
  212. type="stext">
  213. </parser>
  214. </extension>
  215. <extension point="org.eclipse.xtext.extension_resourceServiceProvider">
  216. <resourceServiceProvider
  217. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
  218. uriExtension="stext">
  219. </resourceServiceProvider>
  220. </extension>
  221. <!-- marker definitions for org.yakindu.sct.model.stext.SText -->
  222. <extension
  223. id="stext.check.fast"
  224. name="SText Problem"
  225. point="org.eclipse.core.resources.markers">
  226. <super type="org.eclipse.xtext.ui.check.fast"/>
  227. <persistent value="true"/>
  228. </extension>
  229. <extension
  230. id="stext.check.normal"
  231. name="SText Problem"
  232. point="org.eclipse.core.resources.markers">
  233. <super type="org.eclipse.xtext.ui.check.normal"/>
  234. <persistent value="true"/>
  235. </extension>
  236. <extension
  237. id="stext.check.expensive"
  238. name="SText Problem"
  239. point="org.eclipse.core.resources.markers">
  240. <super type="org.eclipse.xtext.ui.check.expensive"/>
  241. <persistent value="true"/>
  242. </extension>
  243. <!-- Quick Outline -->
  244. <extension
  245. point="org.eclipse.ui.handlers">
  246. <handler
  247. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler"
  248. commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline">
  249. <activeWhen>
  250. <reference
  251. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  252. </reference>
  253. </activeWhen>
  254. </handler>
  255. </extension>
  256. <extension
  257. point="org.eclipse.ui.commands">
  258. <command
  259. description="Open the quick outline."
  260. id="org.eclipse.xtext.ui.editor.outline.QuickOutline"
  261. name="Quick Outline">
  262. </command>
  263. </extension>
  264. <extension point="org.eclipse.ui.menus">
  265. <menuContribution
  266. locationURI="popup:#TextEditorContext?after=group.open">
  267. <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"
  268. style="push"
  269. tooltip="Open Quick Outline">
  270. <visibleWhen checkEnabled="false">
  271. <reference definitionId="org.yakindu.sct.model.stext.SText.Editor.opened"/>
  272. </visibleWhen>
  273. </command>
  274. </menuContribution>
  275. </extension>
  276. <!-- quickfix marker resolution generator for org.yakindu.sct.model.stext.SText -->
  277. <extension
  278. point="org.eclipse.ui.ide.markerResolution">
  279. <markerResolutionGenerator
  280. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
  281. markerType="org.yakindu.sct.model.stext.ui.stext.check.fast">
  282. <attribute
  283. name="FIXABLE_KEY"
  284. value="true">
  285. </attribute>
  286. </markerResolutionGenerator>
  287. <markerResolutionGenerator
  288. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
  289. markerType="org.yakindu.sct.model.stext.ui.stext.check.normal">
  290. <attribute
  291. name="FIXABLE_KEY"
  292. value="true">
  293. </attribute>
  294. </markerResolutionGenerator>
  295. <markerResolutionGenerator
  296. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
  297. markerType="org.yakindu.sct.model.stext.ui.stext.check.expensive">
  298. <attribute
  299. name="FIXABLE_KEY"
  300. value="true">
  301. </attribute>
  302. </markerResolutionGenerator>
  303. </extension>
  304. <!-- Rename Refactoring -->
  305. <extension point="org.eclipse.ui.handlers">
  306. <handler
  307. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler"
  308. commandId="org.eclipse.xtext.ui.refactoring.RenameElement">
  309. <activeWhen>
  310. <reference
  311. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  312. </reference>
  313. </activeWhen>
  314. </handler>
  315. </extension>
  316. <extension point="org.eclipse.ui.menus">
  317. <menuContribution
  318. locationURI="popup:#TextEditorContext?after=group.edit">
  319. <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement"
  320. style="push">
  321. <visibleWhen checkEnabled="false">
  322. <reference
  323. definitionId="org.yakindu.sct.model.stext.SText.Editor.opened">
  324. </reference>
  325. </visibleWhen>
  326. </command>
  327. </menuContribution>
  328. </extension>
  329. <extension point="org.eclipse.ui.preferencePages">
  330. <page
  331. category="org.yakindu.sct.model.stext.SText"
  332. class="org.yakindu.sct.model.stext.ui.STextExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage"
  333. id="org.yakindu.sct.model.stext.SText.refactoring"
  334. name="Refactoring">
  335. <keywordReference id="org.yakindu.sct.model.stext.ui.keyword_SText"/>
  336. </page>
  337. </extension>
  338. </plugin>