<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>
<extension
point="org.eclipse.ui.editors">
<editor
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
default="true"
extensions="p4"
id="com.perforce.example.p4dsl.P4Dsl"
name="P4Dsl Editor">
</editor>
</extension>
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler"
commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration">
<activeWhen>
<reference
definitionId="com.perforce.example.p4dsl.P4Dsl.Editor.opened">
</reference>
</activeWhen>
</handler>
<handler
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler"
commandId="com.perforce.example.p4dsl.P4Dsl.validate">
<activeWhen>
<reference
definitionId="com.perforce.example.p4dsl.P4Dsl.Editor.opened">
</reference>
</activeWhen>
</handler>
</extension>
<extension point="org.eclipse.core.expressions.definitions">
<definition id="com.perforce.example.p4dsl.P4Dsl.Editor.opened">
<and>
<reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/>
<with variable="activeEditor">
<test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName"
value="com.perforce.example.p4dsl.P4Dsl"
forcePluginActivation="true"/>
</with>
</and>
</definition>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
id="com.perforce.example.p4dsl.P4Dsl"
name="P4Dsl">
<keywordReference id="com.perforce.example.p4dsl.ui.keyword_P4Dsl"/>
</page>
<page
category="com.perforce.example.p4dsl.P4Dsl"
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage"
id="com.perforce.example.p4dsl.P4Dsl.coloring"
name="Syntax Coloring">
<keywordReference id="com.perforce.example.p4dsl.ui.keyword_P4Dsl"/>
</page>
<page
category="com.perforce.example.p4dsl.P4Dsl"
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage"
id="com.perforce.example.p4dsl.P4Dsl.templates"
name="Templates">
<keywordReference id="com.perforce.example.p4dsl.ui.keyword_P4Dsl"/>
</page>
</extension>
<extension
point="org.eclipse.ui.propertyPages">
<page
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage"
id="com.perforce.example.p4dsl.P4Dsl"
name="P4Dsl">
<keywordReference id="com.perforce.example.p4dsl.ui.keyword_P4Dsl"/>
<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="com.perforce.example.p4dsl.ui.keyword_P4Dsl"
label="P4Dsl"/>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
description="Trigger expensive validation"
id="com.perforce.example.p4dsl.P4Dsl.validate"
name="Validate">
</command>
</extension>
<extension point="org.eclipse.ui.menus">
<menuContribution
locationURI="popup:#TextEditorContext?after=group.edit">
<command
commandId="com.perforce.example.p4dsl.P4Dsl.validate"
style="push"
tooltip="Trigger expensive validation">
<visibleWhen checkEnabled="false">
<reference
definitionId="com.perforce.example.p4dsl.P4Dsl.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="com.perforce.example.p4dsl.P4Dsl.Editor.opened">
</reference>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension point="org.eclipse.ui.handlers">
<handler
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler"
commandId="org.eclipse.xtext.ui.editor.FindReferences">
<activeWhen>
<reference
definitionId="com.perforce.example.p4dsl.P4Dsl.Editor.opened">
</reference>
</activeWhen>
</handler>
</extension>
<!-- adding resource factories -->
<extension
point="org.eclipse.emf.ecore.extension_parser">
<parser
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"
type="p4">
</parser>
</extension>
<extension point="org.eclipse.xtext.extension_resourceServiceProvider">
<resourceServiceProvider
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
uriExtension="p4">
</resourceServiceProvider>
</extension>
<!-- marker definitions for com.perforce.example.p4dsl.P4Dsl -->
<extension
id="p4dsl.check.fast"
name="P4Dsl Problem"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.xtext.ui.check.fast"/>
<persistent value="true"/>
</extension>
<extension
id="p4dsl.check.normal"
name="P4Dsl Problem"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.xtext.ui.check.normal"/>
<persistent value="true"/>
</extension>
<extension
id="p4dsl.check.expensive"
name="P4Dsl Problem"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.xtext.ui.check.expensive"/>
<persistent value="true"/>
</extension>
<extension
point="org.eclipse.xtext.builder.participant">
<participant
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant">
</participant>
</extension>
<extension
point="org.eclipse.ui.preferencePages">
<page
category="com.perforce.example.p4dsl.P4Dsl"
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage"
id="com.perforce.example.p4dsl.P4Dsl.compiler.preferencePage"
name="Compiler">
<keywordReference id="com.perforce.example.p4dsl.ui.keyword_P4Dsl"/>
</page>
</extension>
<extension
point="org.eclipse.ui.propertyPages">
<page
category="com.perforce.example.p4dsl.P4Dsl"
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage"
id="com.perforce.example.p4dsl.P4Dsl.compiler.propertyPage"
name="Compiler">
<keywordReference id="com.perforce.example.p4dsl.ui.keyword_P4Dsl"/>
<enabledWhen>
<adapt type="org.eclipse.core.resources.IProject"/>
</enabledWhen>
<filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/>
</page>
</extension>
<!-- Quick Outline -->
<extension
point="org.eclipse.ui.handlers">
<handler
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler"
commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline">
<activeWhen>
<reference
definitionId="com.perforce.example.p4dsl.P4Dsl.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="com.perforce.example.p4dsl.P4Dsl.Editor.opened"/>
</visibleWhen>
</command>
</menuContribution>
</extension>
<!-- quickfix marker resolution generator for com.perforce.example.p4dsl.P4Dsl -->
<extension
point="org.eclipse.ui.ide.markerResolution">
<markerResolutionGenerator
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
markerType="com.perforce.example.p4dsl.ui.p4dsl.check.fast">
<attribute
name="FIXABLE_KEY"
value="true">
</attribute>
</markerResolutionGenerator>
<markerResolutionGenerator
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
markerType="com.perforce.example.p4dsl.ui.p4dsl.check.normal">
<attribute
name="FIXABLE_KEY"
value="true">
</attribute>
</markerResolutionGenerator>
<markerResolutionGenerator
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator"
markerType="com.perforce.example.p4dsl.ui.p4dsl.check.expensive">
<attribute
name="FIXABLE_KEY"
value="true">
</attribute>
</markerResolutionGenerator>
</extension>
<!-- Rename Refactoring -->
<extension point="org.eclipse.ui.handlers">
<handler
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.IRenameElementHandler"
commandId="org.eclipse.xtext.ui.refactoring.RenameElement">
<activeWhen>
<reference
definitionId="com.perforce.example.p4dsl.P4Dsl.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="com.perforce.example.p4dsl.P4Dsl.Editor.opened">
</reference>
</visibleWhen>
</command>
</menuContribution>
</extension>
<extension point="org.eclipse.ui.preferencePages">
<page
category="com.perforce.example.p4dsl.P4Dsl"
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage"
id="com.perforce.example.p4dsl.P4Dsl.refactoring"
name="Refactoring">
<keywordReference id="com.perforce.example.p4dsl.ui.keyword_P4Dsl"/>
</page>
</extension>
<extension point="org.eclipse.compare.contentViewers">
<viewer id="com.perforce.example.p4dsl.P4Dsl.compare.contentViewers"
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
extensions="p4">
</viewer>
</extension>
<extension point="org.eclipse.compare.contentMergeViewers">
<viewer id="com.perforce.example.p4dsl.P4Dsl.compare.contentMergeViewers"
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator"
extensions="p4" label="P4Dsl Compare">
</viewer>
</extension>
<extension point="org.eclipse.ui.editors.documentProviders">
<provider id="com.perforce.example.p4dsl.P4Dsl.editors.documentProviders"
class="com.perforce.example.p4dsl.ui.P4DslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.model.XtextDocumentProvider"
extensions="p4">
</provider>
</extension>
</plugin>
# |
Change |
User |
Description |
Committed |
|
#1
|
8258 |
Liz Lam |
Initial add of p4dsl - an exploration of Xtext using the p4 command line as an example. |
|
|