| <?xml version="1.0" encoding="UTF-8"?> |
| <?eclipse version="3.4"?> |
| <!-- |
| #=============================================================================# |
| # Copyright (c) 2005, 2021 Stephan Wahlbrink and others. |
| # |
| # This program and the accompanying materials are made available under the |
| # terms of the Eclipse Public License 2.0 which is available at |
| # https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 |
| # which is available at https://www.apache.org/licenses/LICENSE-2.0. |
| # |
| # SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 |
| # |
| # Contributors: |
| # Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation |
| #=============================================================================# |
| --> |
| |
| <plugin> |
| |
| <extension |
| point="org.eclipse.statet.ltk.ModelTypes"> |
| <unitType modelTypeId="R" |
| contextKey="editor.default" |
| unitFactory="org.eclipse.statet.internal.r.ui.REditorWorkingCopyFactory"> |
| </unitType> |
| </extension> |
| <extension |
| point="org.eclipse.statet.ltk.ModelAdapters"> |
| <adapterFactory |
| modelTypeId="R" |
| class="org.eclipse.statet.internal.r.ui.RAdapterFactory"> |
| <adapter |
| type="org.eclipse.statet.ltk.ui.ElementLabelProvider"/> |
| </adapterFactory> |
| </extension> |
| |
| <extension |
| point="org.eclipse.core.runtime.preferences"> |
| <initializer class="org.eclipse.statet.internal.r.ui.RUIPreferenceInitializer"/> |
| </extension> |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <page |
| id="org.eclipse.statet.r.preferencePages.R" |
| name="%preferencePages_R_name" |
| class="org.eclipse.statet.internal.r.ui.preferences.RBasePreferencePage"> |
| <keywordReference id="org.eclipse.statet.base.keywords.StatetGeneral"/> |
| </page> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.ide.projectNatureImages"> |
| <image |
| icon="icons/ovr_16/r_project.png" |
| id="org.eclipse.statet.r.images.RProjectImage" |
| natureId="org.eclipse.statet.r.resourceProjects.R"/> |
| </extension> |
| <extension |
| point="org.eclipse.statet.autonature.AutoConfigurations"> |
| <onFileContent |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| enable="true"> |
| <ensureProjectNature |
| natureId="org.eclipse.statet.r.resourceProjects.R"/> |
| </onFileContent> |
| <onFileContent |
| contentTypeId="org.eclipse.statet.r.contentTypes.RPkgDescription" |
| enable="true"> |
| <runProjectConfigurator |
| label="R Package [StatET]" |
| natureId="org.eclipse.statet.r.resourceProjects.RPkg" |
| class="org.eclipse.statet.internal.r.ui.wizards.RPkgProjectConfigurator"> |
| </runProjectConfigurator> |
| </onFileContent> |
| </extension> |
| <extension |
| point="org.eclipse.ui.ide.projectConfigurators"> |
| <projectConfigurator |
| class="org.eclipse.statet.internal.r.ui.wizards.RPkgProjectConfigurator" |
| label="%projectConfigurators_RPackageProject_label"> |
| <activeWhen> |
| <hasFileRecursively |
| filename="DESCRIPTION"/> |
| </activeWhen> |
| </projectConfigurator> |
| </extension> |
| <extension |
| point="org.eclipse.ui.decorators"> |
| <decorator |
| id="org.eclipse.statet.r.viewerDecorators.RProjectDecorator" |
| class="org.eclipse.statet.internal.r.ui.nolazy.RResourceDecorator" |
| lightweight="true" |
| label="%decorators_RProjectDecorator_label" |
| state="true" |
| adaptable="false"> |
| <enablement> |
| <objectClass |
| name="org.eclipse.core.resources.IProject"> |
| </objectClass> |
| </enablement> |
| </decorator> |
| </extension> |
| <extension |
| point="org.eclipse.core.variables.dynamicVariables"> |
| <variable |
| name="r_pkg_root_path" |
| description="%variables_RPkgRootPath_description" |
| supportsArgument="true" |
| resolver="org.eclipse.statet.r.ui.rtool.RProjectVariableResolver"> |
| </variable> |
| <variable |
| name="r_pkg_name" |
| description="%variables_RPkgName_description" |
| supportsArgument="true" |
| resolver="org.eclipse.statet.r.ui.rtool.RProjectVariableResolver"> |
| </variable> |
| </extension> |
| <extension |
| point="org.eclipse.core.filebuffers.documentSetup"> |
| <participant |
| class="org.eclipse.statet.r.ui.editors.RdDocumentSetupParticipant" |
| contentTypeId="org.eclipse.statet.r.contentTypes.Rd"/> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.editors"> |
| <editor |
| id="org.eclipse.statet.r.editors.R" |
| class="org.eclipse.statet.internal.r.ui.editors.REditor" |
| contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" |
| default="true" |
| icon="icons/obj_16/r-file_obj.gif" |
| name="%editors.RScriptEditor.name"> |
| <contentTypeBinding contentTypeId="org.eclipse.statet.r.contentTypes.R"/> |
| </editor> |
| <editor |
| id="org.eclipse.statet.r.editors.Rd" |
| class="org.eclipse.statet.internal.r.ui.editors.RdEditor" |
| contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor" |
| default="true" |
| icon="icons/obj_16/rd-file_obj.gif" |
| name="%editors.RDocEditor.name"> |
| <contentTypeBinding contentTypeId="org.eclipse.statet.r.contentTypes.Rd"/> |
| </editor> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.editors.templates"> |
| <include |
| file="templates/default-code-templates.xml" |
| translations="templates/default-templates.properties"/> |
| <include |
| file="templates/default-reditor-templates.xml" |
| translations="templates/default-templates.properties"/> |
| </extension> |
| |
| <extension point="org.eclipse.statet.ltk.AdvancedContentAssist"> |
| <category |
| id="templates" |
| name="%contentAssist_TemplateCategory_name"> |
| </category> |
| <computer |
| id="org.eclipse.statet.r.contentAssistComputers.RTemplateCompletion" |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| categoryId="templates" |
| class="org.eclipse.statet.internal.r.ui.editors.REditorTemplateCompletionComputer"> |
| <partition |
| partitionType="R.Default"> |
| </partition> |
| <partition |
| partitionType="R.Comment"> |
| </partition> |
| <partition |
| partitionType="R.Roxygen"> |
| </partition> |
| </computer> |
| <category |
| id="paths" |
| name="%contentAssist_ResourceCategory_name"> |
| </category> |
| <computer |
| id="org.eclipse.statet.r.contentAssistComputers.RPathCompletion" |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| categoryId="paths" |
| class="org.eclipse.statet.r.ui.sourceediting.RPathCompletionComputer"> |
| <partition |
| partitionType="R.String"> |
| </partition> |
| </computer> |
| <category |
| id="R.Default" |
| name="%contentAssist_RCategory_name"> |
| </category> |
| <computer |
| id="org.eclipse.statet.r.contentAssistComputers.RCompletion" |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| categoryId="R.Default" |
| class="org.eclipse.statet.r.ui.sourceediting.RElementCompletionComputer"> |
| <partition |
| partitionType="R.Default"> |
| </partition> |
| <partition |
| partitionType="R.QuotedSymbol"> |
| </partition> |
| <partition |
| partitionType="R.String"> |
| </partition> |
| </computer> |
| <category |
| id="R.Expl.PkgNames" |
| name="%contentAssist_RPkgNameCategory_name"> |
| </category> |
| <computer |
| id="org.eclipse.statet.r.contentAssistComputers.RPkgCompletion" |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| categoryId="R.Expl.PkgNames" |
| class="org.eclipse.statet.r.ui.sourceediting.RPkgCompletionComputer"> |
| <partition |
| partitionType="R.Default"> |
| </partition> |
| <partition |
| partitionType="R.QuotedSymbol"> |
| </partition> |
| <partition |
| partitionType="R.String"> |
| </partition> |
| </computer> |
| <category |
| id="R.Expl.RuntimeElements" |
| name="%contentAssist_RRuntimeCategory_name"> |
| </category> |
| <computer |
| id="org.eclipse.statet.r.contentAssistComputers.RCompletionFromRuntime" |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| categoryId="R.Expl.RuntimeElements" |
| class="org.eclipse.statet.r.ui.sourceediting.RElementCompletionComputer$CompleteRuntime"> |
| <partition |
| partitionType="R.Default"> |
| </partition> |
| <partition |
| partitionType="R.QuotedSymbol"> |
| </partition> |
| </computer> |
| <computer |
| id="org.eclipse.statet.r.contentAssistComputers.RoxygenCompletion" |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| categoryId="R.Default" |
| class="org.eclipse.statet.internal.r.ui.editors.RoxygenCompletionComputer"> |
| <partition |
| partitionType="R.Roxygen"> |
| </partition> |
| </computer> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.statet.r.commands.InsertREditorTemplate" |
| categoryId="org.eclipse.statet.workbench.commandCategorys.Source" |
| name="%commands_InsertREditorTemplate_name" |
| description="%commands_InsertREditorTemplate_description"> |
| <commandParameter |
| id="templateId" |
| name="%commands_InsertREditorTemplate_TemplatePar_name" |
| values="org.eclipse.statet.internal.r.ui.editors.InsertREditorTemplateParameterValues"/> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| commandId="org.eclipse.statet.r.commands.InsertREditorTemplate" |
| class="org.eclipse.statet.internal.r.ui.editors.InsertREditorTemplateHandler"> |
| <enabledWhen> |
| <with |
| variable="activePart"> |
| <adapt |
| type="org.eclipse.statet.ltk.ui.sourceediting.SourceEditor"/> |
| </with> |
| </enabledWhen> |
| </handler> |
| </extension> |
| |
| <extension |
| point="org.eclipse.statet.ltk.AdvancedInfoHover"> |
| <hover |
| id="org.eclipse.statet.r.infoHovers.RCombined" |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| name="Combined Hover" |
| class="org.eclipse.statet.ltk.ui.sourceediting.assist.CombinedHover"> |
| </hover> |
| <hover |
| id="org.eclipse.statet.r.infoHovers.RHelp" |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| name="R Help" |
| class="org.eclipse.statet.internal.r.ui.rhelp.RHelpHover"> |
| </hover> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectorTargets"> |
| <target |
| id="org.eclipse.statet.r.editorHyperlinks.REditorTarget" |
| name="%editorHyperlinks.REditorTarget.name"> |
| <context |
| type="org.eclipse.statet.ltk.ui.sourceediting.SourceEditor1"> |
| </context> |
| </target> |
| </extension> |
| <extension |
| point="org.eclipse.ui.workbench.texteditor.hyperlinkDetectors"> |
| <hyperlinkDetector |
| id="org.eclipse.statet.r.editorHyperlinks.FileDetector" |
| targetId="org.eclipse.statet.r.editorHyperlinks.REditorTarget" |
| name="%editorHyperlinks.FileDetector.name" |
| class="org.eclipse.statet.internal.r.ui.editors.RFileHyperlinkDetector" |
| activate="true"> |
| </hyperlinkDetector> |
| <hyperlinkDetector |
| id="org.eclipse.statet.r.editorHyperlinks.RElementDetector" |
| targetId="org.eclipse.statet.r.editorHyperlinks.REditorTarget" |
| name="%editorHyperlinks.RElement.name" |
| class="org.eclipse.statet.internal.r.ui.editors.RElementHyperlinkDetector" |
| activate="true"> |
| </hyperlinkDetector> |
| </extension> |
| |
| <extension |
| point="org.eclipse.core.expressions.definitions"> |
| <definition |
| id="org.eclipse.statet.r.expressions.RSourceElement"> |
| <or> |
| <with |
| variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.viewers.IStructuredSelection"> |
| </instanceof> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <instanceof |
| value="org.eclipse.statet.r.core.rmodel.RLangElement"> |
| </instanceof> |
| </iterate> |
| </with> |
| <with |
| variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </or> |
| </definition> |
| <definition |
| id="org.eclipse.statet.r.expressions.isPartActive.RSourceEditor"> |
| <with |
| variable="activePart"> |
| <adapt |
| type="org.eclipse.statet.ltk.ui.sourceediting.SourceEditor"> |
| <instanceof |
| value="org.eclipse.statet.r.ui.editors.RSourceEditor"/> |
| </adapt> |
| </with> |
| </definition> |
| <definition |
| id="org.eclipse.statet.r.expressions.isEditorActive.RSourceEditor"> |
| <with |
| variable="activeEditor"> |
| <adapt |
| type="org.eclipse.statet.ltk.ui.sourceediting.SourceEditor"> |
| <instanceof |
| value="org.eclipse.statet.r.ui.editors.RSourceEditor"/> |
| </adapt> |
| </with> |
| </definition> |
| </extension> |
| <extension |
| point="org.eclipse.ui.contexts"> |
| <context |
| id="org.eclipse.statet.r.contexts.REditor" |
| parentId="org.eclipse.statet.workbench.contexts.TextEditor" |
| name="%categorys.RSource.name" |
| description="%categorys.RSource.description"> |
| </context> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <!-- navigate --> |
| <handler |
| commandId="org.eclipse.jdt.ui.edit.text.java.open.editor" |
| class="org.eclipse.statet.r.ui.sourceediting.ROpenDeclarationHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| |
| <!-- search --> |
| <handler |
| commandId="org.eclipse.statet.ltk.commands.SearchAllElementAccess" |
| class="org.eclipse.statet.r.ui.editors.RElementSearchHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.ltk.commands.SearchWriteElementAccess" |
| class="org.eclipse.statet.r.ui.editors.RElementSearchHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.bindings"> |
| <key |
| commandId="org.eclipse.statet.r.commands.InsertREditorTemplate" |
| contextId="org.eclipse.statet.r.contexts.REditor" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1+5"> |
| <parameter |
| id="templateId" |
| value="RCode.pipe.forward"/> |
| </key> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.menus"> |
| <!-- source --> |
| <menuContribution |
| locationURI="menu:org.eclipse.statet.base.menus.MainStatSource?after=comment.add"> |
| <command |
| commandId="org.eclipse.statet.ltk.commands.GenerateElementComment" |
| mnemonic="%menus_Source_GenerateElementComment_mnemonic" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.RSourceElement"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| <menuContribution |
| locationURI="menu:org.eclipse.statet.base.menus.MainStatSource?after=comment.add"> |
| <command |
| commandId="org.eclipse.statet.ltk.commands.StripComments" |
| mnemonic="%menus_Source_StripComments_mnemonic" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.RSourceElement"> |
| </reference> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| <menuContribution |
| locationURI="menu:org.eclipse.statet.base.menus.MainStatSource?after=additions"> |
| <separator |
| name="refactor" |
| visible="true"> |
| </separator> |
| <command |
| commandId="org.eclipse.statet.ltk.commands.RefactorRenameInWorkspace" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.RSourceElement"> |
| </reference> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.statet.ltk.commands.RefactorRenameInSelectedRegion" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.RSourceElement"> |
| </reference> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.statet.ltk.commands.RefactorInlineLocalVariable" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.RSourceElement"> |
| </reference> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.statet.ltk.commands.RefactorExtractLocalVariable" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.RSourceElement"> |
| </reference> |
| </visibleWhen> |
| </command> |
| <separator |
| name="refactor.methods" |
| visible="true"> |
| </separator> |
| <command |
| commandId="org.eclipse.statet.ltk.commands.RefactorExtractFunction" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.RSourceElement"> |
| </reference> |
| </visibleWhen> |
| </command> |
| <command |
| commandId="org.eclipse.statet.r.commands.RefactorFunctionToS4Method" |
| style="push"> |
| <visibleWhen |
| checkEnabled="false"> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.RSourceElement"> |
| </reference> |
| </visibleWhen> |
| </command> |
| <separator |
| name="refactoring.add" |
| visible="false"> |
| </separator> |
| </menuContribution> |
| |
| <!-- search --> |
| <menuContribution |
| locationURI="menu:org.eclipse.search.menu?endof=contextMenuActionsGroup"> |
| <menu |
| id="org.eclipse.statet.r.menus.RSearchAllAccess" |
| label="%menus_Search_AllAccess_name" |
| mnemonic="%menus_Search_AllAccess_mnemonic"> |
| <dynamic |
| id="org.eclipse.statet.ltk.commands.SearchAllElementAccess" |
| class="org.eclipse.statet.r.ui.editors.RElementSearchContributionItem$All"> |
| </dynamic> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </visibleWhen> |
| </menu> |
| <menu |
| id="org.eclipse.statet.r.menus.RSearchWriteAccess" |
| label="%menus_Search_WriteAccess_name" |
| mnemonic="%menus_Search_WriteAccess_mnemonic"> |
| <dynamic |
| id="org.eclipse.statet.ltk.commands.SearchWriteElementAccess" |
| class="org.eclipse.statet.r.ui.editors.RElementSearchContributionItem$Write"> |
| </dynamic> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </visibleWhen> |
| </menu> |
| </menuContribution> |
| |
| <!-- context --> |
| <menuContribution |
| locationURI="popup:org.eclipse.statet.r.menus.REditorContextMenu?after=group.edit"> |
| <command |
| commandId="org.eclipse.statet.ltk.commands.ToggleComment" |
| id="org.eclipse.statet.ltk.commands.ToggleComment" |
| mnemonic="%menus_REditorContext_ToggleComment_mnemonic" |
| style="push"> |
| </command> |
| <command |
| commandId="org.eclipse.statet.ltk.commands.CorrectIndent" |
| id="org.eclipse.statet.ltk.commands.CorrectIndent" |
| mnemonic="%menus_REditorContext_CorrectIndent_mnemonic" |
| style="push"> |
| </command> |
| </menuContribution> |
| <menuContribution |
| locationURI="popup:org.eclipse.statet.r.menus.REditorContextMenu?endof=search"> |
| <menu |
| id="org.eclipse.statet.r.menus.SearchAllAccess" |
| label="%menus_Search_AllAccess_name" |
| mnemonic="%menus_Search_AllAccess_mnemonic"> |
| <dynamic |
| id="org.eclipse.statet.ltk.commands.SearchAllElementAccess" |
| class="org.eclipse.statet.r.ui.editors.RElementSearchContributionItem$All"> |
| </dynamic> |
| </menu> |
| <menu |
| id="org.eclipse.statet.r.menus.SearchWriteAccess" |
| label="%menus_Search_WriteAccess_name" |
| mnemonic="%menus_Search_WriteAccess_mnemonic"> |
| <dynamic |
| id="org.eclipse.statet.ltk.commands.SearchWriteElementAccess" |
| class="org.eclipse.statet.r.ui.editors.RElementSearchContributionItem$Write"> |
| </dynamic> |
| </menu> |
| </menuContribution> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.popupMenus"> |
| <viewerContribution |
| id="org.eclipse.statet.r.legacy.REditorRulerMenuCommonContribution" |
| targetID="org.eclipse.statet.r.menus.REditorRulerMenu"> |
| <action |
| id=".AddTask" |
| class="org.eclipse.ui.texteditor.TaskRulerAction" |
| label="AddTask" |
| menubarPath="add" |
| helpContextId="org.eclipse.ui.AddTask_action_context"> |
| </action> |
| <action |
| id=".AddBookmark" |
| class="org.eclipse.ui.texteditor.BookmarkRulerAction" |
| label="AddBookmark" |
| menubarPath="add" |
| helpContextId="org.eclipse.ui.bookmark_action_context"> |
| </action> |
| </viewerContribution> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.statet.ltk.commands.RefactorExtractFunction" |
| categoryId="org.eclipse.statet.workbench.commandCategorys.Source" |
| name="%commands_RefactorExtractFunction_name" |
| description="%commands_RefactorExtractFunction_description"/> |
| <command |
| id="org.eclipse.statet.r.commands.RefactorFunctionToS4Method" |
| categoryId="org.eclipse.statet.workbench.commandCategorys.Source" |
| name="%commands_RefactorFunctionToS4Method_name" |
| description="%commands_RefactorFunctionToS4Method_description"/> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| commandId="org.eclipse.jdt.ui.edit.text.java.toggleMarkOccurrences" |
| class="org.eclipse.statet.internal.r.ui.editors.RToggleMarkOccurrencesHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.ui.edit.text.folding.toggle" |
| class="org.eclipse.statet.internal.r.ui.editors.RToggleFoldingHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.ltk.commands.ToggleLiveReportProblems" |
| class="org.eclipse.statet.internal.r.ui.editors.RToggleLiveReportProblemsHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| |
| <handler |
| commandId="org.eclipse.statet.ltk.commands.QuickAssistConvertToPipeForward"> |
| <class class="org.eclipse.statet.ltk.ui.sourceediting.actions.QuickAssistCommandHandler"/> |
| <activeWhen> |
| <and> |
| <with |
| variable="activePart"> |
| <instanceof |
| value="org.eclipse.ui.texteditor.ITextEditor"> |
| </instanceof> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </with> |
| </and> |
| </activeWhen> |
| </handler> |
| |
| <handler |
| class="org.eclipse.statet.internal.r.ui.editors.GenerateRoxygenElementComment" |
| commandId="org.eclipse.statet.ltk.commands.GenerateElementComment"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.RSourceElement"> |
| </reference> |
| </activeWhen> |
| <enabledWhen> |
| <with variable="selection"> |
| <or> |
| <instanceof |
| value="org.eclipse.jface.text.ITextSelection"> |
| </instanceof> |
| <test |
| args="1280,1024" |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.isElementC1TypeSelection" |
| value="R"> |
| </test> |
| </or> |
| </with> |
| </enabledWhen> |
| </handler> |
| |
| <handler |
| commandId="org.eclipse.statet.ltk.commands.RefactorRenameInWorkspace" |
| class="org.eclipse.statet.internal.r.ui.refactoring.RenameInWorkspaceHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.ltk.commands.RefactorRenameInSelectedRegion" |
| class="org.eclipse.statet.internal.r.ui.refactoring.RenameInRegionHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.ltk.commands.RefactorInlineLocalVariable" |
| class="org.eclipse.statet.internal.r.ui.refactoring.InlineTempHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.ltk.commands.RefactorExtractLocalVariable" |
| class="org.eclipse.statet.internal.r.ui.refactoring.ExtractTempHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.ltk.commands.RefactorExtractFunction" |
| class="org.eclipse.statet.internal.r.ui.refactoring.ExtractFunctionHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.RefactorFunctionToS4Method" |
| class="org.eclipse.statet.internal.r.ui.refactoring.FunctionToS4MethodHandler"> |
| <activeWhen> |
| <with variable="activePartId"> |
| <equals |
| value="org.eclipse.statet.r.editors.R"> |
| </equals> |
| </with> |
| </activeWhen> |
| </handler> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <page |
| id="org.eclipse.statet.r.preferencePages.RCodeStyle" |
| category="org.eclipse.statet.r.preferencePages.R" |
| name="%preferencePages_RCodeStyle_name" |
| class="org.eclipse.statet.internal.r.ui.preferences.RCodeStylePreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceAppearance"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceFormatting"/> |
| </page> |
| <page |
| id="org.eclipse.statet.r.preferencePages.SourceEditors" |
| category="org.eclipse.statet.r.preferencePages.R" |
| name="%preferencePages_SourceEditors_name" |
| class="org.eclipse.statet.internal.r.ui.preferences.SourceEditorsPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceAppearance"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| </page> |
| <page |
| id="org.eclipse.statet.r.preferencePages.REditorOptions" |
| category="org.eclipse.statet.r.preferencePages.SourceEditors" |
| name="%preferencePages.REditorOptions.name" |
| class="org.eclipse.statet.internal.r.ui.preferences.REditorPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceAppearance"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceFormatting"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SpellChecking"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.AutoBracket"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.AutoIndent"/> |
| </page> |
| <page |
| id="org.eclipse.statet.r.preferencePages.RTextStyles" |
| category="org.eclipse.statet.r.preferencePages.SourceEditors" |
| name="%preferencePages.RSyntaxColoring.name" |
| class="org.eclipse.statet.internal.r.ui.preferences.RTextStylesPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceAppearance"/> |
| </page> |
| <page |
| id="org.eclipse.statet.r.preferencePages.RIdentifierGroupsPage" |
| category="org.eclipse.statet.r.preferencePages.RTextStyles" |
| name="%preferencePages.RIdentifierGroups.name" |
| class="org.eclipse.statet.internal.r.ui.preferences.RIdentifiersPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceAppearance"/> |
| </page> |
| <page |
| id="org.eclipse.statet.r.preferencePages.REditorTemplates" |
| category="org.eclipse.statet.r.preferencePages.SourceEditors" |
| name="%preferencePages.REditorTemplates.name" |
| class="org.eclipse.statet.internal.r.ui.preferences.REditorTemplatesPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceTemplates"/> |
| </page> |
| <page |
| id="org.eclipse.statet.r.preferencePages.REditorAdvancedContentAssistPage" |
| category="org.eclipse.statet.r.preferencePages.SourceEditors" |
| name="R Editor Content Assist" |
| class="org.eclipse.statet.internal.r.ui.editors.AdvancedContentAssistConfigurationPage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceContentAssist"/> |
| </page> |
| <page |
| id="org.eclipse.statet.r.preferencePages.REditorAdvancedInfoHoverPage" |
| category="org.eclipse.statet.r.preferencePages.SourceEditors" |
| name="R Editor Hover" |
| class="org.eclipse.statet.internal.r.ui.editors.AdvancedInfoHoverConfigurationPage$ForREditor"> |
| </page> |
| <page |
| id="org.eclipse.statet.r.preferencePages.RdTextStylesPage" |
| category="org.eclipse.statet.r.preferencePages.SourceEditors" |
| name="%preferencePages.RdSyntaxColoring.name" |
| class="org.eclipse.statet.internal.r.ui.preferences.RdTextStylesPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceEditor"/> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceAppearance"/> |
| </page> |
| </extension> |
| <extension |
| point="org.eclipse.ui.propertyPages"> |
| <page |
| id="org.eclipse.statet.r.propertyPages.RProject" |
| name="%propertyPages_RProject_name" |
| class="org.eclipse.statet.internal.r.ui.RProjectPropertyPage"> |
| <filter |
| name="nature" |
| value="org.eclipse.statet.r.resourceProjects.R"> |
| </filter> |
| <enabledWhen> |
| <instanceof |
| value="org.eclipse.core.resources.IProject"> |
| </instanceof> |
| </enabledWhen> |
| </page> |
| <page |
| id="org.eclipse.statet.r.propertyPages.RCodeStyle" |
| class="org.eclipse.statet.internal.r.ui.preferences.RCodeStylePreferencePage" |
| name="%propertyPages_RCodeStyle_name"> |
| <filter |
| name="nature" |
| value="org.eclipse.statet.r.resourceProjects.R"> |
| </filter> |
| <enabledWhen> |
| <instanceof |
| value="org.eclipse.core.resources.IProject"> |
| </instanceof> |
| </enabledWhen> |
| </page> |
| </extension> |
| |
| <extension |
| point="org.eclipse.statet.base.ui.codeGenerationTemplatesCategory"> |
| <category |
| id="org.eclipse.statet.r.codegenerationCategory.RCodeTemplates" |
| name="%templatesCategory.RCodeTemplates.name" |
| providerClass="org.eclipse.statet.internal.r.ui.preferences.RCodeTemplatesProvider"/> |
| <category |
| id="org.eclipse.statet.r.codegenerationCategory.RdCodeTemplates" |
| name="%templatesCategory.RdCodeTemplates.name" |
| providerClass="org.eclipse.statet.internal.r.ui.preferences.RdCodeTemplatesProvider"/> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.editors.annotationTypes"> |
| <type |
| name="org.eclipse.statet.r.editorAnnotations.ErrorProblem" |
| super="org.eclipse.statet.ltk.editorAnnotations.ErrorProblem" |
| markerType="org.eclipse.statet.r.resourceMarkers.RModelProblem" |
| markerSeverity="2"/> |
| <type |
| name="org.eclipse.statet.r.editorAnnotations.WarningProblem" |
| super="org.eclipse.statet.ltk.editorAnnotations.WarningProblem" |
| markerType="org.eclipse.statet.r.resourceMarkers.RModelProblem" |
| markerSeverity="1"/> |
| <type |
| name="org.eclipse.statet.r.editorAnnotations.InfoProblem" |
| super="org.eclipse.statet.ltk.editorAnnotations.InfoProblem" |
| markerType="org.eclipse.statet.r.resourceMarkers.RModelProblem" |
| markerSeverity="0"/> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.newWizards"> |
| <category |
| id="org.eclipse.statet.r.newWizards.RCategory" |
| name="R [StatET]"/> |
| <wizard |
| id="org.eclipse.statet.r.newWizards.RProjectCreation" |
| category="org.eclipse.statet.r.newWizards.RCategory" |
| class="org.eclipse.statet.internal.r.ui.wizards.NewRProjectWizard" |
| icon="icons/tool_16/new-r_project.png" |
| name="%wizards_NewRProject_name" |
| project="true" |
| finalPerspective="org.eclipse.statet.base.perspectives.StatetPerspective"> |
| <description> |
| %wizards_NewRProject_description |
| </description> |
| </wizard> |
| <wizard |
| id="org.eclipse.statet.r.newWizards.RPkgProjectCreation" |
| category="org.eclipse.statet.r.newWizards.RCategory" |
| class="org.eclipse.statet.internal.r.ui.wizards.NewRPkgProjectWizard" |
| icon="icons/tool_16/new-rpkg_project.png" |
| name="%wizards_NewRPackageProject_name" |
| project="true" |
| finalPerspective="org.eclipse.statet.base.perspectives.StatetPerspective"> |
| <description> |
| %wizards_NewRPackageProject_description |
| </description> |
| </wizard> |
| <wizard |
| category="org.eclipse.statet.r.newWizards.RCategory" |
| class="org.eclipse.statet.internal.r.ui.wizards.NewRFileCreationWizard" |
| icon="icons/tool_16/new_r-file.gif" |
| id="org.eclipse.statet.r.newWizards.RFileCreation" |
| name="%wizards.NewRFile.name" |
| project="false"> |
| <description> |
| %wizards.NewRFile.description |
| </description> |
| </wizard> |
| <wizard |
| category="org.eclipse.statet.r.newWizards.RCategory" |
| class="org.eclipse.statet.internal.r.ui.wizards.NewRdFileCreationWizard" |
| icon="icons/tool_16/new_rd-file.gif" |
| id="org.eclipse.statet.r.newWizards.RdFileCreation" |
| name="%wizards.NewRdFile.name" |
| project="false"> |
| <description> |
| %wizards.NewRdFile.description |
| </description> |
| </wizard> |
| </extension> |
| <extension |
| point="org.eclipse.ui.navigator.navigatorContent"> |
| <commonWizard |
| type="new" |
| menuGroupId="org.eclipse.statet" |
| wizardId="org.eclipse.statet.r.newWizards.RFileCreation"> |
| <enablement> |
| <or> |
| <adapt |
| type="org.eclipse.core.resources.IContainer"> |
| <test |
| property="org.eclipse.core.resources.projectNature" |
| value="org.eclipse.statet.r.resourceProjects.R"> |
| </test> |
| </adapt> |
| </or></enablement> |
| </commonWizard> |
| <commonWizard |
| type="new" |
| menuGroupId="org.eclipse.statet" |
| wizardId="org.eclipse.statet.r.newWizards.RdFileCreation"> |
| <enablement> |
| <or> |
| <adapt |
| type="org.eclipse.core.resources.IProject"> |
| <test |
| property="org.eclipse.core.resources.projectNature" |
| value="org.eclipse.statet.r.resourceProjects.RPkg"> |
| </test> |
| </adapt> |
| </or> |
| </enablement> |
| </commonWizard> |
| </extension> |
| <extension |
| point="org.eclipse.ui.perspectiveExtensions"> |
| <perspectiveExtension targetID="org.eclipse.statet.base.perspectives.StatetPerspective"> |
| <newWizardShortcut id="org.eclipse.statet.r.newWizards.RProjectCreation"/> |
| <newWizardShortcut id="org.eclipse.statet.r.newWizards.RPkgProjectCreation"/> |
| <newWizardShortcut id="org.eclipse.statet.r.newWizards.RFileCreation"/> |
| <actionSet id="org.eclipse.statet.r.actionSets.RToolbarSet"/> |
| <view |
| id="org.eclipse.statet.r.views.RHelp" |
| minimized="true" |
| relationship="stack" |
| relative="org.eclipse.statet.nico.views.ObjectBrowser" |
| visible="true"> |
| </view> |
| </perspectiveExtension> |
| </extension> |
| |
| <extension |
| point="org.eclipse.compare.contentViewers"> |
| <viewer |
| class="org.eclipse.statet.internal.r.ui.compare.RTextViewerCreator" |
| id="org.eclipse.statet.r.compareContentViewers.R"> |
| </viewer> |
| <contentTypeBinding |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| contentViewerId="org.eclipse.statet.r.compareContentViewers.R"> |
| </contentTypeBinding> |
| <viewer |
| class="org.eclipse.statet.internal.r.ui.compare.RdTextViewerCreator" |
| id="org.eclipse.statet.r.compareContentViewers.Rd"> |
| </viewer> |
| <contentTypeBinding |
| contentTypeId="org.eclipse.statet.r.contentTypes.Rd" |
| contentViewerId="org.eclipse.statet.r.compareContentViewers.Rd"> |
| </contentTypeBinding> |
| </extension> |
| <extension |
| point="org.eclipse.compare.contentMergeViewers"> |
| <viewer |
| id="org.eclipse.statet.r.compareContentViewers.RMergeViewer" |
| class="org.eclipse.statet.internal.r.ui.compare.RMergeViewerCreator" |
| extensions="R"> |
| </viewer> |
| <contentTypeBinding |
| contentMergeViewerId="org.eclipse.statet.r.compareContentViewers.RMergeViewer" |
| contentTypeId="org.eclipse.statet.r.contentTypes.R"> |
| </contentTypeBinding> |
| <viewer |
| id="org.eclipse.statet.r.compareContentViewers.RdMergeViewer" |
| class="org.eclipse.statet.internal.r.ui.compare.RdMergeViewerCreator" |
| extensions="Rd"> |
| </viewer> |
| <contentTypeBinding |
| contentMergeViewerId="org.eclipse.statet.r.compareContentViewers.RdMergeViewer" |
| contentTypeId="org.eclipse.statet.r.contentTypes.Rd"> |
| </contentTypeBinding> |
| </extension> |
| |
| <!-- Search --> |
| <extension |
| point="org.eclipse.search.searchResultViewPages"> |
| <viewPage |
| id="org.eclipse.statet.r.searchResults.RElementViewPage" |
| searchResultClass="org.eclipse.statet.internal.r.ui.search.RElementSearchResult" |
| class="org.eclipse.statet.internal.r.ui.search.RElementSearchResultPage"> |
| </viewPage> |
| </extension> |
| |
| <!-- R Help --> |
| <extension |
| point="org.eclipse.equinox.http.registry.httpcontexts"> |
| <httpcontext |
| id="rhelp"> |
| </httpcontext> |
| </extension> |
| <extension |
| point="org.eclipse.equinox.http.registry.servlets"> |
| <servlet |
| httpcontextId="rhelp" |
| alias="/browse" |
| class="org.eclipse.statet.internal.r.ui.rhelp.RHelpUIServlet$Browse"> |
| </servlet> |
| <servlet |
| httpcontextId="rhelp" |
| alias="/info" |
| class="org.eclipse.statet.internal.r.ui.rhelp.RHelpUIServlet$Info"> |
| </servlet> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <page |
| id="org.eclipse.statet.r.preferencePages.RHelpPage" |
| category="org.eclipse.statet.r.preferencePages.R" |
| name="%preferencePages_RHelpPage_name" |
| class="org.eclipse.statet.internal.r.ui.rhelp.RHelpPreferencePage"> |
| </page> |
| </extension> |
| <extension |
| point="org.eclipse.ui.views"> |
| <view |
| id="org.eclipse.statet.r.views.RHelp" |
| category="org.eclipse.statet.workbench.views.StatetCategory" |
| class="org.eclipse.statet.internal.r.ui.rhelp.RHelpView" |
| name="%views_RHelpView_name" |
| icon="icons/view_16/rhelp.png" |
| restorable="true" allowMultiple="true"> |
| </view> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.statet.r.commands.OpenRHelp" |
| categoryId="org.eclipse.statet.nico.commands.ConsoleCategory" |
| name="%commands_OpenRHelp_name" |
| description="%commands_OpenRHelp_description"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| commandId="org.eclipse.statet.r.commands.OpenRHelp" |
| class="org.eclipse.statet.r.ui.rhelp.OpenRHelpHandler"> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.ui.bindings"> |
| <key |
| commandId="org.eclipse.statet.r.commands.OpenRHelp" |
| contextId="org.eclipse.ui.contexts.window" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1+R H"> |
| </key> |
| </extension> |
| |
| <extension |
| point="org.eclipse.search.searchPages"> |
| <page |
| id="org.eclipse.statet.r.searchPages.RHelpPage" |
| class="org.eclipse.statet.internal.r.ui.rhelp.RHelpSearchInputPage" |
| extensions="R:85, Rd:85" |
| icon="icons/tool_16/rhelp-search.png" |
| label="%searchPages.RHelpPage" |
| searchViewHelpContextId="org.eclipse.statet.r.ui.r_help-search_page" |
| showScopeSection="false"> |
| </page> |
| </extension> |
| <extension |
| point="org.eclipse.search.searchResultViewPages"> |
| <viewPage |
| id="org.eclipse.statet.r.searchResults.RHelpViewPage" |
| searchResultClass="org.eclipse.statet.internal.r.ui.rhelp.RHelpSearchResult" |
| class="org.eclipse.statet.internal.r.ui.rhelp.RHelpSearchResultPage"> |
| </viewPage> |
| </extension> |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="menu:org.eclipse.search.menu?endof=dialogGroup"> |
| <command |
| commandId="org.eclipse.statet.workbench.commands.OpenSearchDialog" |
| label="R Help..." |
| icon="icons/tool_16/rhelp-search.png"> |
| <parameter |
| name="pageId" value="org.eclipse.statet.r.searchPages.RHelpPage"/> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="activeEditor"> |
| <test |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| forcePluginActivation="true" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </with> |
| </visibleWhen> |
| </command> |
| </menuContribution> |
| </extension> |
| |
| <extension |
| point="org.eclipse.help.ui.searchEngine"> |
| <engine |
| id="org.eclipse.statet.r.searchEngine.RSiteSearch" |
| enabled="true" |
| engineTypeId="org.eclipse.help.ui.web" |
| label="%searchEngine.RSiteSearch.label"> |
| <param |
| name="url" |
| value="http://search.r-project.org/cgi-bin/namazu.cgi?query={expression}&max=20&result=normal&sort=score&idxname=functions&idxname=docs"/> |
| <description> |
| %searchEngine.RSiteSearch.description |
| </description> |
| </engine> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| categoryId="org.eclipse.statet.workbench.commandCategorys.Source" |
| defaultHandler="org.eclipse.statet.internal.r.ui.rtools.RunHelpInR" |
| description="%commands.RunHelpInR.description" |
| id="org.eclipse.statet.r.commands.RunHelpInR" |
| name="%commands.RunHelpInR.name"> |
| <commandParameter |
| id="topic" |
| name="Help Topic" |
| optional="true"> |
| </commandParameter> |
| </command> |
| <command |
| categoryId="org.eclipse.statet.workbench.commandCategorys.Source" |
| defaultHandler="org.eclipse.statet.internal.r.ui.rtools.RunHelpSearchInR" |
| description="%commands.RunHelpSearchInR.description" |
| id="org.eclipse.statet.r.commands.RunHelpSearchInR" |
| name="%commands.RunHelpSearchInR.name"> |
| <commandParameter |
| id="text" |
| name="Text to Search For" |
| optional="true"> |
| </commandParameter> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.RunPrintInR" |
| categoryId="org.eclipse.statet.workbench.commandCategorys.Source" |
| name="%commands.RunPrintInR.name" |
| description="%commands.RunPrintInR.description" |
| defaultHandler="org.eclipse.statet.internal.r.ui.rtools.RunPrintInR"> |
| <commandParameter |
| id="var" |
| name="Variable to Print" |
| optional="true"> |
| </commandParameter> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.bindings"> |
| <key |
| commandId="org.eclipse.statet.r.commands.RunHelpInR" |
| contextId="org.eclipse.statet.r.contexts.REditor" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1+R 1"> |
| </key> |
| <key |
| commandId="org.eclipse.statet.r.commands.RunHelpSearchInR" |
| contextId="org.eclipse.statet.r.contexts.REditor" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1+R M2+1"> |
| </key> |
| <key |
| commandId="org.eclipse.statet.r.commands.RunPrintInR" |
| contextId="org.eclipse.statet.r.contexts.REditor" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1+R 2"> |
| </key> |
| </extension> |
| |
| <extension |
| point="org.eclipse.core.expressions.propertyTesters"> |
| <propertyTester |
| id="org.eclipse.statet.r.propertyTester.Interaction" |
| namespace="org.eclipse.statet.r" |
| properties="supportsFileCommand" |
| type="org.eclipse.core.runtime.IAdaptable" |
| class="org.eclipse.statet.internal.r.debug.nostart.SupportFileCommandTester"> |
| </propertyTester> |
| </extension> |
| |
| <extension-point id="rCodeLaunchConnector" |
| name="Point to register Connectors which can launch r code" |
| schema="schema/rCodeLaunchConnector.exsd"/> |
| <extension-point id="rCodeLaunchContentHandler" |
| name="Content specific handling of code launching" |
| schema="schema/rCodeLaunchContentHandler.exsd"/> |
| |
| <extension point="org.eclipse.statet.r.ui.rCodeLaunchContentHandler"> |
| <contentHandler |
| contentTypeId="org.eclipse.statet.r.contentTypes.RData"> |
| <fileCommand |
| id="org.eclipse.statet.r.rFileCommands.LoadRData" |
| defaultCommand="load("${resource_loc}")" |
| name="%rCodeLaunchHandler_LoadRData_label"> |
| </fileCommand> |
| </contentHandler> |
| <contentHandler |
| contentTypeId="org.eclipse.statet.r.contentTypes.R" |
| handler="org.eclipse.statet.internal.r.debug.ui.launcher.DefaultContentHandler"> |
| <fileCommand |
| id="org.eclipse.statet.r.rFileCommands.SourceRScript" |
| defaultCommand="source("${resource_loc}", echo=${echo}, encoding="${resource_encoding}")" |
| name="%rCodeLaunchHandler_SourceRScript_label"> |
| </fileCommand> |
| </contentHandler> |
| </extension> |
| |
| <extension point="org.eclipse.debug.ui.launchShortcuts"> |
| <shortcut |
| id="org.eclipse.statet.r.launchShortcuts.SourceRScript" |
| category="org.eclipse.statet.r.basic" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitRScriptViaSourceShortcut" |
| icon="icons/tool_16/run-r-script-source.png" |
| label="%launchShortcuts_RunRScriptViaSource_label" |
| modes="run" |
| path="statet/r/5"> |
| <enablement> |
| <with |
| variable="selection"> |
| <count |
| value="1"> |
| </count> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </iterate> |
| </with> |
| </enablement> |
| <contextualLaunch> |
| <enablement> |
| <with |
| variable="selection"> |
| <count |
| value="1"> |
| </count> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </iterate> |
| </with> |
| </enablement> |
| <contextLabel |
| label="%launchShortcuts_RunRScriptViaSource_label" |
| mode="run"/> |
| </contextualLaunch> |
| </shortcut> |
| <shortcut |
| id="org.eclipse.statet.r.launchShortcuts.LoadRData" |
| category="org.eclipse.statet.r.basic" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitRDataViaLoadShortcut" |
| icon="icons/tool_16/run-r-script-source.png" |
| label="%launchShortcuts_RunRDataViaLoad_label" |
| modes="run" |
| path="statet/r/5"> |
| <enablement> |
| <with |
| variable="selection"> |
| <count |
| value="1"> |
| </count> |
| <iterate> |
| <or> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.RData"> |
| </test> |
| </or> |
| </iterate> |
| </with> |
| </enablement> |
| <contextualLaunch> |
| <enablement> |
| <with |
| variable="selection"> |
| <count |
| value="1"> |
| </count> |
| <iterate> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.RData"> |
| </test> |
| </iterate> |
| </with> |
| </enablement> |
| <contextLabel |
| label="%launchShortcuts_RunRDataViaLoad_label" |
| mode="run"> |
| </contextLabel> |
| </contextualLaunch> |
| </shortcut> |
| <shortcut |
| id="org.eclipse.statet.r.launchShortcuts.RScriptDirect" |
| category="org.eclipse.statet.r.basic" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitFileDirectLaunchShortcut" |
| icon="icons/tool_16/run-r-script.png" |
| label="%launchShortcuts_RunRScriptDirect_label" |
| modes="run" |
| path="statet/r/5"> |
| <enablement> |
| <with |
| variable="selection"> |
| <count |
| value="1"> |
| </count> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </iterate> |
| </with> |
| </enablement> |
| <contextualLaunch> |
| <enablement> |
| <with |
| variable="selection"> |
| <count |
| value="1"> |
| </count> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </iterate> |
| </with> |
| </enablement> |
| <contextLabel |
| label="%launchShortcuts_RunRScriptDirect_label" |
| mode="run"> |
| </contextLabel> |
| </contextualLaunch> |
| </shortcut> |
| <shortcut |
| id="org.eclipse.statet.r.launchShortcuts.RScriptDirectAndConsole" |
| category="org.eclipse.statet.r.other" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitFileDirectAndConsoleLaunchShortcut" |
| icon="icons/tool_16/run-r-script.png" |
| label="%launchShortcuts_RunRScriptDirectAndGotoConsole_label" |
| modes="run" |
| path="statet/r/5"> |
| <enablement> |
| <with |
| variable="selection"> |
| <count |
| value="1"> |
| </count> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </iterate> |
| </with> |
| </enablement> |
| </shortcut> |
| </extension> |
| <extension |
| point="org.eclipse.ui.actionSets"> |
| <actionSet |
| id="org.eclipse.statet.r.actionSets.RToolbarSet" |
| label="%actionSets_RToolbar_label"> |
| </actionSet> |
| <actionSet |
| description="%actionSets_RToolbarExt1_description" |
| id="org.eclipse.statet.r.actionSets.RToolbarExt1Set" |
| label="%actionSets_RToolbarExt1_label"> |
| </actionSet> |
| <actionSet |
| id="org.eclipse.statet.r.actionSets.RSessionTools" |
| label="%actionSets_RSessionTools_label"> |
| </actionSet> |
| <actionSet |
| id="org.eclipse.statet.r.actionSets.RMainMenu" |
| label="%actionSets_RMainMenu_label"> |
| </actionSet> |
| </extension> |
| <extension |
| point="org.eclipse.ui.actionSetPartAssociations"> |
| <actionSetPartAssociation |
| targetID="org.eclipse.ui.edit.text.actionSet.presentation"> |
| <part |
| id="org.eclipse.statet.r.editors.R"> |
| </part> |
| </actionSetPartAssociation> |
| <actionSetPartAssociation |
| targetID="org.eclipse.statet.r.actionSets.RToolbarSet"> |
| <part |
| id="org.eclipse.statet.r.editors.R"> |
| </part> |
| </actionSetPartAssociation> |
| </extension> |
| <extension |
| point="org.eclipse.ui.perspectiveExtensions"> |
| <perspectiveExtension |
| targetID="org.eclipse.statet.base.perspectives.StatetPerspective"> |
| <actionSet |
| id="org.eclipse.statet.r.actionSets.RMainMenu"> |
| </actionSet> |
| </perspectiveExtension> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <page |
| id="org.eclipse.statet.r.preferencePages.RunDebug" |
| category="org.eclipse.statet.r.preferencePages.R" |
| name="%preferencePages_RunDebug_name" |
| class="org.eclipse.statet.internal.r.debug.ui.preferences.RInteractionPreferencePage"> |
| </page> |
| <!--page |
| id="org.eclipse.statet.r.preferencePages.RInteractionPage" |
| category="org.eclipse.statet.r.preferencePages.RunDebug" |
| name="%preferencePages_RInteraction_name" |
| class="org.eclipse.statet.internal.r.debug.ui.preferences.RInteractionPreferencePage"> |
| </page--> |
| <page |
| id="org.eclipse.statet.r.preferencePages.REnvironmentPage" |
| category="org.eclipse.statet.r.preferencePages.R" |
| name="%preferencePages_REnvironments_name" |
| class="org.eclipse.statet.internal.r.debug.ui.preferences.REnvPreferencePage"> |
| </page> |
| <page |
| id="org.eclipse.statet.r.preferencePages.RRepositories" |
| category="org.eclipse.statet.r.preferencePages.RunDebug" |
| name="%preferencePages_RRepositories_name" |
| class="org.eclipse.statet.internal.r.ui.pkgmanager.RRepoPreferencePage"> |
| </page> |
| </extension> |
| <extension point="org.eclipse.ui.commands"> |
| <!-- commands of launch shortcuts above --> |
| <command |
| id="org.eclipse.statet.r.launchShortcuts.RScriptViaSource.run" |
| name="%commands_RunRScriptViaSource_name" |
| categoryId="org.eclipse.debug.ui.category.run"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.launchShortcuts.RScriptDirect.run" |
| name="%commands_RunRScriptDirect_name" |
| categoryId="org.eclipse.debug.ui.category.run"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.launchShortcuts.RScriptDirectAndConsole.run" |
| name="%commands_RunRScriptDirect_GotoConsole_name" |
| categoryId="org.eclipse.debug.ui.category.run"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.statet.r.commands.GotoRConsole" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_GotoRConsole_name" |
| defaultHandler="org.eclipse.statet.internal.r.debug.ui.GotoRConsole" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitSelectionToR" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitSelectionToR_name" |
| description="%commands_SubmitSelectionToR_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitSelectionToR_GotoConsole" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitSelectionToR_GotoConsole_name" |
| description="%commands_SubmitSelectionToR_GotoConsole_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitSelectionToR_GotoNextLine" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitSelectionToR_GotoNextLine_name" |
| description="%commands_SubmitSelectionToR_GotoNextLine_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitSelectionToR_PasteOutput" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitSelectionToR_PasteOutput_name" |
| description="%commands_SubmitSelectionToR_PasteOutput_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitUptoSelectionToR" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitUptoSelectionToR_name" |
| description="%commands_SubmitUptoSelectionToR_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitFileToRViaCommand" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitFileToRViaCommand_Default_name" |
| description="%commands_SubmitFileToRViaCommand_Default_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitFileToRViaCommand_GotoConsole" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitFileToRViaCommand_Default_GotoConsole_name" |
| description="%commands_SubmitFileToRViaCommand_Default_GotoConsole_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitEntireCommandToR" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitEntireCommandToR_name" |
| description="%commands_SubmitEntireCommandToR_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitEntireCommandToR_GotoConsole" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitEntireCommandToR_GotoConsole_name" |
| description="%commands_SubmitEntireCommandToR_GotoConsole_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitEntireCommandToR_GotoNextCommand" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitEntireCommandToR_GotoNextCommand_name" |
| description="%commands_SubmitEntireCommandToR_GotoNextCommand_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitFunctionDefToR" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitFunctionDefToR_name" |
| description="%commands_SubmitFunctionDefToR_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.SubmitFunctionDefToR_GotoConsole" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_SubmitFunctionDefToR_GotoConsole_name" |
| description="%commands_SubmitFunctionDefToR_GotoConsole_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.ToggleRunEcho" |
| categoryId="org.eclipse.debug.ui.category.run" |
| name="%commands_ToggleRunEcho_name" |
| description="%commands_ToggleRunEcho_description" |
| helpContextId="org.eclipse.statet.r.ui.run_in_r" |
| defaultHandler="org.eclipse.statet.internal.r.debug.ui.launcher.ToggleRunEchoHandler"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.commandImages"> |
| <image |
| commandId="org.eclipse.statet.r.commands.SubmitSelectionToR" |
| icon="icons/tool_16/run-r-selection.png"> |
| </image> |
| <image |
| commandId="org.eclipse.statet.r.commands.SubmitSelectionToR_GotoConsole" |
| icon="icons/tool_16/run-r-selection.png"> |
| </image> |
| <image |
| commandId="org.eclipse.statet.r.commands.SubmitSelectionToR_GotoNextLine" |
| icon="icons/tool_16/run-r-selection-next.png"> |
| </image> |
| <image |
| commandId="org.eclipse.statet.r.commands.SubmitSelectionToR_PasteOutput" |
| icon="icons/tool_16/run-r-selection-paste.png"> |
| </image> |
| <image |
| commandId="org.eclipse.statet.r.commands.SubmitFileToRViaCommand" |
| icon="icons/tool_16/run-r-script-source.png"> |
| </image> |
| <image |
| commandId="org.eclipse.statet.r.commands.SubmitFileToRViaCommand_GotoConsole" |
| icon="icons/tool_16/run-r-script-source.png"> |
| </image> |
| <image |
| commandId="org.eclipse.statet.r.commands.SubmitEntireCommandToR" |
| icon="icons/tool_16/run-command.png"> |
| </image> |
| <image |
| commandId="org.eclipse.statet.r.commands.SubmitEntireCommandToR_GotoConsole" |
| icon="icons/tool_16/run-command.png"> |
| </image> |
| <image |
| commandId="org.eclipse.statet.r.commands.SubmitEntireCommandToR_GotoNextCommand" |
| icon="icons/tool_16/run-command-next.png"> |
| </image> |
| <image |
| commandId="org.eclipse.statet.r.commands.ToggleRunEcho" |
| icon="icons/tool_16/echo.png"> |
| </image> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitSelectionToR" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitSelectionHandler"> |
| <activeWhen> |
| <with variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.viewers.IStructuredSelection"> |
| </instanceof> |
| <or> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <instanceof |
| value="org.eclipse.statet.ltk.model.core.element.SourceStructElement"> |
| </instanceof> |
| </iterate> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt |
| type="org.eclipse.core.resources.IFile"> |
| </adapt> |
| </iterate> |
| </or> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitSelectionForTextHandler" |
| commandId="org.eclipse.statet.r.commands.SubmitSelectionToR"> |
| <activeWhen> |
| <with |
| variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.text.ITextSelection"> |
| </instanceof> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitSelectionToR_GotoConsole" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitSelectionHandler$AndGotoConsole"> |
| <activeWhen> |
| <with variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.viewers.IStructuredSelection"> |
| </instanceof> |
| <or> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <instanceof |
| value="org.eclipse.statet.ltk.model.core.element.SourceStructElement"> |
| </instanceof> |
| </iterate> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <adapt |
| type="org.eclipse.core.resources.IFile"> |
| </adapt> |
| </iterate> |
| </or> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitSelectionToR_GotoConsole" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitSelectionForTextHandler$AndGotoConsole"> |
| <activeWhen> |
| <with |
| variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.text.ITextSelection"> |
| </instanceof> |
| </with> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitSelectionToR_GotoNextLine" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitSelectionAndGotoNextLineHandler"> |
| <activeWhen> |
| <with |
| variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.text.ITextSelection"> |
| </instanceof> |
| </with></activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitSelectionToR_PasteOutput" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitSelectionAndPasteOutputHandler"> |
| <activeWhen> |
| <and> |
| <with |
| variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.text.ITextSelection"> |
| </instanceof> |
| </with> |
| <with |
| variable="activePart"> |
| <instanceof |
| value="org.eclipse.statet.ltk.ui.sourceediting.SourceEditor1"> |
| </instanceof> |
| </with> |
| |
| </and> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitUptoSelectionToR" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitUptoSelectionHandler"> |
| <activeWhen> |
| <or> |
| <with variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.text.ITextSelection"> |
| </instanceof> |
| </with> |
| <with variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.viewers.IStructuredSelection"> |
| </instanceof> |
| <count |
| value="1"> |
| </count> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <instanceof |
| value="org.eclipse.statet.ltk.model.core.element.SourceStructElement"> |
| </instanceof> |
| </iterate> |
| </with> |
| </or> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitFileToRViaCommand" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitFileViaCommandHandler"> |
| <activeWhen> |
| <or> |
| <with |
| variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.viewers.IStructuredSelection"> |
| </instanceof> |
| <count |
| value="1"> |
| </count> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <or> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.core.runtime.text"> |
| </test> |
| <test |
| property="org.eclipse.statet.r.supportsFileCommand"> |
| </test> |
| </or> |
| </iterate> |
| </with> |
| <with |
| variable="activePart"> |
| <instanceof |
| value="org.eclipse.ui.IEditorPart"> |
| </instanceof> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.core.runtime.text"> |
| </test> |
| </with> |
| </or> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitFileToRViaCommand_GotoConsole" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitFileViaCommandAndGotoConsoleHandler"> |
| <activeWhen> |
| <or> |
| <with |
| variable="selection"> |
| <instanceof |
| value="org.eclipse.jface.viewers.IStructuredSelection"> |
| </instanceof> |
| <count |
| value="1"> |
| </count> |
| <iterate |
| ifEmpty="false" |
| operator="and"> |
| <or> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.core.runtime.text"> |
| </test> |
| <test |
| property="org.eclipse.statet.r.supportsFileCommand"> |
| </test> |
| </or> |
| </iterate> |
| </with> |
| <with |
| variable="activePart"> |
| <instanceof |
| value="org.eclipse.ui.IEditorPart"> |
| </instanceof> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.core.runtime.text"> |
| </test> |
| </with> |
| </or> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitEntireCommandToR" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitEntireCommandHandler"> |
| <activeWhen> |
| <and> |
| <with |
| variable="activePart"> |
| <instanceof |
| value="org.eclipse.ui.texteditor.ITextEditor"> |
| </instanceof> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </with> |
| </and> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitEntireCommandToR_GotoConsole" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitEntireCommandAndGotoConsoleHandler"> |
| <activeWhen> |
| <and> |
| <with |
| variable="activePart"> |
| <instanceof |
| value="org.eclipse.ui.texteditor.ITextEditor"> |
| </instanceof> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </with> |
| </and> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitEntireCommandToR_GotoNextCommand" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitEntireCommandAndGotoNextCommandHandler"> |
| <activeWhen> |
| <and> |
| <with |
| variable="activePart"> |
| <instanceof |
| value="org.eclipse.ui.texteditor.ITextEditor"> |
| </instanceof> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </with> |
| </and> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitFunctionDefToR" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitFunctionDefHandler"> |
| <activeWhen> |
| <and> |
| <with |
| variable="activePart"> |
| <instanceof |
| value="org.eclipse.ui.texteditor.ITextEditor"> |
| </instanceof> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </with> |
| </and> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.SubmitFunctionDefToR_GotoConsole" |
| class="org.eclipse.statet.internal.r.debug.ui.launcher.SubmitFunctionDefHandler$AndGotoConsole"> |
| <activeWhen> |
| <and> |
| <with |
| variable="activePart"> |
| <instanceof |
| value="org.eclipse.ui.texteditor.ITextEditor"> |
| </instanceof> |
| <test |
| forcePluginActivation="true" |
| property="org.eclipse.statet.ltk.matchesActivatedContentType" |
| value="org.eclipse.statet.r.contentTypes.R"> |
| </test> |
| </with> |
| </and> |
| </activeWhen> |
| </handler> |
| </extension> |
| |
| <extension |
| point="org.eclipse.statet.r.ui.rCodeLaunchConnector"> |
| <connector |
| id="org.eclipse.statet.r.rCodeLaunchConnector.RNewConsoleConnector" |
| class="org.eclipse.statet.internal.r.debug.ui.RControllerCodeLaunchConnector" |
| description="%rConnector_RNewConsoleConnector_description" |
| name="%rConnector_RNewConsoleConnector_name"/> |
| <connector |
| id="org.eclipse.statet.r.rCodeLaunchConnector.EclipseTextConsole" |
| class="org.eclipse.statet.internal.r.debug.ui.TextConsoleConnector" |
| description="%rConnector_EclipseTextConsole_description" |
| name="%rConnector_EclipseTextConsole_name"/> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.commands"> |
| <command |
| id="org.eclipse.statet.r.commands.LoadRImage" |
| categoryId="org.eclipse.statet.nico.commands.ConsoleCategory" |
| name="%commands_LoadRImage_name" |
| description="%commands_LoadRImage_description"> |
| </command> |
| <command |
| id="org.eclipse.statet.r.commands.OpenRPkgManager" |
| categoryId="org.eclipse.statet.nico.commands.ConsoleCategory" |
| name="%commands_OpenRPkgManager_name" |
| description="%commands_OpenRPkgManager_description"> |
| </command> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| commandId="org.eclipse.statet.r.commands.LoadRImage" |
| class="org.eclipse.statet.internal.r.ui.tools.LoadRImageHandler"> |
| <enabledWhen> |
| <with |
| variable="org.eclipse.statet.activeTool"> |
| <test |
| property="org.eclipse.statet.nico.isMainType" |
| value="R" |
| forcePluginActivation="false"/> |
| </with> |
| </enabledWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.statet.r.commands.OpenRPkgManager" |
| class="org.eclipse.statet.r.ui.pkgmanager.OpenRPkgManagerHandler"> |
| <enabledWhen> |
| <with |
| variable="org.eclipse.statet.activeTool"> |
| <test |
| property="org.eclipse.statet.nico.isMainType" |
| value="R" |
| forcePluginActivation="false"/> |
| </with> |
| </enabledWhen> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.ui.bindings"> |
| <key |
| commandId="org.eclipse.statet.r.commands.OpenRPkgManager" |
| contextId="org.eclipse.ui.contexts.window" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1+R P"> |
| </key> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.menus"> |
| <menuContribution |
| locationURI="menu:org.eclipse.ui.main.menu?after=additions"> |
| <menu |
| id="org.eclipse.statet.r.menus.RMain" |
| label="R"> |
| <visibleWhen |
| checkEnabled="false"> |
| <with |
| variable="activeContexts"> |
| <iterate |
| ifEmpty="false" |
| operator="or"> |
| <equals |
| value="org.eclipse.statet.r.actionSets.RMainMenu"> |
| </equals> |
| </iterate> |
| </with> |
| </visibleWhen> |
| <separator |
| name="r_help" |
| visible="true"> |
| </separator> |
| <command |
| commandId="org.eclipse.statet.r.commands.OpenRHelp" |
| mnemonic="%menus_RMain_OpenRHelp_mnemonic"> |
| </command> |
| <separator |
| name="r_runtime" |
| visible="true"> |
| </separator> |
| <command |
| commandId="org.eclipse.statet.r.commands.LoadRImage"> |
| </command> |
| <command |
| commandId="org.eclipse.statet.r.commands.OpenRPkgManager" |
| mnemonic="%menus_RMain_OpenRPkgManager_mnemonic"> |
| </command> |
| <separator |
| name="r_tasks" |
| visible="true"> |
| </separator> |
| </menu> |
| </menuContribution> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.views"> |
| <view |
| allowMultiple="false" |
| category="org.eclipse.statet.workbench.views.StatetCategory" |
| class="org.eclipse.statet.internal.r.objectbrowser.ObjectBrowserView" |
| icon="icons/view_16/objectbrowser.png" |
| id="org.eclipse.statet.nico.views.ObjectBrowser" |
| name="%views_RObjectBrowserView_name" |
| restorable="true"> |
| </view> |
| </extension> |
| |
| <extension |
| point="org.eclipse.ui.contexts"> |
| <context |
| id="org.eclipse.statet.r.contexts.RDataEditor" |
| parentId="org.eclipse.ui.contexts.window" |
| name="%contexts_RDataEditor_name" |
| description="%contexts_RDataEditor_description"> |
| </context> |
| </extension> |
| <extension |
| point="org.eclipse.ui.editors"> |
| <editor |
| id="org.eclipse.statet.r.editors.RData" |
| icon="icons/view_16/r_data_editor.png" |
| name="R Data Viewer" |
| class="org.eclipse.statet.internal.r.ui.dataeditor.RDataEditor" |
| contributorClass="org.eclipse.statet.internal.r.ui.dataeditor.RDataEditorActionBarContributor" |
| default="true"> |
| </editor> |
| </extension> |
| <extension |
| point="org.eclipse.core.expressions.definitions"> |
| <definition |
| id="org.eclipse.statet.r.expressions.isEditorActive.RDataEditor"> |
| <with |
| variable="activeEditor"> |
| <instanceof |
| value="org.eclipse.statet.internal.r.ui.dataeditor.RDataEditor"/> |
| </with> |
| </definition> |
| </extension> |
| <extension |
| point="org.eclipse.ui.handlers"> |
| <handler |
| commandId="org.eclipse.ui.edit.text.zoomIn" |
| class="org.eclipse.statet.internal.r.ui.intable.ResizeTableTextHandler$ZoomIn"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.isEditorActive.RDataEditor"/> |
| </activeWhen> |
| </handler> |
| <handler |
| commandId="org.eclipse.ui.edit.text.zoomOut" |
| class="org.eclipse.statet.internal.r.ui.intable.ResizeTableTextHandler$ZoomOut"> |
| <activeWhen> |
| <reference |
| definitionId="org.eclipse.statet.r.expressions.isEditorActive.RDataEditor"/> |
| </activeWhen> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.ui.bindings"> |
| <key |
| commandId="org.eclipse.ui.edit.text.goto.line" |
| contextId="org.eclipse.statet.r.contexts.RDataEditor" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1+L"/> |
| <key |
| commandId="org.eclipse.ui.edit.text.zoomIn" |
| contextId="org.eclipse.statet.r.contexts.RDataEditor" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1++"/> |
| <key |
| commandId="org.eclipse.ui.edit.text.zoomIn" |
| contextId="org.eclipse.statet.r.contexts.RDataEditor" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1+="/> |
| <key |
| commandId="org.eclipse.ui.edit.text.zoomOut" |
| contextId="org.eclipse.statet.r.contexts.RDataEditor" |
| schemeId="org.eclipse.ui.defaultAcceleratorConfiguration" |
| sequence="M1+-"/> |
| </extension> |
| |
| <!-- R Pager --> |
| <extension |
| point="org.eclipse.ui.editors"> |
| <editor |
| id="org.eclipse.statet.r.editors.RPager" |
| icon="icons/view_16/pager.png" |
| name="R Pager" |
| class="org.eclipse.statet.internal.r.ui.pager.RPagerEditor"> |
| </editor> |
| </extension> |
| |
| <!-- R Graphics --> |
| <extension |
| point="org.eclipse.ui.preferencePages"> |
| <page |
| id="org.eclipse.statet.r.preferencePages.RGraphicsPage" |
| category="org.eclipse.statet.r.preferencePages.R" |
| name="%preferencePages_RGraphicsPage_name" |
| class="org.eclipse.statet.rj.eclient.graphics.RGraphicsPreferencePage"> |
| <keywordReference id="org.eclipse.statet.ltk.keywords.SourceAppearance"/> |
| </page> |
| </extension> |
| <extension |
| point="org.eclipse.ui.views"> |
| <view |
| id="org.eclipse.statet.r.views.RGraphic" |
| category="org.eclipse.statet.workbench.views.StatetCategory" |
| icon="icons/obj_16/r-graphic.png" |
| name="%views_RGraphicView_name" |
| class="org.eclipse.statet.internal.r.ui.graphics.StatetRGraphicView" |
| allowMultiple="true" |
| restorable="true"> |
| </view> |
| </extension> |
| |
| <extension |
| point="org.eclipse.core.runtime.adapters"> |
| <factory |
| adaptableType="org.eclipse.statet.r.core.rmodel.RElement" |
| class="org.eclipse.statet.internal.r.ui.RElementAdapterFactory"> |
| <adapter |
| type="org.eclipse.core.resources.IResource"> |
| </adapter> |
| <adapter |
| type="org.eclipse.search.ui.ISearchPageScoreComputer"> |
| </adapter> |
| </factory> |
| <factory |
| adaptableType="org.eclipse.ui.IEditorInput" |
| class="org.eclipse.statet.internal.r.ui.REditorInputAdapterFactory"> |
| <adapter |
| type="org.eclipse.search.ui.ISearchPageScoreComputer"> |
| </adapter> |
| </factory> |
| </extension> |
| |
| <extension |
| point="org.eclipse.core.variables.dynamicVariables"> |
| <variable |
| name="r_object_name" |
| description="%variables_RObjectName_description" |
| supportsArgument="false" |
| resolver="org.eclipse.statet.r.ui.rtool.RElementNameVariableResolver"> |
| </variable> |
| </extension> |
| |
| <extension |
| point="org.eclipse.e4.ui.css.core.elementProvider"> |
| <provider |
| class="org.eclipse.statet.internal.r.ui.intable.css.dom.DataTableElementProvider"> |
| <widget |
| class="org.eclipse.statet.internal.r.ui.intable.DataTable"/> |
| </provider> |
| </extension> |
| <extension |
| point="org.eclipse.e4.ui.css.core.propertyHandler"> |
| <handler |
| adapter="org.eclipse.statet.internal.r.ui.intable.css.dom.TableElement" |
| handler="org.eclipse.statet.internal.r.ui.intable.css.properties.TablePropertyHandler"> |
| <property-name |
| name="background-color"/> |
| <property-name |
| name="color"/> |
| </handler> |
| <handler |
| adapter="org.eclipse.statet.internal.r.ui.intable.css.dom.TableRegionElement" |
| handler="org.eclipse.statet.internal.r.ui.intable.css.properties.TableRegionPropertyHandler"> |
| <property-name |
| name="grid-line-color"/> |
| </handler> |
| <handler |
| adapter="org.eclipse.statet.internal.r.ui.intable.css.dom.TableCellElement" |
| handler="org.eclipse.statet.internal.r.ui.intable.css.properties.TableCellPropertyHandler"> |
| <property-name |
| name="background-color"/> |
| <property-name |
| name="color"/> |
| <property-name |
| name="border-color"/> |
| </handler> |
| </extension> |
| <extension |
| point="org.eclipse.e4.ui.css.swt.theme"> |
| <stylesheet |
| uri="css/e4_dark.css"> |
| <themeid |
| refid="org.eclipse.e4.ui.css.theme.e4_dark"/> |
| </stylesheet> |
| </extension> |
| |
| </plugin> |