Community
Participate
Working Groups
Through Eclipse, actions such as "Hide Methods" or "Show Packages" toggle their tooltip messages. For example, they become "show methods" or "hide packages". The job of a toggle UI is to display the *current* state, not what would happen if you click on it. The tooltip should be constant, just as the text in the menu would be. Would it make sense in a menubar to have the "Status Bar" menuitem change to a "Hide Status Bar" with a check next to it? If not, why should tooltips be any different? Imagine if in Microsoft Word when you hovered over the BOLD Toolbar Item it read "Normal" because you were currently inside bold text. Or if the rocker-arm on a light switch read "off" when it was in the up position instead of "on". Toggles should be like the "A/C" button in a Japanese car. It is always labeled "A/C", and the button's position visually tells you if the A/C is on or not.
The tooltip should show what state the button controls. It should not change to show what the current state is, or what the future state will be. These are JDT buttons, but there's an existing PR for this problem. *** This bug has been marked as a duplicate of 7638 ***