Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » How to create SubSystem Programatically? (make a connection and retrieve directory and files without UI)
How to create SubSystem Programatically? [message #639623] Wed, 17 November 2010 04:05 Go to previous message
Mark Anderson is currently offline Mark Anderson
Messages: 8
Registered: October 2010
Junior Member
Hi everybody?

I have a simple question.
My goal is to provide remote accessing functionality in my own resource browsing tree (kind of eclipse project).
We're using SSH to access remote server now.

First of all, I've created IHost instance

ISystemRegistry sr = SystemStartHere.getSystemRegistry();	
ISystemProfile profile = sr.getSystemProfileManager().createSystemProfile(profileName, true);		
IRSESystemType systemType = RSECorePlugin.getTheCoreRegistry().getSystemTypeById("org.eclipse.rse.systemtype.ssh");
IHost host = sr.createHost(profileName, systemType, connectionName, apInfo.getIp(), connectionDesc,  apInfo.getId(), IRSEUserIdConstants.USERID_LOCATION_HOST, configurators);


But SSH system type had three SubSystems (SSH.Files, SSH.Terminal, SSH.Shell)
And the last parameter of createHost() 'configurators' is a kind of constructor for each sub systems I think.
Actually SSH.Terminal and Shell is not fit for me but it's not a problem at now. Smile

I have a question at this point...
How can I create each configurator instances for thress sub systems?
Source file of org.eclipse.rse.ui.wizard looks tightly coupled with IWizard.
But I would like to make a connection and retrieve directory and files without UI.
Is there any simple instruction or sample source files for it?
I've searched this forum but I didn't find it.

I would appreciate any comments.
Have a nice day~

[Updated on: Wed, 17 November 2010 04:19]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:using RSE in OSGi containers (Equinox)
Next Topic:IRemoteFile.exists() returns true but can't download file with following message
Goto Forum:
  


Current Time: Sat May 18 04:51:39 EDT 2013

Powered by FUDForum. Page generated in 0.01719 seconds