|
296 KB
Hi Kin-Hong,
The status message on the keyboard shortcut doesnt work in Win XP since ADS 7.0, but I can see that the status message is displayed correctly for Mac OSX.
Is this something that we can implement without much effort ? See a related issue #7721 where we had noticed that the status message is not displayed correctly
When a shortcut keystroke is pressed, the following processing happens in order:
1. The menu item's action is invoked. This sets the proper message in the editor's status area.
2. The key binding's action is invoked. The default action clears the message in the editor's status area.
Therefore, the message is being set (as seen when user selects the menu item), only that for shortcut action, the message was being erased right afterwards.
I am not sure why Netbean's editor's default action clears the message in the editor's status area. But I think a safe fix is to delay the message update by the menu item's action, after all pending events have been processed (i.e. use EventQueue#invokeLater). EventQueue#invokeLater is already being used by QueryThread to display status message in the editor, i.e., the shortcut keystroke Ctrl+E displays proper status messages.
When a shortcut keystroke is pressed, the following processing happens in order:
1. The menu item's action is invoked. This sets the proper message in the editor's status area.
2. The key binding's action is invoked. The default action clears the message in the editor's status area.
Therefore, the message is being set (as seen when user selects the menu item), only that for shortcut action, the message was being erased right afterwards.
I am not sure why Netbean's editor's default action clears the message in the editor's status area. But I think a safe fix is to delay the message update by the menu item's action, after all pending events have been processed (i.e. use EventQueue#invokeLater). EventQueue#invokeLater is already being used by QueryThread to display status message in the editor, i.e., the shortcut keystroke Ctrl+E displays proper status messages.
Issue #9366 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build ADS 14.0.0-beta-35 |
No time estimate |
1 issue link |
relates to #7721
Issue #7721Commit query using Ctrl+Shift+C is creating a query analyzer clone and not committing |
Hi Kin-Hong,
The status message on the keyboard shortcut doesnt work in Win XP since ADS 7.0, but I can see that the status message is displayed correctly for Mac OSX.
Is this something that we can implement without much effort ? See a related issue #7721 where we had noticed that the status message is not displayed correctly