mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-06 07:45:50 +02:00
Bug 494508 - Show in local terminal only available in project explorer
Added the menu contributions to popup:org.eclipse.jdt.ui.PackageExplorer?before=group.edit additionally to the ProjectExplorer contributions. Change-Id: I1438057d82389c332c3678a3568bf0706497b49f Signed-off-by: Dirk Fauth <dirk.fauth@googlemail.com>
This commit is contained in:
parent
0bb01ded3a
commit
159afcfd92
2 changed files with 90 additions and 0 deletions
|
@ -65,6 +65,49 @@
|
|||
</visibleWhen>
|
||||
</command>
|
||||
</menuContribution>
|
||||
|
||||
<!-- JDT Package Explorer "Show In" contribution -->
|
||||
<menuContribution locationURI="popup:org.eclipse.tm.terminal.view.ui.PackageExplorer.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 -->
|
||||
|
|
|
@ -239,6 +239,53 @@
|
|||
</dynamic>
|
||||
</menu>
|
||||
</menuContribution>
|
||||
|
||||
<!-- JDT Package Explorer "Show In" contribution -->
|
||||
<menuContribution locationURI="popup:org.eclipse.jdt.ui.PackageExplorer?before=group.edit">
|
||||
<menu
|
||||
id="org.eclipse.tm.terminal.view.ui.PackageExplorer.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