plugin.xml 15 KB

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