This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hi, Thanks for the awesome IDE! Current Problem - No shortcut key that can be assigned to "Execute Command" for Database connections; - There is no icon any where on the UI for "Execute Command"; - There is no menu entry for "Execute Command", except for right-clicking on a database connection and then selecting "Execute Command", which actually queries an active database connection when working with a project. Solution - Creating a "Run Database Command" or "Run {SQL} Query" under Tools > Options > Keymaps; - Assign a default shortcut key to the above with Alt+Shift+Q; - Create a new icon (or use existing icon from "Execute Command > SQL Command" with the play button on the database) next to the "Select Database Connection" underneath the tabs in code view Thank you!
Created attachment 149524 [details] proposed patch v1 The attached patch fixes the report (missing the entry in a menu or toolbar). I registers a global "Execute Command" action, moves the individual entries for the existing action to a shadow of this new global action and adds a shortcut for this.
*** Bug 153568 has been marked as a duplicate of this bug. ***
I committed a fix as: http://hg.netbeans.org/core-main/rev/1613518aaf04 The ExecuteCommand action is now globally usable and can be assigned a shortcut in the keymap part of options (Action name is "Execute Command ...", category is "Database"). I did not assign a default short cut to not pollute the keymap. In the next few days a nightly build will be available that contains that change. Please check that, whether you feel that it fixes your problem. When the nightly is available, a message is appended to this bug. If you find your problem fixed, please change the status of this bug to VERIFIED.
Integrated into 'main-silver', will be available in build *201502150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/1613518aaf04 User: Matthias Blaesing <matthias42@netbeans.org> Log: #188051: Make "ExecuteCommand"-Action callable without database and register as global action