diff options
author | 2021-08-03 18:42:39 +0900 | |
---|---|---|
committer | 2021-08-06 19:32:38 +0900 | |
commit | be4f78978faba3d3ceb88df02a7f93a2e09ff1e0 (patch) | |
tree | 1f3f1a96251ac4f655c8a96fc33d5d4ee779cd06 /rba.tool.editor.ui/plugin.xml | |
parent | 71ca7c6cab863767ef30c8bd05b2bbfda8731cb5 (diff) |
Initial commit
Bug-AGL: SPEC-4033
Signed-off-by: Kenji Hosokawa <khosokawa@jp.adit-jv.com>
Diffstat (limited to 'rba.tool.editor.ui/plugin.xml')
-rw-r--r-- | rba.tool.editor.ui/plugin.xml | 500 |
1 files changed, 500 insertions, 0 deletions
diff --git a/rba.tool.editor.ui/plugin.xml b/rba.tool.editor.ui/plugin.xml new file mode 100644 index 0000000..734ec32 --- /dev/null +++ b/rba.tool.editor.ui/plugin.xml @@ -0,0 +1,500 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?eclipse version="3.0"?> +<plugin> + <!-- + <extension + point="org.eclipse.ui.editors"> + <editor + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" + contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" + default="true" + extensions="rba" + id="rba.tool.editor.RBAModel" + name="RBAModel Editor"> + </editor> + </extension> + --> + <extension + point="org.eclipse.ui.editors"> + <editor + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor" + contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" + default="true" + extensions="rba" + id="rba.tool.editor.RBAModel" + name="RBAModel Editor"> + </editor> + </extension> + + <extension + point="org.eclipse.ui.handlers"> + <handler + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclarationHandler" + commandId="org.eclipse.xtext.ui.editor.hyperlinking.OpenDeclaration"> + <activeWhen> + <reference + definitionId="rba.tool.editor.RBAModel.Editor.opened"> + </reference> + </activeWhen> + </handler> + <handler + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.handler.ValidateActionHandler" + commandId="rba.tool.editor.RBAModel.validate"> + <activeWhen> + <reference + definitionId="rba.tool.editor.RBAModel.Editor.opened"> + </reference> + </activeWhen> + </handler> + <!-- copy qualified name --> + <handler + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedNameHandler" + commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.EditorCopyQualifiedName"> + <activeWhen> + <reference definitionId="rba.tool.editor.RBAModel.Editor.opened" /> + </activeWhen> + </handler> + <handler + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedNameHandler" + commandId="org.eclipse.xtext.ui.editor.copyqualifiedname.OutlineCopyQualifiedName"> + <activeWhen> + <and> + <reference definitionId="rba.tool.editor.RBAModel.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="rba.tool.editor.RBAModel.Editor.opened"> + <and> + <reference definitionId="isActiveEditorAnInstanceOfXtextEditor"/> + <with variable="activeEditor"> + <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" + value="rba.tool.editor.RBAModel" + forcePluginActivation="true"/> + </with> + </and> + </definition> + <definition id="rba.tool.editor.RBAModel.XtextEditor.opened"> + <and> + <reference definitionId="isXtextEditorActive"/> + <with variable="activeEditor"> + <test property="org.eclipse.xtext.ui.editor.XtextEditor.languageName" + value="rba.tool.editor.RBAModel" + forcePluginActivation="true"/> + </with> + </and> + </definition> + </extension> + <extension + point="org.eclipse.ui.preferencePages"> + <page + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" + id="rba.tool.editor.RBAModel" + name="RBATool"> + <keywordReference id="rba.tool.editor.ui.keyword_RBAModel"/> + </page> + <page + category="rba.tool.editor.RBAModel" + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.syntaxcoloring.SyntaxColoringPreferencePage" + id="rba.tool.editor.RBAModel.coloring" + name="Syntax Coloring"> + <keywordReference id="rba.tool.editor.ui.keyword_RBAModel"/> + </page> + <page + category="rba.tool.editor.RBAModel" + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage" + id="rba.tool.editor.RBAModel.templates" + name="Templates"> + <keywordReference id="rba.tool.editor.ui.keyword_RBAModel"/> + </page> + + <!-- RBA Record Data --> + <page + category="rba.tool.editor.RBAModel" + class="rba.tool.editor.ui.recordandplay.RBASimulationRecordPage" + id="rba.tool.editor.ui.record.simulation" + name="Record Simulation"> + <keywordReference + id="rba.tool.editor.ui.keyword_RBAModel"> + </keywordReference> + </page> +<!-- comment out because this feature has memory leak + <page + category="rba.tool.editor.RBAModel" + class="rba.tool.editor.ui.coverage.TCLogFormatPreferencePage" + id="rba.tool.editor.ui.coverage.tclogFormat" + name="Default tclog Format"> + <keywordReference + id="rba.tool.editor.ui.keyword_RBAModel"> + </keywordReference> + </page> +--> + </extension> + <extension + point="org.eclipse.ui.propertyPages"> + <page + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.preferences.LanguageRootPreferencePage" + id="rba.tool.editor.RBAModel" + name="RBATool"> + <keywordReference id="rba.tool.editor.ui.keyword_RBAModel"/> + <enabledWhen> + <adapt type="org.eclipse.core.resources.IProject"/> + </enabledWhen> + <filter name="projectNature" value="org.eclipse.xtext.ui.shared.xtextNature"/> + </page> + <page + category="rba.tool.editor.RBAModel" + class="rba.tool.editor.ui.properties.RBAServerPropertySettingPage" + id="rba.tool.editor.ui.RBAServer" + name="RBAServer"> + <keywordReference + id="rba.tool.editor.ui.keyword_RBAModel"> + </keywordReference> + </page> + </extension> + <extension + point="org.eclipse.ui.keywords"> + <keyword + id="rba.tool.editor.ui.keyword_RBAModel" + label="RBAModel"/> + </extension> + <extension + point="org.eclipse.ui.commands"> + <command + description="Trigger expensive validation" + id="rba.tool.editor.RBAModel.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="rba.tool.editor.RBAModel.validate" + style="push" + tooltip="Trigger expensive validation"> + <visibleWhen checkEnabled="false"> + <reference + definitionId="rba.tool.editor.RBAModel.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="rba.tool.editor.RBAModel.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="rba.tool.editor.RBAModel.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="rba.tool.editor.RBAModel.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="rba.tool.editor.RBAModel.Editor.opened"> + </reference> + </visibleWhen> + </command> + </menuContribution> + </extension> + <extension point="org.eclipse.ui.handlers"> + <handler + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.findrefs.FindReferencesHandler" + commandId="org.eclipse.xtext.ui.editor.FindReferences"> + <activeWhen> + <reference + definitionId="rba.tool.editor.RBAModel.Editor.opened"> + </reference> + </activeWhen> + </handler> + </extension> + <!-- adding resource factories --> + <extension + point="org.eclipse.emf.ecore.extension_parser"> + <parser + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory" + type="rba"> + </parser> + </extension> + <extension point="org.eclipse.xtext.extension_resourceServiceProvider"> + <resourceServiceProvider + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:rba.tool.editor.ui.resource.RBAModelResourceUIServiceProvider" + uriExtension="rba"> + </resourceServiceProvider> + </extension> + <!-- marker definitions for rba.tool.editor.RBAModel --> + <extension + id="rbamodel.check.fast" + name="RBAModel Problem" + point="org.eclipse.core.resources.markers"> + <super type="org.eclipse.xtext.ui.check.fast"/> + <persistent value="true"/> + </extension> + <extension + id="rbamodel.check.normal" + name="RBAModel Problem" + point="org.eclipse.core.resources.markers"> + <super type="org.eclipse.xtext.ui.check.normal"/> + <persistent value="true"/> + </extension> + <extension + id="rbamodel.check.expensive" + name="RBAModel 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="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.builder.IXtextBuilderParticipant" + fileExtensions="rba"/> + </extension> + <extension point="org.eclipse.ui.preferencePages"> + <page + category="rba.tool.editor.RBAModel" + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" + id="rba.tool.editor.RBAModel.compiler.preferencePage" + name="Compiler"> + <keywordReference id="rba.tool.editor.ui.keyword_RBAModel"/> + </page> + </extension> + <extension point="org.eclipse.ui.propertyPages"> + <page + category="rba.tool.editor.RBAModel" + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.builder.preferences.BuilderPreferencePage" + id="rba.tool.editor.RBAModel.compiler.propertyPage" + name="Compiler"> + <keywordReference id="rba.tool.editor.ui.keyword_RBAModel"/> + <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="rba.tool.editor.RBAModel.OpenGeneratedCode" + style="push"> + <visibleWhen checkEnabled="false"> + <reference definitionId="rba.tool.editor.RBAModel.Editor.opened" /> + </visibleWhen> + </command> + </menuContribution> + </extension> + <extension point="org.eclipse.ui.handlers"> + <handler + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.generator.trace.OpenGeneratedFileHandler" + commandId="org.eclipse.xtext.ui.OpenGeneratedFileCommand"> + <activeWhen> + <reference definitionId="rba.tool.editor.RBAModel.Editor.opened" /> + </activeWhen> + </handler> + </extension> + <!-- Quick Outline --> + <extension + point="org.eclipse.ui.handlers"> + <handler + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.outline.quickoutline.ShowQuickOutlineActionHandler" + commandId="org.eclipse.xtext.ui.editor.outline.QuickOutline"> + <activeWhen> + <reference + definitionId="rba.tool.editor.RBAModel.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="rba.tool.editor.RBAModel.Editor.opened"/> + </visibleWhen> + </command> + </menuContribution> + </extension> + <!-- quickfix marker resolution generator for rba.tool.editor.RBAModel --> + <extension + point="org.eclipse.ui.ide.markerResolution"> + <markerResolutionGenerator + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" + markerType="rba.tool.editor.ui.rbamodel.check.fast"> + <attribute + name="FIXABLE_KEY" + value="true"> + </attribute> + </markerResolutionGenerator> + <markerResolutionGenerator + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" + markerType="rba.tool.editor.ui.rbamodel.check.normal"> + <attribute + name="FIXABLE_KEY" + value="true"> + </attribute> + </markerResolutionGenerator> + <markerResolutionGenerator + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.quickfix.MarkerResolutionGenerator" + markerType="rba.tool.editor.ui.rbamodel.check.expensive"> + <attribute + name="FIXABLE_KEY" + value="true"> + </attribute> + </markerResolutionGenerator> + </extension> + <!-- Rename Refactoring --> + <extension point="org.eclipse.ui.handlers"> + <handler + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.DefaultRenameElementHandler" + commandId="org.eclipse.xtext.ui.refactoring.RenameElement"> + <activeWhen> + <reference + definitionId="rba.tool.editor.RBAModel.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="rba.tool.editor.RBAModel.Editor.opened"> + </reference> + </visibleWhen> + </command> + </menuContribution> + </extension> + <extension point="org.eclipse.ui.preferencePages"> + <page + category="rba.tool.editor.RBAModel" + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferencePage" + id="rba.tool.editor.RBAModel.refactoring" + name="Refactoring"> + <keywordReference id="rba.tool.editor.ui.keyword_RBAModel"/> + </page> + </extension> + <extension point="org.eclipse.compare.contentViewers"> + <viewer id="rba.tool.editor.RBAModel.compare.contentViewers" + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" + extensions="rba"> + </viewer> + </extension> + <extension point="org.eclipse.compare.contentMergeViewers"> + <viewer id="rba.tool.editor.RBAModel.compare.contentMergeViewers" + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.compare.InjectableViewerCreator" + extensions="rba" label="RBAModel Compare"> + </viewer> + </extension> + <extension point="org.eclipse.ui.editors.documentProviders"> + <provider id="rba.tool.editor.RBAModel.editors.documentProviders" + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:org.eclipse.xtext.ui.editor.model.XtextDocumentProvider" + extensions="rba"> + </provider> + </extension> + <extension point="org.eclipse.team.core.fileTypes"> + <fileTypes + extension="rba" + type="text"> + </fileTypes> + </extension> + <extension + point="org.eclipse.ui.newWizards"> + <category + name="RBA Tool" + id="RbaProjectCategory"> + </category> + + <wizard + category="RbaProjectCategory" + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:rba.tool.editor.ui.wizard.RBAModelNewProjectWizardEx" + id="rba.tool.editor.ui.wizard.RBAModelNewProjectWizard" + name="RBAModel Project Sample" + icon="icons/newProject.gif" + project="true"> + </wizard> + <wizard + category="RbaProjectCategory" + class="rba.tool.editor.ui.RBAModelExecutableExtensionFactory:rba.tool.editor.ui.wizard.RBAEmptyModelNewProjectWizardEx" + icon="icons/newProject.gif" + id="rba.tool.editor.ui.wizard.RBAEmptyModelNewProjectWizardEx" + name="Empty RBAModel Project" + project="true"> + </wizard> + </extension> + <extension + point="org.eclipse.ui.navigator.navigatorContent"> + <commonWizard + menuGroupId="rba.tool.core.isResource" + type="new" + wizardId="rba.tool.editor.ui.wizard.RBAModelNewProjectWizard"> + <enablement></enablement> + </commonWizard> + <commonWizard + menuGroupId="rba.tool.core.isResource" + type="new" + wizardId="rba.tool.editor.ui.wizard.RBAEmptyModelNewProjectWizardEx"> + <enablement></enablement> + </commonWizard> + </extension> + <extension + point="org.eclipse.xtext.ui.shared.overridingGuiceModule"> + <module + class="rba.tool.editor.ui.template.RBATemplateApplyModule"> + </module> + </extension> +</plugin> |