Bug 8303 - [Contributions] Actions not greyed out properly
Summary: [Contributions] Actions not greyed out properly
Status: RESOLVED DUPLICATE of bug 11178
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2002-01-23 15:55 EST by Jeff Brown CLA
Modified: 2002-11-15 12:39 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Brown CLA 2002-01-23 15:55:31 EST
The "Show Source of Selected Element Only" and "Show Hover Text"
buttons are not greyed out correctly under some circumstances
when they are disabled.  This leads the user to believe that
they are still active, though they are not.

To see the problem:
Open a Java Editor.
Notice that both buttons are active.
Ensure both buttons are in the "pushed" state.
Switch to the Outline view by clicking inside it, or on its tab.
Notice that button borders vanish, but the button image has not
  been greyed out.
Switch back to the Java Editor.
Click on each button so that neither is in the "pushed" state.
Switch again to the Outline view.
Notice that the buttons are greyed out as they should be.

Looks like you're just missing a disabled (grey) version of the
image when the button is in the "pushed" state.
Comment 1 Erich Gamma CLA 2002-01-24 05:59:55 EST
As far is I know there is no support for a disabled-pushed image, but I agree 
that the current rendering of the pushed state is misleading.

Moving to platform UI for comment.
Comment 2 Simon Arsenault CLA 2002-11-14 16:19:02 EST
Moving to SWT for comments. Is there anything SWT can do to support this 
request? Any existing SWT API the workbench can use to work around this problem?

Comment 3 Christophe Cornu CLA 2002-11-15 10:27:28 EST
The SWT behavior is that when a composite is disabled (or, consistently, a 
toolbar/coolbar), events are not propagated to its children (respectively tool 
items/coolitems). The children are not modified by SWT when their composite is 
disabled.
Comment 4 Christophe Cornu CLA 2002-11-15 11:46:03 EST
Please ignore my former comment. 
There is an SWT PR for this. Please check it - you can probably mark PR8303 as 
duplicate of PR11178 then.
http://bugs.eclipse.org/bugs/show_bug.cgi?id=11178
Comment 5 Simon Arsenault CLA 2002-11-15 12:39:37 EST

*** This bug has been marked as a duplicate of 11178 ***