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.

Bug 188051 - Execute Command for Services > Databases
Summary: Execute Command for Services > Databases
Status: RESOLVED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: matthias42
URL:
Keywords: PATCH_AVAILABLE
: 153568 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-24 13:03 UTC by starnixsa
Modified: 2015-02-15 06:50 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
proposed patch v1 (14.31 KB, patch)
2014-09-25 19:39 UTC, matthias42
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description starnixsa 2010-06-24 13:03:41 UTC
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!
Comment 1 matthias42 2014-09-25 19:39:04 UTC
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.
Comment 2 matthias42 2014-09-26 18:19:51 UTC
*** Bug 153568 has been marked as a duplicate of this bug. ***
Comment 3 matthias42 2015-02-14 15:56:32 UTC
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.
Comment 4 Quality Engineering 2015-02-15 06:50:42 UTC
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