plugin.xml 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?eclipse version="3.4"?>
  3. <plugin>
  4. <extension-point id="modulaEditorHover" name="modulaEditorHover" schema="schema/modulaEditorHover.exsd"/>
  5. <extension-point id="modulaEditorReconcilingStrategyContribution" name="modulaEditorReconcilingStrategyContribution" schema="schema/modulaEditorReconcilingStrategyContribution.exsd"/>
  6. <extension
  7. point="org.eclipse.ui.preferencePages">
  8. <page
  9. category="com.excelsior.xds.ui.preferences.XdsBasePreferencePage"
  10. class="com.excelsior.xds.ui.editor.internal.preferences.EditorPreferencePage"
  11. id="com.excelsior.xds.ui.preferences.editorPageId"
  12. name="%preferencePages.editor">
  13. </page>
  14. <page
  15. category="com.excelsior.xds.ui.preferences.editorPageId"
  16. class="com.excelsior.xds.ui.editor.internal.preferences.Modula2TemplatesPreferencePage"
  17. id="com.excelsior.xds.ui.preferences.templatePageId"
  18. name="%preferencePages.templates">
  19. </page>
  20. <page
  21. category="com.excelsior.xds.ui.preferences.editorPageId"
  22. class="com.excelsior.xds.ui.editor.internal.preferences.MarkOccurrencesPreferencePage"
  23. id="com.excelsior.xds.ui.preferences.markOccurrenciesPageId"
  24. name="%preferencePages.markOccurrences">
  25. </page>
  26. <page
  27. category="com.excelsior.xds.ui.preferences.XdsBasePreferencePage"
  28. class="com.excelsior.xds.ui.editor.internal.preferences.CodeStylePreferencePage"
  29. id="com.excelsior.xds.ui.preferences.codeStylePageId"
  30. name="%preferencePages.codeStyle">
  31. </page>
  32. <page
  33. category="com.excelsior.xds.ui.preferences.codeStylePageId"
  34. class="com.excelsior.xds.ui.editor.internal.preferences.formatter.FormatterPreferencePage"
  35. id="com.excelsior.xds.ui.preferences.formatterPageId"
  36. name="%preferencePages.formatter">
  37. </page>
  38. </extension>
  39. <extension
  40. point="org.eclipse.ui.editors">
  41. <editor
  42. default="false"
  43. extensions="mod,MOD,Mod"
  44. icon="icons/m2_mod_file.gif"
  45. class="com.excelsior.xds.ui.editor.modula.ModulaEditor"
  46. contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
  47. id="com.excelsior.xds.ui.editor.modula.ProgramModuleEditor"
  48. name="%editors.modEditor">
  49. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.modulaProgramModule"/>
  50. </editor>
  51. <editor
  52. default="false"
  53. extensions="def,DEF,Def"
  54. icon="icons/m2_def_file.gif"
  55. class="com.excelsior.xds.ui.editor.modula.ModulaEditor"
  56. contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
  57. id="com.excelsior.xds.ui.editor.modula.DefinitionModuleEditor"
  58. name="%editors.defEditor">
  59. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.modulaDefinitionModule"/>
  60. </editor>
  61. <editor
  62. default="false"
  63. extensions="ob2,OB2,Ob2"
  64. icon="icons/m2_mod_file.gif"
  65. class="com.excelsior.xds.ui.editor.modula.ModulaEditor"
  66. contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
  67. id="com.excelsior.xds.ui.editor.oberon.ModuleEditor"
  68. name="%editors.ob2Editor">
  69. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.oberonModule"/>
  70. </editor>
  71. <editor
  72. default="false"
  73. extensions="odf,ODF,Odf"
  74. icon="icons/m2_def_file.gif"
  75. class="com.excelsior.xds.ui.editor.modula.ModulaEditor"
  76. contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
  77. id="com.excelsior.xds.ui.editor.oberon.DefinitionModuleEditor"
  78. name="%editors.odfEditor">
  79. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.oberonDefinitionModule"/>
  80. </editor>
  81. <editor
  82. default="false"
  83. extensions="sym,SYM,Sym"
  84. icon="icons/m2_sym_file.gif"
  85. class="com.excelsior.xds.ui.editor.symfile.XdsSymfileEditor"
  86. contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
  87. id="com.excelsior.xds.ui.editor.SymFileEditor"
  88. name="%editors.symFileEditor">
  89. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.symFile"/>
  90. </editor>
  91. <editor
  92. default="false"
  93. extensions="prj,PRJ"
  94. class="org.eclipse.ui.editors.text.TextEditor"
  95. contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
  96. id="com.excelsior.xds.ui.editor.ProjectFileEditor"
  97. name="%editors.prjFile">
  98. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.prjFile"/>
  99. </editor>
  100. <editor
  101. default="false"
  102. extensions="cfg,CFG,Cfg,cha,CHA,Cha,lnk,LNK,Lnk,lst,LST,Lst,map,MAP,Map,mar,MAR,Mar,mkf,MKF,Mkf,old,OLD,Old,s,S,sts,STS,Sts"
  103. class="org.eclipse.ui.editors.text.TextEditor"
  104. contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
  105. id="com.excelsior.xds.ui.editor.TextFileEditor"
  106. name="%editors.txtTextFile">
  107. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.textFile"/>
  108. </editor>
  109. <editor
  110. default="false"
  111. extensions="htm,html,shtml,HTM,HTML,SHTML"
  112. class="org.eclipse.ui.internal.browser.WebBrowserEditor"
  113. contributorClass="org.eclipse.ui.internal.browser.WebBrowserEditorActionBarContributor"
  114. id="com.excelsior.xds.ui.editor.WebBrowserEditor"
  115. name="%editors.htmlEditor">
  116. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.htmlFile"/>
  117. </editor>
  118. </extension>
  119. <extension
  120. point="org.eclipse.core.filebuffers.documentSetup"
  121. id="com.excelsior.xds.ui.editor.modula.ImplementationModuleDocumentSetupParticipant"
  122. name="Modula-2 Implementation Module Document Setup Participant">
  123. <participant
  124. class="com.excelsior.xds.ui.editor.modula.ModulaDocumentSetupParticipant"
  125. contentTypeId="com.excelsior.xds.contenttype.modulaProgramModule"
  126. extensions="mod,MOD,Mod">
  127. </participant>
  128. </extension>
  129. <extension
  130. point="org.eclipse.core.filebuffers.documentSetup"
  131. id="com.excelsior.xds.ui.editor.modula.DefinitionModuleDocumentSetupParticipant"
  132. name="Modula-2 Definition Module Document Setup Participant">
  133. <participant
  134. class="com.excelsior.xds.ui.editor.modula.ModulaDocumentSetupParticipant"
  135. contentTypeId="com.excelsior.xds.contenttype.modulaDefinitionModule"
  136. extensions="def,DEF,Def">
  137. </participant>
  138. </extension>
  139. <extension
  140. point="org.eclipse.core.filebuffers.documentSetup"
  141. id="com.excelsior.xds.ui.editor.oberon.ModuleDocumentSetupParticipant"
  142. name="Oberon-2 Module Document Setup Participant">
  143. <participant
  144. class="com.excelsior.xds.ui.editor.oberon.OberonDocumentSetupParticipant"
  145. contentTypeId="com.excelsior.xds.contenttype.oberonModule"
  146. extensions="ob2,OB2,Ob2">
  147. </participant>
  148. </extension>
  149. <extension
  150. point="org.eclipse.core.filebuffers.documentSetup"
  151. id="com.excelsior.xds.ui.editor.oberon.DefinitionModuleDocumentSetupParticipant"
  152. name="Oberon-2 Pseudo Definition Module Document Setup Participant">
  153. <participant
  154. class="com.excelsior.xds.ui.editor.oberon.OberonDocumentSetupParticipant"
  155. contentTypeId="com.excelsior.xds.contenttype.oberonDefinitionModule"
  156. extensions="odf,ODF,Odf">
  157. </participant>
  158. </extension>
  159. <extension
  160. point="org.eclipse.core.filebuffers.documentSetup"
  161. id="com.excelsior.xds.ui.editor.SymFileDocumentSetupParticipant"
  162. name="XDS Symbol File Setup Participant">
  163. <participant
  164. class="com.excelsior.xds.ui.editor.oberon.OberonDocumentSetupParticipant"
  165. contentTypeId="com.excelsior.xds.contenttype.oberonDefinitionModule"
  166. extensions="sym,SYM,Sym">
  167. </participant>
  168. </extension>
  169. <extension
  170. point="org.eclipse.ui.editors.templates">
  171. <contextType
  172. class="com.excelsior.xds.ui.editor.modula.template.SourceCodeTemplateContextType"
  173. id="com.excelsior.xds.ui.editor.templates.context.type.modula"
  174. name="%templates.context.type.modula"/>
  175. </extension>
  176. <extension
  177. point="org.eclipse.ui.bindings">
  178. <scheme
  179. id="com.excelsior.xds.command.keybinding"
  180. name="%xds.keybinding.scheme.name"
  181. parentId="org.eclipse.ui.defaultAcceleratorConfiguration">
  182. </scheme>
  183. <key
  184. commandId="com.excelsior.xds.ui.commands.modula.toggle.comment"
  185. contextId="com.excelsior.xds.ui.modulaEditorScope"
  186. schemeId="com.excelsior.xds.command.keybinding"
  187. sequence="CTRL+/">
  188. </key>
  189. <key
  190. commandId="com.excelsior.xds.ui.commands.modula.add.block.comment"
  191. contextId="com.excelsior.xds.ui.modulaEditorScope"
  192. schemeId="com.excelsior.xds.command.keybinding"
  193. sequence="CTRL+SHIFT+/">
  194. </key>
  195. <key
  196. commandId="com.excelsior.xds.ui.commands.modula.remove.block.comment"
  197. contextId="com.excelsior.xds.ui.modulaEditorScope"
  198. schemeId="com.excelsior.xds.command.keybinding"
  199. sequence="CTRL+SHIFT+\">
  200. </key>
  201. <key
  202. commandId="com.excelsior.xds.commands.modula.context.f1.help"
  203. contextId="com.excelsior.xds.ui.modulaEditorScope"
  204. schemeId="com.excelsior.xds.command.keybinding"
  205. sequence="F12">
  206. </key>
  207. <key
  208. commandId="com.excelsior.xds.ui.commands.modula.quick.outline"
  209. contextId="com.excelsior.xds.ui.modulaEditorScope"
  210. schemeId="com.excelsior.xds.command.keybinding"
  211. sequence="CTRL+O">
  212. </key>
  213. <key
  214. commandId="com.excelsior.xds.ui.commands.modula.indent"
  215. contextId="com.excelsior.xds.ui.modulaEditorScope"
  216. schemeId="com.excelsior.xds.command.keybinding"
  217. sequence="CTRL+I">
  218. </key>
  219. <key
  220. commandId="com.excelsior.xds.ui.commands.modula.format"
  221. contextId="com.excelsior.xds.ui.modulaEditorScope"
  222. schemeId="com.excelsior.xds.command.keybinding"
  223. sequence="CTRL+SHIFT+F">
  224. </key>
  225. <key
  226. commandId="com.excelsior.xds.ui.commands.toggleMarkOccurrences"
  227. contextId="com.excelsior.xds.ui.modulaEditorScope"
  228. schemeId="com.excelsior.xds.command.keybinding"
  229. sequence="M2+M3+O">
  230. </key>
  231. <key
  232. commandId="com.excelsior.xds.ui.commands.selectEnclosingElement"
  233. contextId="com.excelsior.xds.ui.modulaEditorScope"
  234. schemeId="com.excelsior.xds.command.keybinding"
  235. sequence="M2+M3+ARROW_UP">
  236. </key>
  237. <key
  238. commandId="com.excelsior.xds.ui.commands.restoreLastSelection"
  239. contextId="com.excelsior.xds.ui.modulaEditorScope"
  240. schemeId="com.excelsior.xds.command.keybinding"
  241. sequence="M2+M3+ARROW_DOWN">
  242. </key>
  243. <key
  244. commandId="com.excelsior.xds.ui.commands.modula.openCoupledModule"
  245. contextId="com.excelsior.xds.ui.modulaEditorScope"
  246. schemeId="com.excelsior.xds.command.keybinding"
  247. sequence="CTRL+P">
  248. </key>
  249. <key
  250. commandId="com.excelsior.xds.ui.editor.modula.opendecl"
  251. sequence="F3"
  252. contextId="com.excelsior.xds.ui.modulaEditorScope"
  253. schemeId="com.excelsior.xds.command.keybinding">
  254. </key>
  255. <key
  256. commandId="com.excelsior.xds.ui.editor.modula.finddecl"
  257. sequence="CTRL+G"
  258. contextId="com.excelsior.xds.ui.modulaEditorScope"
  259. schemeId="com.excelsior.xds.command.keybinding">
  260. </key>
  261. <key
  262. commandId="com.excelsior.xds.ui.editor.modula.findrefs"
  263. sequence="CTRL+SHIFT+G"
  264. contextId="com.excelsior.xds.ui.modulaEditorScope"
  265. schemeId="com.excelsior.xds.command.keybinding">
  266. </key>
  267. <key
  268. commandId="org.eclipse.ui.edit.text.showInformation"
  269. sequence="F2"
  270. contextId="com.excelsior.xds.ui.modulaEditorScope"
  271. schemeId="com.excelsior.xds.command.keybinding">
  272. </key>
  273. <key
  274. commandId="com.excelsior.xds.ui.commands.modula.refactoring.rename"
  275. sequence="CTRL+R"
  276. contextId="com.excelsior.xds.ui.modulaEditorScope"
  277. schemeId="com.excelsior.xds.command.keybinding">
  278. </key>
  279. </extension>
  280. <!-- xFind bindings -->
  281. <extension
  282. point="org.eclipse.ui.bindings">
  283. <scheme
  284. id="com.excelsior.xds.command.keybinding"
  285. name="%xds.keybinding.scheme.name"
  286. parentId="org.eclipse.ui.defaultAcceleratorConfiguration">
  287. </scheme>
  288. <!-- xFind activation bindings -->
  289. <key
  290. commandId="com.excelsior.texteditor.xfind.commands.open"
  291. contextId="org.eclipse.ui.textEditorScope"
  292. sequence="M1+F"
  293. schemeId="com.excelsior.xds.command.keybinding">
  294. </key>
  295. <key
  296. commandId="org.eclipse.ui.edit.findReplace"
  297. contextId="org.eclipse.ui.textEditorScope"
  298. sequence="M1+M3+F"
  299. schemeId="com.excelsior.xds.command.keybinding">
  300. </key>
  301. <!-- xFind quick navigation bindings -->
  302. <key
  303. commandId="com.excelsior.texteditor.xfind.commands.quick.prevOccurrence"
  304. contextId="org.eclipse.ui.textEditorScope"
  305. sequence="M1+ARROW_UP"
  306. schemeId="com.excelsior.xds.command.keybinding">
  307. </key>
  308. <key
  309. commandId="com.excelsior.texteditor.xfind.commands.quick.nextOccurrence"
  310. contextId="org.eclipse.ui.textEditorScope"
  311. sequence="M1+ARROW_DOWN"
  312. schemeId="com.excelsior.xds.command.keybinding">
  313. </key>
  314. </extension>
  315. <extension
  316. point="org.eclipse.ui.contexts">
  317. <context
  318. name="%contexts.m2sources"
  319. description="%contexts.m2sources.desc"
  320. parentId="org.eclipse.ui.textEditorScope"
  321. id="com.excelsior.xds.ui.modulaEditorScope">
  322. </context>
  323. </extension>
  324. <extension
  325. point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectorTargets">
  326. <target
  327. id="com.excelsior.xds.ui.ModulaCode"
  328. name="%hyperlink.target.ModulaCode">
  329. <context type="org.eclipse.ui.texteditor.ITextEditor"/>
  330. </target>
  331. </extension>
  332. <extension
  333. point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors">
  334. <hyperlinkDetector
  335. class="com.excelsior.xds.ui.editor.modula.hyperlink.ModulaDeclarationHyperlinkDetector"
  336. id="com.excelsior.xds.ui.editor.modula.ModulaDeclarationHyperlinkDetector"
  337. name="%hyperlink.detector.ModulaDeclaration"
  338. targetId="com.excelsior.xds.ui.ModulaCode">
  339. </hyperlinkDetector>
  340. </extension>
  341. <extension
  342. point="org.eclipse.ui.commands">
  343. <!-- categories -->
  344. <category
  345. name="%commands.source.name"
  346. description="%commands.source.desc"
  347. id="com.excelsior.xds.ui.category.source">
  348. </category>
  349. <!-- source -->
  350. <command
  351. name="%commands.toggleComment.name"
  352. description="%commands.toggleComment.desc"
  353. categoryId="com.excelsior.xds.ui.category.source"
  354. id="com.excelsior.xds.ui.commands.modula.toggle.comment">
  355. </command>
  356. <command
  357. name="%commands.AddBlockComment.name"
  358. description="%commands.AddBlockComment.desc"
  359. categoryId="com.excelsior.xds.ui.category.source"
  360. id="com.excelsior.xds.ui.commands.modula.add.block.comment">
  361. </command>
  362. <command
  363. name="%commands.RemoveBlockComment.name"
  364. description="%commands.RemoveBlockComment.desc"
  365. categoryId="com.excelsior.xds.ui.category.source"
  366. id="com.excelsior.xds.ui.commands.modula.remove.block.comment">
  367. </command>
  368. <command
  369. name="%commands.modula.indent.name"
  370. description="%commands.modula.indent.desc"
  371. categoryId="com.excelsior.xds.ui.category.source"
  372. id="com.excelsior.xds.ui.commands.modula.indent">
  373. </command>
  374. <command
  375. name="%commands.modula.format.name"
  376. description="%commands.modula.format.desc"
  377. categoryId="com.excelsior.xds.ui.category.source"
  378. id="com.excelsior.xds.ui.commands.modula.format">
  379. </command>
  380. <command
  381. name="%commands.modula.toggleMarkOccurrences.name"
  382. description="%commands.modula.toggleMarkOccurrences.desc"
  383. categoryId="com.excelsior.xds.ui.category.source"
  384. id="com.excelsior.xds.ui.commands.toggleMarkOccurrences">
  385. </command>
  386. <command
  387. name="%commands.modula.selectEnclosingElement.name"
  388. description="%commands.modula.selectEnclosingElement.desc"
  389. categoryId="com.excelsior.xds.ui.category.source"
  390. id="com.excelsior.xds.ui.commands.selectEnclosingElement">
  391. </command>
  392. <command
  393. name="%commands.modula.restoreLastSelection.name"
  394. description="%commands.modula.restoreLastSelection.desc"
  395. categoryId="com.excelsior.xds.ui.category.source"
  396. id="com.excelsior.xds.ui.commands.restoreLastSelection">
  397. </command>
  398. <!-- navigate -->
  399. <command
  400. name="%commands.openDeclaration.name"
  401. description="%commands.openDeclaration.desc"
  402. categoryId="org.eclipse.ui.category.navigate"
  403. id="com.excelsior.xds.ui.editor.modula.opendecl">
  404. </command>
  405. <command
  406. name="%commands.openCoupledModule.name"
  407. description="%commands.openCoupledModule.desc"
  408. categoryId="org.eclipse.ui.category.navigate"
  409. id="com.excelsior.xds.ui.commands.modula.openCoupledModule">
  410. </command>
  411. <command
  412. name="%commands.showQuickOutline.name"
  413. description="%commands.showQuickOutline.desc"
  414. categoryId="org.eclipse.ui.category.navigate"
  415. id="com.excelsior.xds.ui.commands.modula.quick.outline">
  416. </command>
  417. <!-- search -->
  418. <command
  419. name="%commands.findDeclarations.name"
  420. description="%commands.findDeclarations.desc"
  421. categoryId="org.eclipse.search.ui.category.search"
  422. id="com.excelsior.xds.ui.editor.modula.finddecl">
  423. </command>
  424. <command
  425. name="%commands.findReferences.name"
  426. description="%commands.findReferences.desc"
  427. categoryId="org.eclipse.search.ui.category.search"
  428. id="com.excelsior.xds.ui.editor.modula.findrefs">
  429. </command>
  430. <!-- help -->
  431. <command
  432. name="%commands.showHelp.name"
  433. description="%commands.showHelp.desc"
  434. categoryId="org.eclipse.ui.category.help"
  435. id="com.excelsior.xds.commands.modula.context.f1.help">
  436. </command>
  437. <!-- refactor -->
  438. <command
  439. name="%commands.refactoring.rename.name"
  440. description="%commands.refactoring.rename.desc"
  441. categoryId="com.excelsior.xds.ui.category.source"
  442. id="com.excelsior.xds.ui.commands.modula.refactoring.rename">
  443. </command>
  444. </extension>
  445. <!-- Modula-2/Oberon-2 commands' handlers -->
  446. <extension
  447. point="org.eclipse.ui.handlers"
  448. name="Modula-2 commands handlers">
  449. <handler
  450. class="com.excelsior.xds.ui.editor.commons.commands.ToggleCommentHandler"
  451. commandId="com.excelsior.xds.ui.commands.modula.toggle.comment">
  452. <activeWhen>
  453. <reference
  454. definitionId="com.excelsior.xds.expression.selected.only.ModulaOberonFiles">
  455. </reference>
  456. </activeWhen>
  457. <enabledWhen>
  458. <reference
  459. definitionId="com.excelsior.xds.expression.selected.ModulaOberonEditor">
  460. </reference>
  461. </enabledWhen>
  462. </handler>
  463. <handler
  464. class="com.excelsior.xds.ui.editor.modula.commands.AddBlockCommentHandler"
  465. commandId="com.excelsior.xds.ui.commands.modula.add.block.comment">
  466. <activeWhen>
  467. <reference
  468. definitionId="com.excelsior.xds.expression.selected.only.ModulaOberonFiles">
  469. </reference>
  470. </activeWhen>
  471. <enabledWhen>
  472. <reference
  473. definitionId="com.excelsior.xds.expression.selected.ModulaOberonEditor">
  474. </reference>
  475. </enabledWhen>
  476. </handler>
  477. <handler
  478. class="com.excelsior.xds.ui.editor.modula.commands.RemoveBlockCommentHandler"
  479. commandId="com.excelsior.xds.ui.commands.modula.remove.block.comment">
  480. <activeWhen>
  481. <reference
  482. definitionId="com.excelsior.xds.expression.selected.only.ModulaOberonFiles">
  483. </reference>
  484. </activeWhen>
  485. <enabledWhen>
  486. <reference
  487. definitionId="com.excelsior.xds.expression.selected.ModulaOberonEditor">
  488. </reference>
  489. </enabledWhen>
  490. </handler>
  491. <handler
  492. class="com.excelsior.xds.ui.editor.modula.commands.ModulaContextHelpHandler"
  493. commandId="com.excelsior.xds.commands.modula.context.f1.help">
  494. <activeWhen>
  495. <reference
  496. definitionId="com.excelsior.xds.expression.selected.ModulaEditor">
  497. </reference>
  498. </activeWhen>
  499. </handler>
  500. <handler
  501. class="com.excelsior.xds.ui.editor.modula.commands.QuickOutlineHandler"
  502. commandId="com.excelsior.xds.ui.commands.modula.quick.outline">
  503. <activeWhen>
  504. <reference
  505. definitionId="com.excelsior.xds.expression.selected.only.StructuredFiles">
  506. </reference>
  507. </activeWhen>
  508. <enabledWhen>
  509. <reference
  510. definitionId="com.excelsior.xds.expression.selected.StructuredEditor">
  511. </reference>
  512. </enabledWhen>
  513. </handler>
  514. <handler
  515. class="com.excelsior.xds.ui.editor.modula.commands.IndentModulaTextHandler"
  516. commandId="com.excelsior.xds.ui.commands.modula.indent">
  517. <activeWhen>
  518. <reference
  519. definitionId="com.excelsior.xds.expression.selected.only.ModulaOberonFiles">
  520. </reference>
  521. </activeWhen>
  522. </handler>
  523. <handler
  524. class="com.excelsior.xds.ui.editor.modula.commands.FormatModulaTextHandler"
  525. commandId="com.excelsior.xds.ui.commands.modula.format">
  526. <activeWhen>
  527. <reference
  528. definitionId="com.excelsior.xds.expression.selected.only.ModulaOberonFiles">
  529. </reference>
  530. </activeWhen>
  531. </handler>
  532. <handler
  533. class="com.excelsior.xds.ui.editor.modula.commands.ToggleMarkOccurrencesHandler"
  534. commandId="com.excelsior.xds.ui.commands.toggleMarkOccurrences">
  535. <activeWhen>
  536. <reference
  537. definitionId="com.excelsior.xds.expression.selected.only.StructuredFiles">
  538. </reference>
  539. </activeWhen>
  540. </handler>
  541. <handler
  542. class="com.excelsior.xds.ui.editor.modula.commands.SelectEnclosingElementHandler"
  543. commandId="com.excelsior.xds.ui.commands.selectEnclosingElement">
  544. <activeWhen>
  545. <reference
  546. definitionId="com.excelsior.xds.expression.selected.only.StructuredFiles">
  547. </reference>
  548. </activeWhen>
  549. </handler>
  550. <handler
  551. class="com.excelsior.xds.ui.editor.modula.commands.RestoreLastSelectionHandler"
  552. commandId="com.excelsior.xds.ui.commands.restoreLastSelection">
  553. <activeWhen>
  554. <reference
  555. definitionId="com.excelsior.xds.expression.selected.only.StructuredFiles">
  556. </reference>
  557. </activeWhen>
  558. </handler>
  559. <handler
  560. class="com.excelsior.xds.ui.editor.modula.commands.OpenCoupledModuleHandler"
  561. commandId="com.excelsior.xds.ui.commands.modula.openCoupledModule">
  562. <activeWhen>
  563. <reference
  564. definitionId="com.excelsior.xds.expression.selected.only.ModulaFiles">
  565. </reference>
  566. </activeWhen>
  567. <enabledWhen>
  568. <reference
  569. definitionId="com.excelsior.xds.expression.selected.single.ModulaFile">
  570. </reference>
  571. </enabledWhen>
  572. </handler>
  573. <handler
  574. class="com.excelsior.xds.ui.editor.modula.commands.refactoring.RenameRefactoringHandler"
  575. commandId="com.excelsior.xds.ui.commands.modula.refactoring.rename">
  576. <activeWhen>
  577. <reference
  578. definitionId="com.excelsior.xds.expression.active.ModulaOberonEditor">
  579. </reference>
  580. </activeWhen>
  581. <enabledWhen>
  582. <reference
  583. definitionId="com.excelsior.xds.expression.active.ModulaOberonEditor">
  584. </reference>
  585. </enabledWhen>
  586. </handler>
  587. </extension>
  588. <extension
  589. point="org.eclipse.ui.actionSets">
  590. <actionSet
  591. label="Modula Open Actions"
  592. description="Modula Open Actions"
  593. visible="false"
  594. id="com.excelsior.xds.ui.editor.modula.OpenActionSet">
  595. <action
  596. definitionId="com.excelsior.xds.ui.editor.modula.opendecl"
  597. label="%OpenDeclarations_label"
  598. tooltip="%OpenDeclarations_tooltip"
  599. retarget="true"
  600. menubarPath="navigate/open.ext"
  601. id="com.excelsior.xds.ui.editor.actions.modula.OpenDeclaration">
  602. </action>
  603. </actionSet>
  604. </extension>
  605. <!-- Modula-2 Editor popup menu -->
  606. <extension
  607. point="org.eclipse.ui.menus">
  608. <menuContribution
  609. allPopups="true"
  610. locationURI="popup:com.excelsior.xds.ui.editor.modula.ProgramModuleEditor.EditorContext?after=com.excelsior.xds.ui.editor.actions.modula.OpenDeclaration">
  611. <command
  612. commandId="com.excelsior.xds.ui.commands.modula.openCoupledModule"
  613. style="push">
  614. </command>
  615. <command
  616. commandId="com.excelsior.xds.ui.commands.modula.quick.outline"
  617. style="push">
  618. </command>
  619. </menuContribution>
  620. <menuContribution
  621. allPopups="true"
  622. locationURI="popup:com.excelsior.xds.ui.editor.modula.DefinitionModuleEditor.EditorContext?after=com.excelsior.xds.ui.editor.actions.modula.OpenDeclaration">
  623. <command
  624. commandId="com.excelsior.xds.ui.commands.modula.openCoupledModule"
  625. style="push">
  626. </command>
  627. <command
  628. commandId="com.excelsior.xds.ui.commands.modula.quick.outline"
  629. style="push">
  630. </command>
  631. </menuContribution>
  632. <menuContribution
  633. allPopups="true"
  634. locationURI="popup:com.excelsior.xds.ui.editor.modula.ProgramModuleEditor.EditorContext?after=com.excelsior.xds.ui.editor.actions.modula.OpenDeclaration">
  635. <command
  636. commandId="com.excelsior.xds.ui.commands.modula.refactoring.rename"
  637. style="push">
  638. </command>
  639. </menuContribution>
  640. <menuContribution
  641. allPopups="true"
  642. locationURI="popup:com.excelsior.xds.ui.editor.modula.DefinitionModuleEditor.EditorContext?after=com.excelsior.xds.ui.editor.actions.modula.OpenDeclaration">
  643. <command
  644. commandId="com.excelsior.xds.ui.commands.modula.refactoring.rename"
  645. style="push">
  646. </command>
  647. </menuContribution>
  648. <menuContribution
  649. allPopups="true"
  650. locationURI="popup:com.excelsior.xds.ui.editor.oberon.ModuleEditor.EditorContext?after=com.excelsior.xds.ui.editor.actions.modula.OpenDeclaration">
  651. <command
  652. commandId="com.excelsior.xds.ui.commands.modula.refactoring.rename"
  653. style="push">
  654. </command>
  655. </menuContribution>
  656. </extension>
  657. <!-- Oberon-2 Editor popup menu -->
  658. <extension
  659. point="org.eclipse.ui.menus">
  660. <menuContribution
  661. allPopups="true"
  662. locationURI="popup:com.excelsior.xds.ui.editor.oberon.ModuleEditor.EditorContext?after=com.excelsior.xds.ui.editor.actions.modula.OpenDeclaration">
  663. <command
  664. commandId="com.excelsior.xds.ui.commands.modula.quick.outline"
  665. style="push">
  666. </command>
  667. </menuContribution>
  668. <menuContribution
  669. allPopups="true"
  670. locationURI="popup:com.excelsior.xds.ui.editor.oberon.DefinitionModuleEditor.EditorContext?after=com.excelsior.xds.ui.editor.actions.modula.OpenDeclaration">
  671. <command
  672. commandId="com.excelsior.xds.ui.commands.modula.quick.outline"
  673. style="push">
  674. </command>
  675. </menuContribution>
  676. <!-- Modula-2/Oberon-2 Source.CommentGroup menu items -->
  677. <menuContribution
  678. allPopups="true"
  679. locationURI="menu:com.excelsior.xds.ui.menu.source?before=CommentGroup">
  680. <command
  681. commandId="com.excelsior.xds.ui.commands.modula.toggle.comment"
  682. style="push">
  683. <visibleWhen
  684. checkEnabled="false">
  685. <reference
  686. definitionId="com.excelsior.xds.expression.active.ModulaOberonEditor">
  687. </reference>
  688. </visibleWhen>
  689. </command>
  690. <command
  691. commandId="com.excelsior.xds.ui.commands.modula.add.block.comment"
  692. style="push">
  693. <visibleWhen
  694. checkEnabled="false">
  695. <reference
  696. definitionId="com.excelsior.xds.expression.active.ModulaOberonEditor">
  697. </reference>
  698. </visibleWhen>
  699. </command>
  700. <command
  701. commandId="com.excelsior.xds.ui.commands.modula.remove.block.comment"
  702. style="push">
  703. <visibleWhen
  704. checkEnabled="false">
  705. <reference
  706. definitionId="com.excelsior.xds.expression.active.ModulaOberonEditor">
  707. </reference>
  708. </visibleWhen>
  709. </command>
  710. </menuContribution>
  711. <!-- Source.EditGroup menu items -->
  712. <menuContribution
  713. allPopups="true"
  714. locationURI="menu:com.excelsior.xds.ui.menu.source?before=EditGroup">
  715. <command
  716. commandId="org.eclipse.ui.edit.text.shiftRight"
  717. style="push">
  718. </command>
  719. <command
  720. commandId="org.eclipse.ui.edit.text.shiftLeft"
  721. style="push">
  722. </command>
  723. <command
  724. commandId="com.excelsior.xds.ui.commands.modula.indent"
  725. style="push">
  726. <visibleWhen
  727. checkEnabled="false">
  728. <reference
  729. definitionId="com.excelsior.xds.expression.active.ModulaOberonEditor">
  730. </reference>
  731. </visibleWhen>
  732. </command>
  733. <command
  734. commandId="com.excelsior.xds.ui.commands.modula.format"
  735. style="push">
  736. <visibleWhen
  737. checkEnabled="false">
  738. <reference
  739. definitionId="com.excelsior.xds.expression.active.ModulaOberonEditor">
  740. </reference>
  741. </visibleWhen>
  742. </command>
  743. </menuContribution>
  744. </extension>
  745. <!-- Navigate menu -->
  746. <extension
  747. point="org.eclipse.ui.menus">
  748. <menuContribution
  749. allPopups="true"
  750. locationURI="menu:navigate?endof=open.ext">
  751. <command
  752. commandId="com.excelsior.xds.ui.commands.modula.openCoupledModule"
  753. style="push">
  754. <visibleWhen
  755. checkEnabled="false">
  756. <reference
  757. definitionId="com.excelsior.xds.expression.selected.only.ModulaFiles">
  758. </reference>
  759. </visibleWhen>
  760. </command>
  761. </menuContribution>
  762. <menuContribution
  763. allPopups="true"
  764. locationURI="menu:navigate?endof=show.ext">
  765. <command
  766. commandId="com.excelsior.xds.ui.commands.modula.quick.outline"
  767. style="push">
  768. <visibleWhen
  769. checkEnabled="false">
  770. <reference
  771. definitionId="com.excelsior.xds.expression.active.ModulaOberonEditor">
  772. </reference>
  773. </visibleWhen>
  774. </command>
  775. </menuContribution>
  776. </extension>
  777. <!-- XDS editors presentation toolbar -->
  778. <extension
  779. point="org.eclipse.ui.menus">
  780. <menuContribution
  781. locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
  782. <toolbar
  783. id="org.eclipse.ui.edit.text.actionSet.presentation">
  784. <command
  785. commandId="com.excelsior.xds.ui.commands.toggleMarkOccurrences"
  786. icon="icons/mark_occurrences.gif"
  787. style="toggle"
  788. tooltip="%commands.modula.toggleMarkOccurrences.tooltip">
  789. <visibleWhen
  790. checkEnabled="false">
  791. <reference
  792. definitionId="com.excelsior.xds.expression.active.ModulaOberonEditor">
  793. </reference>
  794. </visibleWhen>
  795. </command>
  796. </toolbar>
  797. </menuContribution>
  798. </extension>
  799. <!-- Expressions: XDS Structured files and editors -->
  800. <extension
  801. point="org.eclipse.core.expressions.definitions">
  802. <definition
  803. id="com.excelsior.xds.expression.active.StructuredEditor">
  804. <or>
  805. <reference
  806. definitionId="com.excelsior.xds.expression.active.ModulaOberonEditor">
  807. </reference>
  808. <with variable="activeEditorId">
  809. <equals
  810. value="com.excelsior.xds.ui.editor.SymFileEditor">
  811. </equals>
  812. </with>
  813. </or>
  814. </definition>
  815. </extension>
  816. <extension point="org.eclipse.core.resources.markers"
  817. id="com.excelsior.xds.ui.editor.occurrenceMarker"
  818. name="Occurrences">
  819. <super type="org.eclipse.core.resources.textmarker"/>
  820. <persistent value="false"/>
  821. </extension>
  822. <extension point="org.eclipse.core.resources.markers"
  823. id="com.excelsior.xds.ui.editor.constructionMarker"
  824. name="Language constructions">
  825. <super type="org.eclipse.core.resources.textmarker"/>
  826. <persistent value="false"/>
  827. </extension>
  828. <extension
  829. point="org.eclipse.ui.editors.annotationTypes">
  830. <type
  831. markerType="com.excelsior.xds.ui.editor.occurrenceMarker"
  832. name="com.excelsior.xds.ui.editor.occurrenceMarkerAnnotation">
  833. </type>
  834. <type
  835. markerType="com.excelsior.xds.ui.editor.constructionMarker"
  836. name="com.excelsior.xds.ui.editor.constructionMarkerAnnotation">
  837. </type>
  838. <!--
  839. <type
  840. markerType="com.excelsior.xds.ui.editor.occurrenceMarker"
  841. name="com.excelsior.xds.ui.editor.writeOccurrenceMarkerAnnotation">
  842. </type>
  843. -->
  844. </extension>
  845. <extension
  846. point="org.eclipse.ui.editors.markerAnnotationSpecification">
  847. <specification
  848. annotationType="com.excelsior.xds.ui.editor.occurrenceMarkerAnnotation"
  849. colorPreferenceKey="com.excelsior.xds.ui.editor.occurrenceMarker.color"
  850. colorPreferenceValue="212, 212, 212"
  851. contributesToHeader="false"
  852. highlightPreferenceKey="com.excelsior.xds.ui.editor.occurrenceMarker.highlight"
  853. highlightPreferenceValue="true"
  854. includeOnPreferencePage="true"
  855. label="%annotation.occurrence"
  856. overviewRulerPreferenceKey="com.excelsior.xds.ui.editor.occurrenceMarker.overview"
  857. overviewRulerPreferenceValue="true"
  858. presentationLayer="4"
  859. textPreferenceKey="com.excelsior.xds.ui.editor.occurrenceMarker.text"
  860. textPreferenceValue="true"
  861. textStylePreferenceValue="BOX"
  862. verticalRulerPreferenceKey="com.excelsior.xds.ui.editor.occurrenceMarker.ruler"
  863. verticalRulerPreferenceValue="true">
  864. </specification>
  865. <specification
  866. annotationType="com.excelsior.xds.ui.editor.constructionMarkerAnnotation"
  867. colorPreferenceKey="com.excelsior.xds.ui.editor.constructionMarker.color"
  868. colorPreferenceValue="204, 230, 255"
  869. contributesToHeader="false"
  870. highlightPreferenceKey="com.excelsior.xds.ui.editor.constructionMarker.highlight"
  871. highlightPreferenceValue="true"
  872. includeOnPreferencePage="true"
  873. label="%annotation.construction"
  874. overviewRulerPreferenceKey="com.excelsior.xds.ui.editor.constructionMarker.overview"
  875. overviewRulerPreferenceValue="true"
  876. presentationLayer="4"
  877. textPreferenceKey="com.excelsior.xds.ui.editor.constructionMarker.text"
  878. textPreferenceValue="true"
  879. textStylePreferenceValue="BOX"
  880. verticalRulerPreferenceKey="com.excelsior.xds.ui.editor.constructionMarker.ruler"
  881. verticalRulerPreferenceValue="true">
  882. </specification>
  883. <!--
  884. <specification
  885. annotationType="com.excelsior.xds.ui.editor.writeOccurrenceMarkerAnnotation"
  886. colorPreferenceKey="com.excelsior.xds.ui.editor.writeOccurrenceMarker.color"
  887. colorPreferenceValue="232,196,121"
  888. contributesToHeader="false"
  889. highlightPreferenceKey="com.excelsior.xds.ui.editor.writeOccurrenceMarker.highlight"
  890. highlightPreferenceValue="true"
  891. includeOnPreferencePage="true"
  892. label="%annotation.writeOccurrence"
  893. overviewRulerPreferenceKey="com.excelsior.xds.ui.editor.writeOccurrenceMarker.overview"
  894. overviewRulerPreferenceValue="true"
  895. presentationLayer="0"
  896. textPreferenceKey="com.excelsior.xds.ui.editor.writeOccurrenceMarker.text"
  897. textPreferenceValue="true"
  898. textStylePreferenceValue="BOX"
  899. verticalRulerPreferenceKey="com.excelsior.xds.ui.editor.writeOccurrenceMarker.ruler"
  900. verticalRulerPreferenceValue="true">
  901. </specification>
  902. -->
  903. </extension>
  904. <extension point="org.eclipse.compare.contentMergeViewers">
  905. <viewer class="com.excelsior.xds.ui.editor.modula.compare.ModulaContentViewerCreator" extensions="mod,def,ob2,odf" id="com.excelsior.xds.ui.editor.modula.compare.ModulaContentViewerCreator">
  906. </viewer>
  907. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.modulaDefinitionModule" contentMergeViewerId="com.excelsior.xds.ui.editor.modula.compare.ModulaContentViewerCreator">
  908. </contentTypeBinding>
  909. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.modulaProgramModule" contentMergeViewerId="com.excelsior.xds.ui.editor.modula.compare.ModulaContentViewerCreator">
  910. </contentTypeBinding>
  911. <contentTypeBinding contentTypeId="com.excelsior.xds.contenttype.oberonModule" contentMergeViewerId="com.excelsior.xds.ui.editor.modula.compare.ModulaContentViewerCreator">
  912. </contentTypeBinding>
  913. </extension>
  914. <extension
  915. point="com.excelsior.xds.ui.editor.commons.syntaxColoringPreferences">
  916. <syntaxColoring class="com.excelsior.xds.ui.editor.modula.ModulaSyntaxColoringPreferences" />
  917. </extension>
  918. </plugin>