Community
Participate
Working Groups
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.
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.
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?
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.
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
*** This bug has been marked as a duplicate of 11178 ***