mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +02:00
Bug 468875 - Unconditionally hide the "Terminal (Old)" view shortcut
This commit is contained in:
parent
7b12ea8e37
commit
b425014331
3 changed files with 8 additions and 15 deletions
|
@ -16,7 +16,7 @@ providerName = Eclipse.org - Target Management
|
|||
ViewCategory.name=Terminal
|
||||
|
||||
TerminalsView.name=Terminal
|
||||
TerminalsView.name.old=Terminal (Old)
|
||||
TerminalsView.name.old=Terminals (Old)
|
||||
TerminalsView.context.name=In Terminal View
|
||||
TerminalsView.context.description=Show modified keyboard shortcuts in context menu
|
||||
|
||||
|
|
|
@ -21,7 +21,8 @@
|
|||
name="%TerminalsView.name">
|
||||
</view>
|
||||
|
||||
<!-- Contribute another view with the old ID to handle the ID change -->
|
||||
<!-- Bug 466644: Contribute another view with the old (TCF) ID to handle the ID change -->
|
||||
<!-- The sole purpose of this view is to close itself when it's in an old workspace/persepctive -->
|
||||
<view
|
||||
allowMultiple="true"
|
||||
class="org.eclipse.tm.terminal.view.ui.view.OldTerminalsViewHandler"
|
||||
|
@ -137,7 +138,7 @@
|
|||
class="org.eclipse.tm.terminal.view.ui.internal.PropertyTester"
|
||||
id="org.eclipse.tm.terminal.view.ui.PropertyTester"
|
||||
namespace="org.eclipse.tm.terminal.view.ui"
|
||||
properties="oldViewActivityEnabled,hasApplicableLauncherDelegates,canDisconnect"
|
||||
properties="hasApplicableLauncherDelegates,canDisconnect"
|
||||
type="java.lang.Object">
|
||||
</propertyTester>
|
||||
</extension>
|
||||
|
@ -334,23 +335,19 @@
|
|||
<defaultEnablement
|
||||
id="org.eclipse.tm.terminal.view.ui.activity.views">
|
||||
</defaultEnablement>
|
||||
|
||||
|
||||
<!-- Hide the old TCF Terminals (Migration Only) View from the View Shortcuts Menu -->
|
||||
<activity
|
||||
id="org.eclipse.tm.terminal.view.ui.activity.oldview"
|
||||
name="Terminal Views (Old)">
|
||||
<enabledWhen>
|
||||
<test
|
||||
property="org.eclipse.tm.terminal.view.ui.oldViewActivityEnabled"
|
||||
value="true">
|
||||
</test>
|
||||
</enabledWhen>
|
||||
</activity>
|
||||
|
||||
<activityPatternBinding
|
||||
activityId="org.eclipse.tm.terminal.view.ui.activity.oldview"
|
||||
pattern=".*/org\.eclipse\.tcf\.te\.ui\.terminals\.TerminalsView">
|
||||
</activityPatternBinding>
|
||||
|
||||
|
||||
<!-- TBD Remove this category binding to hide the Migration Capability from the Preferences -->
|
||||
<categoryActivityBinding
|
||||
activityId="org.eclipse.tm.terminal.view.ui.activity.oldview"
|
||||
categoryId="org.eclipse.tm.terminal.view.ui.category">
|
||||
|
|
|
@ -31,10 +31,6 @@ public class PropertyTester extends org.eclipse.core.expressions.PropertyTester
|
|||
@SuppressWarnings("cast")
|
||||
@Override
|
||||
public boolean test(Object receiver, String property, Object[] args, Object expectedValue) {
|
||||
// This property is supposed to return always false
|
||||
if ("oldViewActivityEnabled".equals(property)) { //$NON-NLS-1$
|
||||
return false;
|
||||
}
|
||||
|
||||
if ("hasApplicableLauncherDelegates".equals(property)) { //$NON-NLS-1$
|
||||
ISelection selection = receiver instanceof ISelection ? (ISelection)receiver : new StructuredSelection(receiver);
|
||||
|
|
Loading…
Add table
Reference in a new issue