| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.0"?> |
| |
| <plugin> |
| |
| <extension |
| point="org.eclipse.ui.editors"> |
| <editor |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" |
| contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" |
| default="true" |
| extensions="qvtc,qvtcas" |
| icon="icons/QVTcModelFile.gif" |
| id="org.eclipse.qvtd.xtext.qvtcore.QVTcore" |
| name="%MF_QVTcoreEditor"> |
| <contentTypeBinding contentTypeId="org.eclipse.qvtd.xtext.qvtcore"/> |
| </editor> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler" |
| commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| <handler |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" |
| commandId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.validate"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| </extension> |
| <extension point="org.eclipse.core.expressions.definitions"> |
| <definition id="org.eclipse.qvtd.xtext.qvtcore.QVTcore.Editor.opened"> |
| <and> |
| <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> |
| <with variable="activeEditor"> |
| <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" |
| value="org.eclipse.qvtd.xtext.qvtcore.QVTcore" |
| forcePluginActivation="true"/> |
| </with> |
| </and> |
| </definition> |
| <definition id="org.eclipse.qvtd.xtext.qvtcore.QVTcore.XtextEditor.opened"> |
| <and> |
| <reference definitionId="isXtextEditorActive"/> |
| <with variable="activeEditor"> |
| <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" |
| value="org.eclipse.qvtd.xtext.qvtcore.QVTcore" |
| forcePluginActivation="true"/> |
| </with> |
| </and> |
| </definition> |
| </extension> |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <!--page |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" |
| id="org.eclipse.qvtd.xtext.qvtcore.QVTcore" |
| name="%MF_QVTcore"> |
| <keywordReference id="org.eclipse.qvtd.xtext.qvtcore.ui.keyword_QVTcore"/> |
| </page--> |
| <page |
| category="org.eclipse.qvtd.preferences.SyntaxColoringPreferencePage" |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" |
| id="org.eclipse.qvtd.xtext.qvtcore.QVTcore.coloring" |
| name="%MF_QVTcore"> |
| <keywordReference id="org.eclipse.qvtd.xtext.qvtcore.ui.keyword_QVTcore"/> |
| </page> |
| <page |
| category="org.eclipse.qvtd.preferences.TemplatePreferencePage" |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" |
| id="org.eclipse.qvtd.xtext.qvtcore.QVTcore.templates" |
| name="%MF_QVTcore"> |
| <keywordReference id="org.eclipse.qvtd.xtext.qvtcore.ui.keyword_QVTcore"/> |
| </page> |
| </extension> |
| <extension |
| point="org.eclipse.ui.keywords"> |
| <keyword |
| id="org.eclipse.qvtd.xtext.qvtcore.ui.keyword_QVTcore" |
| label="%MF_QVTcore"/> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| description="%MF_TriggerExpensiveValidation" |
| id="org.eclipse.qvtd.xtext.qvtcore.QVTcore.validate" |
| name="%MF_Validate"> |
| </command> |
| </extension> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:#QVTcoreEditorContext?after=group.edit"> |
| <command |
| commandId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.validate" |
| style="push" |
| tooltip="%MF_TriggerExpensiveValidation"> |
| <visibleWhen checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution locationURI="popup:#QVTcoreEditorContext?endof=group.find"> |
| <command commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
| <visibleWhen checkEnabled="false"> |
| <reference definitionId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <extension point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" |
| commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| </extension> |
| |
| <!-- adding resource factories --> |
| |
| <extension |
| point="org.eclipse.emf.ecore.extension_parser"> |
| <parser |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
| type="qvtc"> |
| </parser> |
| </extension> |
| <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
| <resourceServiceProvider |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
| uriExtension="qvtc"> |
| </resourceServiceProvider> |
| </extension> |
| |
| |
| <!-- marker definitions for org.eclipse.qvtd.xtext.qvtcore.QVTcore --> |
| <extension point="org.eclipse.core.resources.markers" |
| id="Marker" name="%MF_Problem"> |
| <super type="org.eclipse.qvtd.xtext.qvtbase.ui.Marker"/> |
| <persistent value="true"/> |
| </extension> |
| |
| <!-- Quick Outline --> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" |
| commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| description="%MF_OpenQuickOutline" |
| id="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
| name="%MF_QuickOutline"> |
| </command> |
| </extension> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:#QVTcoreEditorContext?after=group.open"> |
| <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
| style="push" |
| tooltip="MF_OpenQuickOutline"> |
| <visibleWhen checkEnabled="false"> |
| <reference definitionId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.Editor.opened"/> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <!-- quickfix marker resolution generator for org.eclipse.qvtd.xtext.qvtcore.QVTcore --> |
| <extension |
| point="org.eclipse.ui.ide.markerResolution"> |
| <markerResolutionGenerator |
| class="org.eclipse.qvtd.xtext.qvtcore.ui.QVTcoreExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" |
| markerType="org.eclipse.qvtd.xtext.qvtcore.ui.Marker"> |
| <attribute |
| name="FIXABLE_KEY" |
| value="true"> |
| </attribute> |
| </markerResolutionGenerator> |
| </extension> |
| |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution locationURI="popup:org.eclipse.ocl.xtext.base.ui.Save?after=additions"> |
| <command commandId="org.eclipse.ocl.xtext.base.ui.SaveASCommand" |
| label="%MF_Save_AS"> |
| <visibleWhen checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| <menuContribution locationURI="popup:org.eclipse.ocl.xtext.base.ui.Save?after=additions"> |
| <command commandId="org.eclipse.ocl.xtext.base.ui.SaveCSCommand" |
| label="%MF_Save_CS"> |
| <visibleWhen checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.qvtd.xtext.qvtcore.QVTcore.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| |
| </plugin> |