Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [dsdp-tm-dev] create rse connections programmatically.

Hi Wei,

Here's an example (from a tutorial we did at the recent Eclipsecon) of how you can programmatically create RSE connections:

                   // the host we want to connect to
                    String hostName = ""; //$NON-NLS-1$
                    // get the singleton RSE registry
                ISystemRegistry registry = RSECorePlugin.getDefault().getSystemRegistry();
                // get the default profile, used to store connections
                ISystemProfile profile = "">
                // see if a host object already exists for ""
                IHost host = registry.getHost(profile, hostName);
                if (host == null)
                        // if there's no host then we will create it
                                // create the host object as an SSH Only connection
                            host = registry.createHost(
                                            "SSH Only",        //System Type Name        //$NON-NLS-1$
                                            hostName,        //Connection name
                                            hostName,        //IP Address                
                                            "Connection to Eclipse build site"); //description //$NON-NLS-1$
                        catch (Exception e)
                        if (host == null)

Hope this helps,
David McKnight    
Phone:   905-413-3902 , T/L:  969-3902
Internet: dmcknigh@xxxxxxxxxx
Mail:       D1/YFY/8200/TOR

Wei Zhang <zhangwei_2000_2000@xxxxxxxxx>
Sent by: dsdp-tm-dev-bounces@xxxxxxxxxxx

21/03/2007 11:09 AM

Please respond to
Target Management developer discussions <dsdp-tm-dev@xxxxxxxxxxx>

[dsdp-tm-dev] create rse connections programmatically.

hello there,

i would like to extend rse and generate connections in rse prospective programmatically. could anybody tell me how?


Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
dsdp-tm-dev mailing list

Back to the top