| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.0"?> |
| |
| <plugin> |
| |
| <extension |
| point="org.eclipse.ui.editors"> |
| <editor |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" |
| contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" |
| default="true" |
| extensions="oclstdlib" |
| icon="icons/OCLModelFile.gif" |
| id="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib" |
| name="%MF_OCLstdlibEditor"> |
| <contentTypeBinding contentTypeId="org.eclipse.ocl.xtext.OCLstdlib"/> |
| </editor> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler" |
| commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| <handler |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" |
| commandId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.validate"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| </extension> |
| <extension point="org.eclipse.core.expressions.definitions"> |
| <definition id="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.Editor.opened"> |
| <and> |
| <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> |
| <with variable="activeEditor"> |
| <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" |
| value="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib" |
| forcePluginActivation="true"/> |
| </with> |
| </and> |
| </definition> |
| <definition id="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.XtextEditor.opened"> |
| <and> |
| <reference definitionId="isXtextEditorActive"/> |
| <with variable="activeEditor"> |
| <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" |
| value="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib" |
| forcePluginActivation="true"/> |
| </with> |
| </and> |
| </definition> |
| </extension> |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <!--page |
| category="org.eclipse.ocl.common.ui.preferences.ProjectPreferencePage" |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" |
| id="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib" |
| name="%MF_OCLstdlib"> |
| <keywordReference id="org.eclipse.ocl.xtext.oclstdlib.ui.keyword_OCLstdlib"/> |
| </page--> |
| <page |
| category="org.eclipse.ocl.common.ui.preferences.SyntaxColoringPreferencePage" |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" |
| id="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.coloring" |
| name="%MF_OCLstdlib"> |
| <keywordReference id="org.eclipse.ocl.xtext.oclstdlib.ui.keyword_OCLstdlib"/> |
| </page> |
| <page |
| category="org.eclipse.ocl.common.ui.preferences.TemplatePreferencePage" |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" |
| id="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.templates" |
| name="%MF_OCLstdlib"> |
| <keywordReference id="org.eclipse.ocl.xtext.oclstdlib.ui.keyword_OCLstdlib"/> |
| </page> |
| </extension> |
| <extension |
| point="org.eclipse.ui.keywords"> |
| <keyword |
| id="org.eclipse.ocl.xtext.oclstdlib.ui.keyword_OCLstdlib" |
| label="%MF_OCLstdlib"/> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| description="%MF_TriggerExpensiveValidation" |
| id="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.validate" |
| name="%MF_Validate"> |
| </command> |
| </extension> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:#OCLstdlibEditorContext?after=group.edit"> |
| <command |
| commandId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.validate" |
| style="push" |
| tooltip="%MF_TriggerExpensiveValidation"> |
| <visibleWhen checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution locationURI="popup:#OCLstdlibEditorContext?endof=group.find"> |
| <command commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
| <visibleWhen checkEnabled="false"> |
| <reference definitionId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <extension point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" |
| commandId="org.eclipse.xtext.ui.editor.FindReferences"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| </extension> |
| |
| <!-- adding resource factories --> |
| |
| <extension |
| point="org.eclipse.emf.ecore.extension_parser"> |
| <parser |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" |
| type="oclstdlib"> |
| </parser> |
| </extension> |
| <!--extension point="org.eclipse.xtext.extension_resourceServiceProvider"> |
| <resourceServiceProvider |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider" |
| uriExtension="oclstdlib"> |
| </resourceServiceProvider> |
| </extension--> |
| |
| |
| <!-- marker definitions for org.eclipse.ocl.xtext.oclstdlib.OCLstdlib --> |
| <extension point="org.eclipse.core.resources.markers" |
| id="Marker" name="%MF_Problem"> |
| <super type="org.eclipse.ocl.xtext.base.ui.Marker"/> |
| <persistent value="true"/> |
| </extension> |
| |
| <!-- Quick Outline --> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" |
| commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.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:#OCLstdlibEditorContext?after=group.open"> |
| <command commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline" |
| style="push" |
| tooltip="%MF_OpenQuickOutline"> |
| <visibleWhen checkEnabled="false"> |
| <reference definitionId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.Editor.opened"/> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| <!-- quickfix marker resolution generator for org.eclipse.ocl.xtext.oclstdlib.OCLstdlib --> |
| <extension |
| point="org.eclipse.ui.ide.markerResolution"> |
| <markerResolutionGenerator |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" |
| markerType="org.eclipse.ocl.xtext.oclstdlib.ui.Marker"> |
| <attribute |
| name="FIXABLE_KEY" |
| value="true"> |
| </attribute> |
| </markerResolutionGenerator> |
| </extension> |
| <!-- Rename Refactoring> |
| <extension point="org.eclipse.ui.handlers"> |
| <handler |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RenameElementHandler" |
| commandId="org.eclipse.xtext.ui.refactoring.RenameElement"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.Editor.opened"> |
| </reference> |
| </activeWhen> |
| </handler> |
| </extension> |
| <extension point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="popup:#OCLstdlibEditorContext?after=group.edit"> |
| <command commandId="org.eclipse.xtext.ui.refactoring.RenameElement" |
| style="push"> |
| <visibleWhen checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.ocl.xtext.oclstdlib.OCLstdlib.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </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.ocl.xtext.oclstdlib.OCLstdlib.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.ocl.xtext.oclstdlib.OCLstdlib.Editor.opened"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| |
| <extension point="org.eclipse.ui.newWizards"> |
| <wizard id="org.eclipse.ocl.xtext.oclstdlib.ui.OCLstdlibFileNewWizard" |
| category="org.eclipse.ocl.ui.wizards" |
| class="org.eclipse.ocl.xtext.oclstdlib.ui.wizards.OCLstdlibFileNewWizard" |
| icon="icons/OCLModelFile.gif" |
| name="%MF_OCLSTDLIB_WIZARD_NAME" |
| project="false"> |
| <description> |
| %MF_OCLSTDLIB_WIZARD_DESCRIPTION |
| </description> |
| </wizard> |
| </extension> |
| |
| </plugin> |