blob: 1391ed32e680280d1bd9a3cb7a0173153c2b2a41 [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"
icon="icons/QVTrModelFile.gif"
id="org.eclipse.qvtd.xtext.qvtrelation.QVTrelation"
name="%MF_QVTrelationEditor">
</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:#TextEditorContext?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:#TextEditorContext?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
id="qvtrelation.check.fast"
name="%MF_Problem"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.xtext.ui.check.fast"/>
<persistent value="true"/>
</extension>
<extension
id="qvtrelation.check.normal"
name="%MF_Problem"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.xtext.ui.check.normal"/>
<persistent value="true"/>
</extension>
<extension
id="qvtrelation.check.expensive"
name="%MF_Problem"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.xtext.ui.check.expensive"/>
<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:#TextEditorContext?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.qvtrelation.check.fast">
<attribute
name="FIXABLE_KEY"
value="true">
</attribute>
</markerResolutionGenerator>
<markerResolutionGenerator
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
markerType="org.eclipse.qvtd.xtext.qvtrelation.ui.qvtrelation.check.normal">
<attribute
name="FIXABLE_KEY"
value="true">
</attribute>
</markerResolutionGenerator>
<markerResolutionGenerator
class="org.eclipse.qvtd.xtext.qvtrelation.ui.QVTrelationExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
markerType="org.eclipse.qvtd.xtext.qvtrelation.ui.qvtrelation.check.expensive">
<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>