Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311067 - On Mac Configure Parameters doesn't always use last parameter entered
Summary: On Mac Configure Parameters doesn't always use last parameter entered
Status: RESOLVED FIXED
Alias: None
Product: Data Tools
Classification: Tools
Component: SQLDevTools (show other bugs)
Version: 1.7   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 1.9.2   Edit
Assignee: Charles Eutsler CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-29 13:14 EDT by Charles Eutsler CLA
Modified: 2011-11-23 18:41 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Charles Eutsler CLA 2010-04-29 13:14:33 EDT
Build Identifier: 20090619-0625

If the cell editor in the Configure Parameters doesn't lose focus before the OK button is pressed, the value for the parameter remains unchanged (null when initial values are being entered into a run configuration).

Reproducible: Always

Steps to Reproduce:
1. Install Eclipse 3.5 on Mac
2. Use update site to install the Data Tools features
3. Have derby.jar file available.
4. In Data Source Explorer connect to a Derby database
5. Expand Data Source Explorer to show the Stored Procedures in the SQLJ schema.
6. Select INSTALL_JAR and select the "Run" item from its context menu.
7. In the Configure Parameters dialog uncheck the Null checkbox in the URL parameter line.  THIS IS IMPORTANT.  Because of Bug 285627, if you don't do this THE APPLICATION WILL HANG.  Enter some text in the Value cell.  (It doesn't really matter what is entered...the procedure isn't going to run)
8. Uncheck the Null check box in the JAR parameter line.  Enter some text in the Value cell.  DO NOT click anywhere else in the dialog box...leave the cell with input focus (the cell will contain the blinking cursor).
9. Press the OK button.

The Status window of the SQL Results will show that the call to the SQLJ.INSTALL_JAR procedure was made with the value "null" for the JAR parameter (even though an entry was made in the Configure Parameters dialog). 

If you do Step 8 then click somewhere other than the OK button to cause the JAR value cell to lose focus then press the OK button the Status window will show that the value that was entered is used as the value to the JAR parameter.
Comment 1 Charles Eutsler CLA 2011-11-23 18:41:47 EST
Fixed by committing any active cell editors when the OK button is pressed.

Git commit record:
http://git.eclipse.org/c/datatools/org.eclipse.datatools.sqltools.git/commit/?id=c1a3fc54dbbea6f947529edc1504c2d9e7f0970c