mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-21 21:52:10 +02:00
Bug 565461 - Contribute "Show in Local Terminal" to Bndtools Explorer
Change-Id: Ia9edd87e7594bf5def0e511c34694e4098c64529 Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
This commit is contained in:
parent
35afa5764c
commit
a1a3b357ec
3 changed files with 91 additions and 1 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
|||
Bundle-ManifestVersion: 2
|
||||
Bundle-Name: %pluginName
|
||||
Bundle-SymbolicName: org.eclipse.tm.terminal.connector.local;singleton:=true
|
||||
Bundle-Version: 4.6.0.qualifier
|
||||
Bundle-Version: 4.6.100.qualifier
|
||||
Bundle-Activator: org.eclipse.tm.terminal.connector.local.activator.UIPlugin
|
||||
Bundle-Vendor: %providerName
|
||||
Import-Package: org.eclipse.cdt.utils.pty;mandatory:=native
|
||||
|
|
|
@ -118,6 +118,49 @@
|
|||
</visibleWhen>
|
||||
</command>
|
||||
</menuContribution>
|
||||
|
||||
<!-- Bndtools Explorer "Show In" contribution -->
|
||||
<menuContribution locationURI="popup:org.eclipse.tm.terminal.view.ui.BndtoolsExplorer.menu.showIn?after=additions">
|
||||
<command
|
||||
commandId="org.eclipse.tm.terminal.connector.local.command.launch"
|
||||
id="org.eclipse.tm.terminal.connector.local.commands.showin.launch"
|
||||
label="%menu.showIn.localterminal.label"
|
||||
style="push">
|
||||
<visibleWhen
|
||||
checkEnabled="false">
|
||||
<or>
|
||||
<with variable="selection">
|
||||
<iterate operator="and" ifEmpty="false">
|
||||
<adapt type="org.eclipse.core.resources.IResource">
|
||||
<not>
|
||||
<!-- The JDT Project Explorer contributions are adding the "Navigate -> Show In" quick menu.
|
||||
See o.e.jdt.internal.ui.navigator.JavaNavigatorActionProvider -->
|
||||
<test property="org.eclipse.core.resources.projectNature" value="org.eclipse.jdt.core.javanature" />
|
||||
</not>
|
||||
</adapt>
|
||||
</iterate>
|
||||
</with>
|
||||
<and>
|
||||
<with variable="selection">
|
||||
<iterate operator="and" ifEmpty="false">
|
||||
<adapt type="org.eclipse.core.resources.IResource">
|
||||
<!-- The JDT Project Explorer contributions are adding the "Navigate -> Show In" quick menu.
|
||||
See o.e.jdt.internal.ui.navigator.JavaNavigatorActionProvider -->
|
||||
<test property="org.eclipse.core.resources.projectNature" value="org.eclipse.jdt.core.javanature" />
|
||||
</adapt>
|
||||
</iterate>
|
||||
</with>
|
||||
<with
|
||||
variable="org.eclipse.tm.terminal.external.executable.configured">
|
||||
<equals
|
||||
value="TRUE">
|
||||
</equals>
|
||||
</with>
|
||||
</and>
|
||||
</or>
|
||||
</visibleWhen>
|
||||
</command>
|
||||
</menuContribution>
|
||||
</extension>
|
||||
|
||||
<!-- Command contributions -->
|
||||
|
|
|
@ -296,6 +296,53 @@
|
|||
</dynamic>
|
||||
</menu>
|
||||
</menuContribution>
|
||||
|
||||
<!-- Bndtools Explorer "Show In" contribution -->
|
||||
<menuContribution locationURI="popup:bndtools.PackageExplorer?before=group.edit">
|
||||
<menu
|
||||
id="org.eclipse.tm.terminal.view.ui.BndtoolsExplorer.menu.showIn"
|
||||
label="%menu.showIn.label"
|
||||
mnemonic="%menu.showIn.mnemonic">
|
||||
<separator name="additions" visible="false"/>
|
||||
<dynamic
|
||||
class="org.eclipse.tm.terminal.view.ui.local.showin.DynamicContributionItems"
|
||||
id="org.eclipse.tm.terminal.connector.local.LocalLauncherDynamicContributionItems">
|
||||
<visibleWhen
|
||||
checkEnabled="false">
|
||||
<or>
|
||||
<with variable="selection">
|
||||
<iterate operator="and" ifEmpty="false">
|
||||
<adapt type="org.eclipse.core.resources.IResource">
|
||||
<not>
|
||||
<!-- The JDT Project Explorer contributions are adding the "Navigate -> Show In" quick menu.
|
||||
See o.e.jdt.internal.ui.navigator.JavaNavigatorActionProvider -->
|
||||
<test property="org.eclipse.core.resources.projectNature" value="org.eclipse.jdt.core.javanature" />
|
||||
</not>
|
||||
</adapt>
|
||||
</iterate>
|
||||
</with>
|
||||
<and>
|
||||
<with variable="selection">
|
||||
<iterate operator="and" ifEmpty="false">
|
||||
<adapt type="org.eclipse.core.resources.IResource">
|
||||
<!-- The JDT Project Explorer contributions are adding the "Navigate -> Show In" quick menu.
|
||||
See o.e.jdt.internal.ui.navigator.JavaNavigatorActionProvider -->
|
||||
<test property="org.eclipse.core.resources.projectNature" value="org.eclipse.jdt.core.javanature" />
|
||||
</adapt>
|
||||
</iterate>
|
||||
</with>
|
||||
<with
|
||||
variable="org.eclipse.tm.terminal.external.executable.configured">
|
||||
<equals
|
||||
value="TRUE">
|
||||
</equals>
|
||||
</with>
|
||||
</and>
|
||||
</or>
|
||||
</visibleWhen>
|
||||
</dynamic>
|
||||
</menu>
|
||||
</menuContribution>
|
||||
|
||||
</extension>
|
||||
<extension point="org.eclipse.ui.commands">
|
||||
|
|
Loading…
Add table
Reference in a new issue