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 205819

Summary: allow to run partial queries not only from context menu
Product: db Reporter: medeag
Component: CodeAssignee: Jaroslav Havlin <jhavlin>
Severity: normal Keywords: NETFIX
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: proposed patch v1
potential icon

Description medeag 2011-12-02 05:26:58 UTC
Currently we can only run selection from context menu, i find this a little bit inconvenient. Is it possible to implement  same functionality with run sql icon(like in pgAdmin3)?
Comment 1 matthias42 2011-12-02 22:06:43 UTC
Created attachment 113782 [details]
proposed patch v1

It is - and it is easy :-)

I added another icon and wired it to the existing action.
Comment 2 matthias42 2011-12-02 22:07:55 UTC
Created attachment 113783 [details]
potential icon
Comment 3 Jaroslav Havlin 2013-02-20 15:11:51 UTC
Thank you for the patch, Matthias!

I've added some changes:

If no text is selected, and the cursor is at the end of line, the statement that ends at that line is used as selected statement.

The border of the icon was slightly sharpened, as it seemed a little blurry with my L&F to me.

Integrated as
Comment 4 Quality Engineering 2013-02-23 04:11:29 UTC
Integrated into 'main-golden', will be available in build *201302222300* on (upload may still be in progress)
User: Jaroslav Havlin <>
Log: #205819: Allow to run partial queries not only from context menu