Skip to content

Commit 869651b

Browse files
committed
Generate disabled menu item icon descriptor
1 parent 636de3b commit 869651b

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

  • memory/org.eclipse.cdt.debug.ui.memory.floatingpoint

memory/org.eclipse.cdt.debug.ui.memory.floatingpoint/META-INF/MANIFEST.MF

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %pluginName
44
Bundle-SymbolicName: org.eclipse.cdt.debug.ui.memory.floatingpoint;singleton:=true
5-
Bundle-Version: 1.2.400.qualifier
5+
Bundle-Version: 1.2.500.qualifier
66
Bundle-Localization: plugin
77
Require-Bundle: org.eclipse.debug.core;bundle-version="[3.23.0,4)",
88
org.eclipse.debug.ui;bundle-version="[3.19.0,4.0.0)",
99
org.eclipse.core.runtime;bundle-version="[3.34.0,4.0.0)",
1010
org.eclipse.ui;bundle-version="[3.207.200,4)",
11+
org.eclipse.jface;bundle-version="[3.40.0,4.0.0)",
1112
org.eclipse.search;bundle-version="[3.17.200,4)",
1213
org.eclipse.cdt.debug.core;bundle-version="[9.0.0,10)"
1314
Bundle-ActivationPolicy: lazy

memory/org.eclipse.cdt.debug.ui.memory.floatingpoint/src/org/eclipse/cdt/debug/ui/memory/floatingpoint/FPRendering.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2006, 2016 Wind River Systems Inc. and others.
2+
* Copyright (c) 2006, 2026 Wind River Systems Inc. and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -11,6 +11,7 @@
1111
* Contributors:
1212
* Ted R Williams (Wind River Systems, Inc.) - initial implementation
1313
* Randy Rohrbach (Wind River Systems, Inc.) - Copied and modified to create the floating point plugin
14+
* John Dallaway - Generate disabled menu item icon descriptor (#1485)
1415
*******************************************************************************/
1516

1617
package org.eclipse.cdt.debug.ui.memory.floatingpoint;
@@ -1195,10 +1196,10 @@ public CopyAction(Rendering rendering, int clipboardType) {
11951196
fRendering = rendering;
11961197
setText(DebugUIMessages.CopyViewToClipboardAction_title);
11971198
setToolTipText(DebugUIMessages.CopyViewToClipboardAction_tooltip);
1198-
setImageDescriptor(
1199-
DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_COPY_VIEW_TO_CLIPBOARD));
1200-
setDisabledImageDescriptor(
1201-
DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_COPY_VIEW_TO_CLIPBOARD));
1199+
ImageDescriptor descriptor = DebugPluginImages
1200+
.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_COPY_VIEW_TO_CLIPBOARD);
1201+
setImageDescriptor(descriptor);
1202+
setDisabledImageDescriptor(descriptor.asDisabledDescriptor());
12021203
}
12031204

12041205
@Override

0 commit comments

Comments
 (0)