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 = "build.eclipse.org"; //$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 "build.eclipse.org"
                IHost host = registry.getHost(profile, hostName);
                if (host == null)
                {
                        // if there's no host then we will create it
                        try
                        {
                                // 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)
                        {
                                e.printStackTrace();
                        }
                        if (host == null)
                                return;
                }

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>

To
dsdp-tm-dev@xxxxxxxxxxx
cc
Subject
[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?

regard,wei.




____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
_______________________________________________
dsdp-tm-dev mailing list
dsdp-tm-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev


Back to the top