435 lines
16 KiB
XML
435 lines
16 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?eclipse version="3.0"?>
|
|
<plugin>
|
|
<extension
|
|
point="org.eclipse.ui.editors">
|
|
<editor
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
|
|
contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
|
|
default="true"
|
|
extensions="pdl"
|
|
id="fr.n7.simplepdl.txt.PDL"
|
|
name="PDL Editor">
|
|
</editor>
|
|
</extension>
|
|
<extension
|
|
point="org.eclipse.ui.handlers">
|
|
<handler
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler"
|
|
commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler"
|
|
commandId="fr.n7.simplepdl.txt.PDL.validate">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
<!-- copy qualified name -->
|
|
<handler
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedNameHandler"
|
|
commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName">
|
|
<activeWhen>
|
|
<reference definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened" />
|
|
</activeWhen>
|
|
</handler>
|
|
<handler
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedNameHandler"
|
|
commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName">
|
|
<activeWhen>
|
|
<and>
|
|
<reference definitionId="fr.n7.simplepdl.txt.PDL.XtextEditor.opened" />
|
|
<iterate>
|
|
<adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" />
|
|
</iterate>
|
|
</and>
|
|
</activeWhen>
|
|
</handler>
|
|
</extension>
|
|
<extension point="org.eclipse.core.expressions.definitions">
|
|
<definition id="fr.n7.simplepdl.txt.PDL.Editor.opened">
|
|
<and>
|
|
<reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/>
|
|
<with variable="activeEditor">
|
|
<test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
|
|
value="fr.n7.simplepdl.txt.PDL"
|
|
forcePluginActivation="true"/>
|
|
</with>
|
|
</and>
|
|
</definition>
|
|
<definition id="fr.n7.simplepdl.txt.PDL.XtextEditor.opened">
|
|
<and>
|
|
<reference definitionId="isXtextEditorActive"/>
|
|
<with variable="activeEditor">
|
|
<test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
|
|
value="fr.n7.simplepdl.txt.PDL"
|
|
forcePluginActivation="true"/>
|
|
</with>
|
|
</and>
|
|
</definition>
|
|
</extension>
|
|
<extension
|
|
point="org.eclipse.ui.preferencePages">
|
|
<page
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
|
|
id="fr.n7.simplepdl.txt.PDL"
|
|
name="PDL">
|
|
<keywordReference id="fr.n7.simplepdl.txt.ui.keyword_PDL"/>
|
|
</page>
|
|
<page
|
|
category="fr.n7.simplepdl.txt.PDL"
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage"
|
|
id="fr.n7.simplepdl.txt.PDL.coloring"
|
|
name="Syntax Coloring">
|
|
<keywordReference id="fr.n7.simplepdl.txt.ui.keyword_PDL"/>
|
|
</page>
|
|
<page
|
|
category="fr.n7.simplepdl.txt.PDL"
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage"
|
|
id="fr.n7.simplepdl.txt.PDL.templates"
|
|
name="Templates">
|
|
<keywordReference id="fr.n7.simplepdl.txt.ui.keyword_PDL"/>
|
|
</page>
|
|
</extension>
|
|
<extension
|
|
point="org.eclipse.ui.propertyPages">
|
|
<page
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
|
|
id="fr.n7.simplepdl.txt.PDL"
|
|
name="PDL">
|
|
<keywordReference id="fr.n7.simplepdl.txt.ui.keyword_PDL"/>
|
|
<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="fr.n7.simplepdl.txt.ui.keyword_PDL"
|
|
label="PDL"/>
|
|
</extension>
|
|
<extension
|
|
point="org.eclipse.ui.commands">
|
|
<command
|
|
description="Trigger expensive validation"
|
|
id="fr.n7.simplepdl.txt.PDL.validate"
|
|
name="Validate">
|
|
</command>
|
|
<!-- copy qualified name -->
|
|
<command
|
|
id="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
description="Copy the qualified name for the selected element"
|
|
name="Copy Qualified Name">
|
|
</command>
|
|
<command
|
|
id="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName"
|
|
categoryId="org.eclipse.ui.category.edit"
|
|
description="Copy the qualified name for the selected element"
|
|
name="Copy Qualified Name">
|
|
</command>
|
|
</extension>
|
|
<extension point="org.eclipse.ui.menus">
|
|
<menuContribution
|
|
locationURI="popup:#TextEditorContext?after=group.edit">
|
|
<command
|
|
commandId="fr.n7.simplepdl.txt.PDL.validate"
|
|
style="push"
|
|
tooltip="Trigger expensive validation">
|
|
<visibleWhen checkEnabled="false">
|
|
<reference
|
|
definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened">
|
|
</reference>
|
|
</visibleWhen>
|
|
</command>
|
|
</menuContribution>
|
|
<!-- copy qualified name -->
|
|
<menuContribution locationURI="popup:#TextEditorContext?after=copy">
|
|
<command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"
|
|
style="push" tooltip="Copy Qualified Name">
|
|
<visibleWhen checkEnabled="false">
|
|
<reference definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened" />
|
|
</visibleWhen>
|
|
</command>
|
|
</menuContribution>
|
|
<menuContribution locationURI="menu:edit?after=copy">
|
|
<command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"
|
|
style="push" tooltip="Copy Qualified Name">
|
|
<visibleWhen checkEnabled="false">
|
|
<reference definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened" />
|
|
</visibleWhen>
|
|
</command>
|
|
</menuContribution>
|
|
<menuContribution locationURI="popup:org.eclipse.xtext.ui.outline?after=additions">
|
|
<command commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName"
|
|
style="push" tooltip="Copy Qualified Name">
|
|
<visibleWhen checkEnabled="false">
|
|
<and>
|
|
<reference definitionId="fr.n7.simplepdl.txt.PDL.XtextEditor.opened" />
|
|
<iterate>
|
|
<adapt type="org.eclipse.xtext.ui.editor.outline.IOutlineNode" />
|
|
</iterate>
|
|
</and>
|
|
</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="fr.n7.simplepdl.txt.PDL.Editor.opened">
|
|
</reference>
|
|
</visibleWhen>
|
|
</command>
|
|
</menuContribution>
|
|
</extension>
|
|
<extension point="org.eclipse.ui.handlers">
|
|
<handler
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler"
|
|
commandId="org.eclipse.xtext.ui.editor.FindReferences">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
</extension>
|
|
<extension point="org.eclipse.core.contenttype.contentTypes">
|
|
<content-type
|
|
base-type="org.eclipse.core.runtime.text"
|
|
file-extensions="pdl"
|
|
id="fr.n7.simplepdl.txt.PDL.contenttype"
|
|
name="PDL File"
|
|
priority="normal">
|
|
</content-type>
|
|
</extension>
|
|
<!-- adding resource factories -->
|
|
<extension
|
|
point="org.eclipse.emf.ecore.extension_parser">
|
|
<parser
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
|
|
type="pdl">
|
|
</parser>
|
|
</extension>
|
|
<extension point="org.eclipse.xtext.extension_resourceServiceProvider">
|
|
<resourceServiceProvider
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
|
|
uriExtension="pdl">
|
|
</resourceServiceProvider>
|
|
</extension>
|
|
<!-- marker definitions for fr.n7.simplepdl.txt.PDL -->
|
|
<extension
|
|
id="pdl.check.fast"
|
|
name="PDL Problem"
|
|
point="org.eclipse.core.resources.markers">
|
|
<super type="org.eclipse.xtext.ui.check.fast"/>
|
|
<persistent value="true"/>
|
|
</extension>
|
|
<extension
|
|
id="pdl.check.normal"
|
|
name="PDL Problem"
|
|
point="org.eclipse.core.resources.markers">
|
|
<super type="org.eclipse.xtext.ui.check.normal"/>
|
|
<persistent value="true"/>
|
|
</extension>
|
|
<extension
|
|
id="pdl.check.expensive"
|
|
name="PDL Problem"
|
|
point="org.eclipse.core.resources.markers">
|
|
<super type="org.eclipse.xtext.ui.check.expensive"/>
|
|
<persistent value="true"/>
|
|
</extension>
|
|
<extension point="org.eclipse.ui.preferencePages">
|
|
<page
|
|
category="fr.n7.simplepdl.txt.PDL"
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.validation.ValidatorPreferencePage"
|
|
id="fr.n7.simplepdl.txt.PDL.validator.preferencePage"
|
|
name="Errors/Warnings">
|
|
<keywordReference id="fr.n7.simplepdl.txt.ui.keyword_PDL"/>
|
|
</page>
|
|
</extension>
|
|
<extension point="org.eclipse.xtext.builder.participant">
|
|
<participant
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant"
|
|
fileExtensions="pdl"/>
|
|
</extension>
|
|
<extension point="org.eclipse.ui.preferencePages">
|
|
<page
|
|
category="fr.n7.simplepdl.txt.PDL"
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage"
|
|
id="fr.n7.simplepdl.txt.PDL.compiler.preferencePage"
|
|
name="Compiler">
|
|
<keywordReference id="fr.n7.simplepdl.txt.ui.keyword_PDL"/>
|
|
</page>
|
|
</extension>
|
|
<extension point="org.eclipse.ui.propertyPages">
|
|
<page
|
|
category="fr.n7.simplepdl.txt.PDL"
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage"
|
|
id="fr.n7.simplepdl.txt.PDL.compiler.propertyPage"
|
|
name="Compiler">
|
|
<keywordReference id="fr.n7.simplepdl.txt.ui.keyword_PDL"/>
|
|
<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.menus">
|
|
<menuContribution locationURI="popup:#TextEditorContext?after=xtext.ui.openDeclaration">
|
|
<command
|
|
commandId="org.eclipse.xtext.ui.OpenGeneratedFileCommand"
|
|
id="fr.n7.simplepdl.txt.PDL.OpenGeneratedCode"
|
|
style="push">
|
|
<visibleWhen checkEnabled="false">
|
|
<reference definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened" />
|
|
</visibleWhen>
|
|
</command>
|
|
</menuContribution>
|
|
</extension>
|
|
<extension point="org.eclipse.ui.handlers">
|
|
<handler
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.generator.trace.OpenGeneratedFileHandler"
|
|
commandId="org.eclipse.xtext.ui.OpenGeneratedFileCommand">
|
|
<activeWhen>
|
|
<reference definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened" />
|
|
</activeWhen>
|
|
</handler>
|
|
</extension>
|
|
<!-- Quick Outline -->
|
|
<extension
|
|
point="org.eclipse.ui.handlers">
|
|
<handler
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler"
|
|
commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
</extension>
|
|
<extension
|
|
point="org.eclipse.ui.commands">
|
|
<command
|
|
description="Open the quick outline."
|
|
id="org.eclipse.xtext.ui.editor.outline.QuickOutline"
|
|
name="Quick Outline">
|
|
</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="Open Quick Outline">
|
|
<visibleWhen checkEnabled="false">
|
|
<reference definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened"/>
|
|
</visibleWhen>
|
|
</command>
|
|
</menuContribution>
|
|
</extension>
|
|
<!-- quickfix marker resolution generator for fr.n7.simplepdl.txt.PDL -->
|
|
<extension
|
|
point="org.eclipse.ui.ide.markerResolution">
|
|
<markerResolutionGenerator
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
|
|
markerType="fr.n7.simplepdl.txt.pdl.ui.pdl.check.fast">
|
|
<attribute
|
|
name="FIXABLE_KEY"
|
|
value="true">
|
|
</attribute>
|
|
</markerResolutionGenerator>
|
|
<markerResolutionGenerator
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
|
|
markerType="fr.n7.simplepdl.txt.pdl.ui.pdl.check.normal">
|
|
<attribute
|
|
name="FIXABLE_KEY"
|
|
value="true">
|
|
</attribute>
|
|
</markerResolutionGenerator>
|
|
<markerResolutionGenerator
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
|
|
markerType="fr.n7.simplepdl.txt.pdl.ui.pdl.check.expensive">
|
|
<attribute
|
|
name="FIXABLE_KEY"
|
|
value="true">
|
|
</attribute>
|
|
</markerResolutionGenerator>
|
|
</extension>
|
|
<!-- Rename Refactoring -->
|
|
<extension point="org.eclipse.ui.handlers">
|
|
<handler
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler"
|
|
commandId="org.eclipse.xtext.ui.refactoring.RenameElement">
|
|
<activeWhen>
|
|
<reference
|
|
definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened">
|
|
</reference>
|
|
</activeWhen>
|
|
</handler>
|
|
</extension>
|
|
<extension point="org.eclipse.ui.menus">
|
|
<menuContribution
|
|
locationURI="popup:#TextEditorContext?after=group.edit">
|
|
<command commandId="org.eclipse.xtext.ui.refactoring.RenameElement"
|
|
style="push">
|
|
<visibleWhen checkEnabled="false">
|
|
<reference
|
|
definitionId="fr.n7.simplepdl.txt.PDL.Editor.opened">
|
|
</reference>
|
|
</visibleWhen>
|
|
</command>
|
|
</menuContribution>
|
|
</extension>
|
|
<extension point="org.eclipse.ui.preferencePages">
|
|
<page
|
|
category="fr.n7.simplepdl.txt.PDL"
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage"
|
|
id="fr.n7.simplepdl.txt.PDL.refactoring"
|
|
name="Refactoring">
|
|
<keywordReference id="fr.n7.simplepdl.txt.ui.keyword_PDL"/>
|
|
</page>
|
|
</extension>
|
|
<extension point="org.eclipse.compare.contentViewers">
|
|
<viewer id="fr.n7.simplepdl.txt.PDL.compare.contentViewers"
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
|
|
extensions="pdl">
|
|
</viewer>
|
|
<contentTypeBinding
|
|
contentTypeId="fr.n7.simplepdl.txt.PDL.contenttype"
|
|
contentViewerId="fr.n7.simplepdl.txt.PDL.compare.contentViewers" />
|
|
</extension>
|
|
<extension point="org.eclipse.compare.contentMergeViewers">
|
|
<viewer id="fr.n7.simplepdl.txt.PDL.compare.contentMergeViewers"
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
|
|
extensions="pdl" label="PDL Compare">
|
|
</viewer>
|
|
<contentTypeBinding
|
|
contentTypeId="fr.n7.simplepdl.txt.PDL.contenttype"
|
|
contentMergeViewerId="fr.n7.simplepdl.txt.PDL.compare.contentMergeViewers" />
|
|
</extension>
|
|
<extension point="org.eclipse.ui.editors.documentProviders">
|
|
<provider id="fr.n7.simplepdl.txt.PDL.editors.documentProviders"
|
|
class="fr.n7.simplepdl.txt.ui.PDLExecutableExtensionFactory:org.eclipse.xtext.ui.editor.model.XtextDocumentProvider"
|
|
extensions="pdl">
|
|
</provider>
|
|
</extension>
|
|
<extension point="org.eclipse.team.core.fileTypes">
|
|
<fileTypes
|
|
extension="pdl"
|
|
type="text">
|
|
</fileTypes>
|
|
</extension>
|
|
</plugin>
|