|How to create SubSystem Programatically? [message #639623]
||Wed, 17 November 2010 09:05
| Mark Anderson
Registered: October 2010
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.
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 09:19]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02190 seconds