blob: 93b69ab38a0c4cd865b39d6370f727a0b284e3a6 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="org.eclipse.ui.editors">
<editor
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
default="true"
extensions="qvtr,qvtras"
icon="icons/QVTrModelFile.gif"
id="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation"
name="%MF_QVTrelationEditor">
<contentTypeBinding contentTypeId="org.eclipse.qvtd.xtext.qvtrelation"/>
</editor>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler"
commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
<activeWhen>
<reference
definitionId="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.Editor.opened">
</reference>
</activeWhen>
</handler>
<handler
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler"
commandId="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.validate">
<activeWhen>
<reference
definitionId="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.Editor.opened">
</reference>
</activeWhen>
</handler>
</extension>
<extension point="org.eclipse.core.expressions.definitions">
<definition id="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.Editor.opened">
<and>
<reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/>
<with variable="activeEditor">
<test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
value="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation"
forcePluginActivation="true"/>
</with>
</and>
</definition>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<!--page
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
id="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation"
name="%MF_QVTrelation">
<keywordReference id="org.eclipse.qvtd.xtext.qvtrelation.ui.keyword_QVTrelation"/>
</page-->
<page
category="org.eclipse.qvtd.preferences.SyntaxColoringPreferencePage"
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage"
id="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.coloring"
name="%MF_QVTrelation">
<keywordReference id="org.eclipse.qvtd.xtext.qvtrelation.ui.keyword_QVTrelation"/>
</page>
<page
category="org.eclipse.qvtd.preferences.TemplatePreferencePage"
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage"
id="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.templates"
name="%MF_QVTrelation">
<keywordReference id="org.eclipse.qvtd.xtext.qvtrelation.ui.keyword_QVTrelation"/>
</page>
</extension>
<extension
point="org.eclipse.ui.propertyPages">
<page
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
id="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation"
name="%MF_QVTrelation">
<keywordReference id="org.eclipse.qvtd.xtext.qvtrelation.ui.keyword_QVTrelation"/>
<enabledWhen>
<adapt type="org.eclipse.core.resources.IProject"/>
</enabledWhen>
<filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/>
</page>
</extension>
<extension
point="org.eclipse.ui.keywords">
<keyword
id="org.eclipse.qvtd.xtext.qvtrelation.ui.keyword_QVTrelation"
label="%MF_QVTrelation"/>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
description="%MF_TriggerExpensiveValidation"
id="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.validate"
name="%MF_Validate">
</command>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:#QVTrelationEditorContext?after=group.edit">
<command
commandId="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.validate"
style="push"
tooltip="%MF_TriggerExpensiveValidation">
<visibleWhen checkEnabled="false">
<reference
definitionId="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.Editor.opened">
</reference>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:#QVTrelationEditorContext?endof=group.find">
<command commandId="org.eclipse.xtext.ui.editor.FindReferences">
<visibleWhen checkEnabled="false">
<reference definitionId="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.Editor.opened">
</reference>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension point="org.eclipse.ui.handlers">
<handler
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler"
commandId="org.eclipse.xtext.ui.editor.FindReferences">
<activeWhen>
<reference
definitionId="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.Editor.opened">
</reference>
</activeWhen>
</handler>
</extension>
<!-- adding resource factories -->
<extension
point="org.eclipse.emf.ecore.extension_parser">
<parser
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
type="qvtr">
</parser>
</extension>
<extension point="org.eclipse.xtext.extension_resourceServiceProvider">
<resourceServiceProvider
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
uriExtension="qvtr">
</resourceServiceProvider>
</extension>
<!-- marker definitions for org.eclipse.qvtd.xtext.qvtrelation.QVTrelation -->
<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.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler"
commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline">
<activeWhen>
<reference
definitionId="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.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:#QVTrelationEditorContext?after=group.open">
<command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"
style="push"
tooltip="MF_QuickOutline">
<visibleWhen checkEnabled="false">
<reference definitionId="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation.Editor.opened"/>
</visibleWhen>
</command>
</menuContribution>
</extension>
<!-- quickfix marker resolution generator for org.eclipse.qvtd.xtext.qvtrelation.QVTrelation -->
<extension
point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
markerType="org.eclipse.qvtd.xtext.qvtrelation.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.qvtrelation.QVTrelation.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.qvtrelation.QVTrelation.Editor.opened">
</reference>
</visibleWhen>
</command>
</menuContribution>
</extension>
</plugin>