Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dtp-connect-dev] How to get the NewConnectionProfileWizard from a connection profile?


Hi Rob,
        The use case is when user creates/opens a .sql file, we pops up a dialog for user to specify the connection info, which includes database vendor definition, and optionally connection profile name and the catalog name. It's possible that when this dialog pops up, there's no connection profile created at all, so we want to allow the user to create one on the fly. Any suggestion?
       

Best Regards!

Max ( Hui ) Cao
Sr S/W Eng - Dev
Sybase, Inc. Shanghai, China
Tel: 86-21-68799918-3047




rcernich@xxxxxxxxxx
Sent by: dtp-connect-dev-bounces@xxxxxxxxxxx

12/23/2005 09:54 AM

Please respond to
DTP Connectivity project development list <dtp-connect-dev@xxxxxxxxxxx>

To
DTP Connectivity project development list <dtp-connect-dev@xxxxxxxxxxx>
cc
DTP Connectivity project development list <dtp-connect-dev@xxxxxxxxxxx>, dtp-connect-dev-bounces@xxxxxxxxxxx
Subject
Re: [dtp-connect-dev] How to get the NewConnectionProfileWizard from a        connection profile?





Max,

The relationship between a dbdefinition and a profile provider is not
managed.  What is the specific use case that would require you to invoke a
particular new wizard using only a dbdefinition as the input (won't you
already have a connection in this case)?

Currently, the user may have various paths for creating a DB connection
profile depending on how the vendor chose to implement their profile.  The
profile may be entirely custom or may simply provide a custom driver
definition that is used in conjunction with the generic db profile.  In the
former case, the user invokes a wizard supplied by the specific vendor and
may only be required to specify vendor specific information (i.e. they may
not have to specify a driver definition, just specifics about the
connection).  In the latter case, the user invokes the generic db wizard
and selects the driver definition that corresponds to the vendor's db (i.e.
information like the dbdefinition, driver class, etc. is specified through
the driver definition and is used by the generic profile).

Hope that helps,
Rob



                                                                         
            Hui.Cao@xxxxxxxxx                                            
            m                                                            
            Sent by:                                                   To
            dtp-connect-dev-b         DTP Connectivity project            
            ounces@xxxxxxxxxx         development list                    
            g                         <dtp-connect-dev@xxxxxxxxxxx>      
                                                                       cc
                                                                         
            12/22/2005 06:37                                      Subject
            PM                        Re: [dtp-connect-dev] How to get    
                                      the NewConnectionProfileWizard from
                                      a  connection profile?              
            Please respond to                                            
            DTP Connectivity                                              
                 project                                                  
            development list                                              
            <dtp-connect-dev@                                            
              eclipse.org>                                                
                                                                         
                                                                         





Thanks Rob,
       Your information does help. But I'm sorry that my previous question
was not accurate. What I really want to do is: given a database vendor
definition with vendor name and version, can I invoke the particular
NewConnectionProfileWizard? Since you have mentioned the
ConnectionProfileManager.getNewWizard(IConnectionProfile.getProviderID())
method, I think the question becomes: do we have a specific relationship
between a database vendor definition and a connection profile provider?

Best Regards!

Max ( Hui ) Cao
Sr S/W Eng - Dev
Sybase, Inc. Shanghai, China
Tel: 86-21-68799918-3047



                                                                         
rcernich@xxxxxxxxxx                                                      
Sent by:                                                                  
dtp-connect-dev-bounces@eclipse                                        To
.org                                 DTP Connectivity project development
                                     list <dtp-connect-dev@xxxxxxxxxxx>  
                                                                       cc
12/23/2005 12:20 AM                                                      
                                                                  Subject
                                     Re: [dtp-connect-dev] How to get the
       Please respond to             NewConnectionProfileWizard from a    
    DTP Connectivity project         connection profile?                  
        development list                                                  
 <dtp-connect-dev@xxxxxxxxxxx>                                            
                                                                         
                                                                         
                                                                         
                                                                         
                                                                         





Hey Max,

Looks like you have to use
ConnectionProfileManager.getNewWizard(IConnectionProfile.getProviderID()).
Ideally, this should be accessible through IConnectionProfileProvider.
I'll create a bugzilla entry to add this method to the public APIs.

Hope that helps,
Rob




           Hui.Cao@xxxxxxxxx
           m
           Sent by:                                                   To
           dtp-connect-dev-b         dtp-connect-dev@xxxxxxxxxxx
           ounces@xxxxxxxxxx                                          cc
           g
                                                                 Subject
                                     [dtp-connect-dev] How to get the
           12/22/2005 03:47          NewConnectionProfileWizard from a
           AM                        connection profile?


           Please respond to
           DTP Connectivity
                project
           development list
           <dtp-connect-dev@
             eclipse.org>







Hi,
      Can anybody give me some hints about this problem? Since a concrete
NewConnectionProfileWizard is declared in the newWizard element of the
connectionProfile extension point, I believe there must be a way to get it
given a connection profile. Thanks!

Best Regards!

Max ( Hui ) Cao
Sr S/W Eng - Dev
Sybase, Inc. Shanghai, China
_______________________________________________
dtp-connect-dev mailing list
dtp-connect-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-connect-dev


_______________________________________________
dtp-connect-dev mailing list
dtp-connect-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-connect-dev

_______________________________________________
dtp-connect-dev mailing list
dtp-connect-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-connect-dev


_______________________________________________
dtp-connect-dev mailing list
dtp-connect-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dtp-connect-dev



Back to the top