Bug 202641 - Add ability to pre-populate a connection UI with driver defs
Summary: Add ability to pre-populate a connection UI with driver defs
Status: CLOSED FIXED
Alias: None
Product: Data Tools
Classification: Tools
Component: Connectivity (show other bugs)
Version: Ganymede   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 1.6M6   Edit
Assignee: Brian Fitzpatrick CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-07 10:45 EDT by Brian Fitzpatrick CLA
Modified: 2008-07-01 17:40 EDT (History)
1 user (show)

See Also:


Attachments
Patch fixes creating default drivers once and only once in a workspace lifecycle (4.06 KB, patch)
2008-01-15 13:23 EST, Brian Fitzpatrick CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Fitzpatrick CLA 2007-09-07 10:45:27 EDT
Ability to pre-populate a connection UI with driver definitions.

Need additional information from Larry. This may already exist with the ability to auto-create a default instance of a particular driver template at startup and then reference default drivers by id in the driver drop-down.
Comment 1 Larry Dunnell CLA 2007-12-18 16:27:54 EST
Note that in order to pre-populate valid driver definitions, a facility needs to exist that allows adopters to provide the location of the driver jars at runtime.  Static paths do not work as the jars are commonly located inside Eclipse plug-ins/fragments and the version numbers and hence the absolute paths to those drivers can change over time.  The facility needs to be able to allow the location to be calculated at runtime so that the plug-in relative path can be converted into an absolute path.
Comment 2 Brian Fitzpatrick CLA 2008-01-15 13:17:59 EST
In addition, the creation of default driver definitions should only occur once - when the workspace is created. Currently it occurs each time the workbench is started, which has the unfortunate effect of recreating default driver definitions if one is missing (i.e. you start up a workbench, delete a driver you don't want that was created by default, restart the workbench, and there it is again). We need to change this so it occurs once and then doesn't reoccur. 
Comment 3 Brian Fitzpatrick CLA 2008-01-15 13:23:08 EST
Created attachment 86961 [details]
Patch fixes creating default drivers once and only once in a workspace lifecycle

Hey Larry...

Here's a patch that takes care of the issue with creating default drivers over and over again. Can you take a look? 

If it's ok, let me know and I'll work on John's solution of having a class that provides driver property values once this is delivered.

--Fitz
Comment 4 Brian Fitzpatrick CLA 2008-01-15 13:53:27 EST
Delivered 1st patch for default driver definition creation at workspace startup to the 1.6 head stream.
Comment 5 Brian Fitzpatrick CLA 2008-01-28 14:13:06 EST
Moving this to M6 as part of the usability effort
Comment 6 Brian Fitzpatrick CLA 2008-02-05 13:58:34 EST
Larry, has this bug been addressed by the driverValuesProvider work?
Comment 7 Larry Dunnell CLA 2008-02-05 14:05:41 EST
Yes, you can resolve this defect.
Comment 8 Brian Fitzpatrick CLA 2008-02-05 14:13:48 EST
Marking as fixed.
Comment 9 Brian Fitzpatrick CLA 2008-07-01 17:40:36 EDT
Closing bugs