[5] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
---|
| 2 | <?eclipse version="3.0"?> |
---|
| 3 | |
---|
| 4 | <plugin> |
---|
| 5 | |
---|
| 6 | <extension |
---|
| 7 | point="org.eclipse.ui.editors"> |
---|
| 8 | <editor |
---|
| 9 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" |
---|
| 10 | contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" |
---|
| 11 | default="true" |
---|
| 12 | extensions="bnf" |
---|
| 13 | id="de.ugoe.cs.swe.bnftools.Ebnf" |
---|
| 14 | name="Ebnf Editor"> |
---|
| 15 | </editor> |
---|
| 16 | </extension> |
---|
| 17 | <extension |
---|
| 18 | point="org.eclipse.ui.handlers"> |
---|
| 19 | <handler |
---|
| 20 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler" |
---|
| 21 | commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"> |
---|
| 22 | <activeWhen> |
---|
| 23 | <reference |
---|
| 24 | definitionId="de.ugoe.cs.swe.bnftools.Ebnf.Editor.opened"> |
---|
| 25 | </reference> |
---|
| 26 | </activeWhen> |
---|
| 27 | </handler> |
---|
| 28 | <handler |
---|
| 29 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" |
---|
| 30 | commandId="de.ugoe.cs.swe.bnftools.Ebnf.validate"> |
---|
| 31 | <activeWhen> |
---|
| 32 | <reference |
---|
| 33 | definitionId="de.ugoe.cs.swe.bnftools.Ebnf.Editor.opened"> |
---|
| 34 | </reference> |
---|
| 35 | </activeWhen> |
---|
| 36 | </handler> |
---|
| 37 | </extension> |
---|
| 38 | <extension point="org.eclipse.core.expressions.definitions"> |
---|
| 39 | <definition id="de.ugoe.cs.swe.bnftools.Ebnf.Editor.opened"> |
---|
| 40 | <and> |
---|
| 41 | <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> |
---|
| 42 | <with variable="activeEditor"> |
---|
| 43 | <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" |
---|
| 44 | value="de.ugoe.cs.swe.bnftools.Ebnf" |
---|
| 45 | forcePluginActivation="true"/> |
---|
| 46 | </with> |
---|
| 47 | </and> |
---|
| 48 | </definition> |
---|
| 49 | </extension> |
---|
| 50 | <extension |
---|
| 51 | point="org.eclipse.ui.preferencePages"> |
---|
| 52 | <page |
---|
| 53 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" |
---|
| 54 | id="de.ugoe.cs.swe.bnftools.Ebnf" |
---|
| 55 | name="Ebnf"> |
---|
| 56 | <keywordReference id="de.ugoe.cs.swe.bnftools.ui.keyword_Ebnf"/> |
---|
| 57 | </page> |
---|
| 58 | <page |
---|
| 59 | category="de.ugoe.cs.swe.bnftools.Ebnf" |
---|
| 60 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" |
---|
| 61 | id="de.ugoe.cs.swe.bnftools.Ebnf.coloring" |
---|
| 62 | name="Syntax Coloring"> |
---|
| 63 | <keywordReference id="de.ugoe.cs.swe.bnftools.ui.keyword_Ebnf"/> |
---|
| 64 | </page> |
---|
| 65 | <page |
---|
| 66 | category="de.ugoe.cs.swe.bnftools.Ebnf" |
---|
| 67 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" |
---|
| 68 | id="de.ugoe.cs.swe.bnftools.Ebnf.templates" |
---|
| 69 | name="Templates"> |
---|
| 70 | <keywordReference id="de.ugoe.cs.swe.bnftools.ui.keyword_Ebnf"/> |
---|
| 71 | </page> |
---|
| 72 | </extension> |
---|
| 73 | <extension |
---|
| 74 | point="org.eclipse.ui.keywords"> |
---|
| 75 | <keyword |
---|
| 76 | id="de.ugoe.cs.swe.bnftools.ui.keyword_Ebnf" |
---|
| 77 | label="Ebnf"/> |
---|
| 78 | </extension> |
---|
| 79 | <extension |
---|
| 80 | point="org.eclipse.ui.commands"> |
---|
| 81 | <command |
---|
| 82 | description="Trigger expensive validation" |
---|
| 83 | id="de.ugoe.cs.swe.bnftools.Ebnf.validate" |
---|
| 84 | name="Validate"> |
---|
| 85 | </command> |
---|
| 86 | </extension> |
---|
| 87 | <extension point="org.eclipse.ui.menus"> |
---|
| 88 | <menuContribution |
---|
| 89 | locationURI="popup:#TextEditorContext?after=group.edit"> |
---|
| 90 | <command |
---|
| 91 | commandId="de.ugoe.cs.swe.bnftools.Ebnf.validate" |
---|
| 92 | style="push" |
---|
| 93 | tooltip="Trigger expensive validation"> |
---|
| 94 | <visibleWhen checkEnabled="false"> |
---|
| 95 | <reference |
---|
| 96 | definitionId="de.ugoe.cs.swe.bnftools.Ebnf.Editor.opened"> |
---|
| 97 | </reference> |
---|
| 98 | </visibleWhen> |
---|
| 99 | </command> |
---|
| 100 | </menuContribution> |
---|
| 101 | </extension> |
---|
| 102 | <extension point="org.eclipse.ui.menus"> |
---|
| 103 | <menuContribution locationURI="popup:#TextEditorContext?endof=group.find"> |
---|
| 104 | <command commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
---|
| 105 | <visibleWhen checkEnabled="false"> |
---|
| 106 | <reference definitionId="de.ugoe.cs.swe.bnftools.Ebnf.Editor.opened"> |
---|
| 107 | </reference> |
---|
| 108 | </visibleWhen> |
---|
| 109 | </command> |
---|
| 110 | </menuContribution> |
---|
| 111 | </extension> |
---|
| 112 | <extension point="org.eclipse.ui.handlers"> |
---|
| 113 | <handler |
---|
| 114 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" |
---|
| 115 | commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
---|
| 116 | <activeWhen> |
---|
| 117 | <reference |
---|
| 118 | definitionId="de.ugoe.cs.swe.bnftools.Ebnf.Editor.opened"> |
---|
| 119 | </reference> |
---|
| 120 | </activeWhen> |
---|
| 121 | </handler> |
---|
| 122 | </extension> |
---|
| 123 | |
---|
| 124 | <!-- adding resource factories --> |
---|
| 125 | |
---|
| 126 | <extension |
---|
| 127 | point="org.eclipse.emf.ecore.extension_parser"> |
---|
| 128 | <parser |
---|
| 129 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
---|
| 130 | type="bnf"> |
---|
| 131 | </parser> |
---|
| 132 | </extension> |
---|
| 133 | <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
---|
| 134 | <resourceServiceProvider |
---|
| 135 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
---|
| 136 | uriExtension="bnf"> |
---|
| 137 | </resourceServiceProvider> |
---|
| 138 | </extension> |
---|
| 139 | |
---|
| 140 | |
---|
| 141 | |
---|
| 142 | |
---|
| 143 | <!-- Quick Outline --> |
---|
| 144 | <extension |
---|
| 145 | point="org.eclipse.ui.handlers"> |
---|
| 146 | <handler |
---|
| 147 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" |
---|
| 148 | commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> |
---|
| 149 | <activeWhen> |
---|
| 150 | <reference |
---|
| 151 | definitionId="de.ugoe.cs.swe.bnftools.Ebnf.Editor.opened"> |
---|
| 152 | </reference> |
---|
| 153 | </activeWhen> |
---|
| 154 | </handler> |
---|
| 155 | </extension> |
---|
| 156 | <extension |
---|
| 157 | point="org.eclipse.ui.commands"> |
---|
| 158 | <command |
---|
| 159 | description="Open the quick outline." |
---|
| 160 | id="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
---|
| 161 | name="Quick Outline"> |
---|
| 162 | </command> |
---|
| 163 | </extension> |
---|
| 164 | <extension point="org.eclipse.ui.menus"> |
---|
| 165 | <menuContribution |
---|
| 166 | locationURI="popup:#TextEditorContext?after=group.open"> |
---|
| 167 | <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
---|
| 168 | style="push" |
---|
| 169 | tooltip="Open Quick Outline"> |
---|
| 170 | <visibleWhen checkEnabled="false"> |
---|
| 171 | <reference definitionId="de.ugoe.cs.swe.bnftools.Ebnf.Editor.opened"/> |
---|
| 172 | </visibleWhen> |
---|
| 173 | </command> |
---|
| 174 | </menuContribution> |
---|
| 175 | </extension> |
---|
| 176 | <!-- quickfix marker resolution generator --> |
---|
| 177 | <extension |
---|
| 178 | point="org.eclipse.ui.ide.markerResolution"> |
---|
| 179 | <markerResolutionGenerator |
---|
| 180 | class="de.ugoe.cs.swe.bnftools.ui.EbnfExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"> |
---|
| 181 | </markerResolutionGenerator> |
---|
| 182 | </extension> |
---|
| 183 | |
---|
| 184 | </plugin> |
---|