mparker | 7ef8847 | 2009-07-18 01:09:32 +0000 | [diff] [blame] | 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="org.eclipse.amp.amf.parameters.AParExecutableExtensionFactory:org.eclipse.xtext.ui.core.editor.XtextEditor" |
| 10 | contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" |
| 11 | default="true" |
| 12 | extensions="apar" |
| 13 | id="org.eclipse.amp.amf.parameters.APar" |
| 14 | name="APar Editor"> |
| 15 | </editor> |
| 16 | </extension> |
| 17 | <extension |
| 18 | point="org.eclipse.ui.handlers"> |
| 19 | <handler |
| 20 | class="org.eclipse.amp.amf.parameters.AParExecutableExtensionFactory:org.eclipse.xtext.ui.common.editor.hyperlinking.OpenDeclarationHandler" |
| 21 | commandId="org.eclipse.xtext.ui.common.editor.hyperlinking.OpenDeclaration"> |
| 22 | <activeWhen> |
| 23 | <reference |
| 24 | definitionId="org.eclipse.amp.amf.parameters.APar.Editor.opened"> |
| 25 | </reference> |
| 26 | </activeWhen> |
| 27 | </handler> |
| 28 | <handler |
| 29 | class="org.eclipse.amp.amf.parameters.AParExecutableExtensionFactory:org.eclipse.xtext.ui.core.editor.handler.ValidateActionHandler" |
| 30 | commandId="org.eclipse.amp.amf.parameters.APar.validate"> |
| 31 | <activeWhen> |
| 32 | <reference |
| 33 | definitionId="org.eclipse.amp.amf.parameters.APar.Editor.opened"> |
| 34 | </reference> |
| 35 | </activeWhen> |
| 36 | </handler> |
| 37 | </extension> |
| 38 | <extension point="org.eclipse.core.expressions.definitions"> |
| 39 | <definition id="org.eclipse.amp.amf.parameters.APar.Editor.opened"> |
| 40 | <and> |
| 41 | <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> |
| 42 | <with variable="activeEditor"> |
| 43 | <test property="org.eclipse.xtext.ui.core.editor.XtextEditor.languageName" |
| 44 | value="org.eclipse.amp.amf.parameters.APar" |
| 45 | forcePluginActivation="true"/> |
| 46 | </with> |
| 47 | </and> |
| 48 | </definition> |
| 49 | </extension> |
| 50 | <extension |
| 51 | point="org.eclipse.ui.preferencePages"> |
| 52 | <page |
| 53 | class="org.eclipse.amp.amf.parameters.AParExecutableExtensionFactory:org.eclipse.xtext.ui.core.editor.preferences.LanguageRootPreferencePage" |
| 54 | id="org.eclipse.amp.amf.parameters.APar" |
| 55 | name="APar" |
| 56 | category="org.eclipse.xtext.languages"> |
| 57 | <keywordReference id="org.eclipse.amp.amf.parameters.ui.keyword_APar"/> |
| 58 | </page> |
| 59 | <page |
| 60 | category="org.eclipse.amp.amf.parameters.APar" |
| 61 | class="org.eclipse.amp.amf.parameters.AParExecutableExtensionFactory:org.eclipse.xtext.ui.common.editor.syntaxcoloring.SyntaxColoringPreferencePage" |
| 62 | id="org.eclipse.amp.amf.parameters.APar.coloring" |
| 63 | name="Syntax Coloring"> |
| 64 | <keywordReference id="org.eclipse.amp.amf.parameters.ui.keyword_APar"/> |
| 65 | </page> |
| 66 | <page |
| 67 | category="org.eclipse.amp.amf.parameters.APar" |
| 68 | class="org.eclipse.amp.amf.parameters.AParExecutableExtensionFactory:org.eclipse.xtext.ui.common.editor.templates.XtextTemplatePreferencePage" |
| 69 | id="org.eclipse.amp.amf.parameters.APar.templates" |
| 70 | name="Templates"> |
| 71 | <keywordReference id="org.eclipse.amp.amf.parameters.ui.keyword_APar"/> |
| 72 | </page> |
| 73 | </extension> |
| 74 | <extension |
| 75 | point="org.eclipse.ui.keywords"> |
| 76 | <keyword |
| 77 | id="org.eclipse.amp.amf.parameters.ui.keyword_APar" |
| 78 | label="APar"/> |
| 79 | </extension> |
| 80 | <extension |
| 81 | point="org.eclipse.ui.commands"> |
| 82 | <command |
| 83 | description="Trigger expensive validation" |
| 84 | id="org.eclipse.amp.amf.parameters.APar.validate" |
| 85 | name="Validate"> |
| 86 | </command> |
| 87 | </extension> |
| 88 | <extension point="org.eclipse.ui.menus"> |
| 89 | <menuContribution |
| 90 | locationURI="popup:#TextEditorContext?after=group.open"> |
| 91 | <command |
| 92 | commandId="org.eclipse.amp.amf.parameters.APar.validate" |
| 93 | style="push" |
| 94 | tooltip="Trigger expensive validation"> |
| 95 | <visibleWhen checkEnabled="false"> |
| 96 | <reference |
| 97 | definitionId="org.eclipse.amp.amf.parameters.APar.Editor.opened"> |
| 98 | </reference> |
| 99 | </visibleWhen> |
| 100 | </command> |
| 101 | </menuContribution> |
| 102 | </extension> |
mparker | 7ef8847 | 2009-07-18 01:09:32 +0000 | [diff] [blame] | 103 | |
| 104 | <!-- adding resource factories --> |
| 105 | |
| 106 | <extension |
| 107 | point="org.eclipse.emf.ecore.extension_parser"> |
| 108 | <parser |
| 109 | class="org.eclipse.amp.amf.parameters.AParExecutableExtensionFactory:org.eclipse.xtext.resource.XtextResourceFactory" |
| 110 | type="apar"> |
| 111 | </parser> |
| 112 | </extension> |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | </plugin> |