blob: 2bfec97b5a1b19e3bacb4d8bcced5ddba97431aa [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<!--
#=============================================================================#
# Copyright (c) 2007, 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.ui.contexts">
<context
id="org.eclipse.statet.redocs.contexts.RweaveEditorScope"
parentId="org.eclipse.statet.r.contexts.REditor"
name="%contexts_RweaveSource_name"
description="%contexts_RweaveSource_description">
</context>
</extension>
<extension
point="org.eclipse.core.expressions.definitions">
<definition
id="org.eclipse.statet.redocs.expressions.isPartActive.RweaveEditor">
<with
variable="activePart">
<instanceof
value="org.eclipse.statet.redocs.r.ui.sourceediting.RweaveEditor">
</instanceof>
</with>
</definition>
</extension>
<!-- R Chunks -->
<extension
point="org.eclipse.ui.commands">
<command
id="org.eclipse.statet.r.launchShortcuts.RChunkDirect.run"
categoryId="org.eclipse.debug.ui.category.run"
name="%commands_RunRChunkDirect_name">
</command>
<command
id="org.eclipse.statet.r.launchShortcuts.RChunkDirectAndConsole.run"
categoryId="org.eclipse.debug.ui.category.run"
name="%commands_RunRChunkDirectAndGotoConsole_name">
</command>
</extension>
<extension
point="org.eclipse.debug.ui.launchShortcuts">
<shortcut
id="org.eclipse.statet.r.launchShortcuts.RChunkDirect"
category="org.eclipse.statet.r.other"
modes="run"
class="org.eclipse.statet.internal.redocs.r.ui.debug.SubmitRChunkDirectLaunchShortcut"
label="%launchShortcuts_RunRChunkDirect_label"
icon="platform:/plugin/org.eclipse.statet.redocs.r/icons/tool_16/run-r-chunk.png"
path="statet/r/3">
<enablement>
<reference
definitionId="org.eclipse.statet.redocs.expressions.isPartActive.RweaveEditor"/>
</enablement>
<contextualLaunch>
<enablement>
<reference
definitionId="org.eclipse.statet.redocs.expressions.isPartActive.RweaveEditor"/>
</enablement>
<contextLabel
label="%launchShortcuts_RunRChunkDirect_label"
mode="run">
</contextLabel>
</contextualLaunch>
</shortcut>
<shortcut
id="org.eclipse.statet.r.launchShortcuts.RChunkDirectAndConsole"
category="org.eclipse.statet.r.other"
modes="run"
class="org.eclipse.statet.internal.redocs.r.ui.debug.SubmitRChunkDirectLaunchShortcut$AndGotoConsole"
label="%launchShortcuts_RunRChunkDirectAndGotoConsole_label"
icon="platform:/plugin/org.eclipse.statet.redocs.r/icons/tool_16/run-r-chunk.png"
path="statet/r/3">
<enablement>
<reference
definitionId="org.eclipse.statet.redocs.expressions.isPartActive.RweaveEditor"/>
</enablement>
</shortcut>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="org.eclipse.statet.r.launchShortcuts.RChunkDirect.run"
contextId="org.eclipse.statet.redocs.contexts.RweaveEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+R M1+W">
</key>
<key
commandId="org.eclipse.statet.r.launchShortcuts.RChunkDirectAndConsole.run"
contextId="org.eclipse.statet.redocs.contexts.RweaveEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+R W">
</key>
</extension>
<!-- Document Processing -->
<extension
point="org.eclipse.ui.commands">
<command
id="org.eclipse.statet.redocs.commands.ProcessWeaveDefault"
categoryId="org.eclipse.statet.docmlet.commands.EditDocsCategory"
name="%commands_ProcessWeave_name"
description="%commands_ProcessWeave_description">
</command>
</extension>
<extension
point="org.eclipse.ui.bindings">
<key
commandId="org.eclipse.statet.redocs.commands.ProcessWeaveDefault"
contextId="org.eclipse.statet.redocs.contexts.RweaveEditorScope"
schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
sequence="M1+T 2">
</key>
</extension>
</plugin>