Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Using SSH service in other subsystems
Using SSH service in other subsystems [message #22649] Tue, 29 April 2008 21:59 Go to next message
Eclipse UserFriend
Originally posted by: Cyrus.trainor.gmail.com

Hello,

I've been trying to implement a new subsystem that uses the ssh service.
However, the ssh service components are internal and their use is
restricted. I've considered modifying the source to add extension points
to the ssh plugin but I must be missing something conceptually. Can
someone please explain why this would be the wrong way to do this?

Is there a correct way to add a new subsystem that uses the existing ssh
service?

Thanks,

Cyrus
Re: Using SSH service in other subsystems [message #22693 is a reply to message #22649] Mon, 05 May 2008 15:51 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 985
Registered: July 2009
Senior Member
Hi Cyrus,

you have two options for achieving what you want. Either,
(a) Create a new system type and pull in the subsystem config:

<extension point="org.eclipse.rse.core.systemTypes">
<systemType id="org.eclipse.rse.tests.testSystemType"
name="Tests Only"
subsystemConfigurationIds="ssh.files" />
</extension>

or, (b) Create a new "MySShSubsystemConfiguration" and register
it against the system types you need:

<extension point="org.eclipse.rse.core.subsystemConfigurations">
<configuration category="files"

class=" org.eclipse.rse.subsystems.files.ssh.SftpFileSubSystemConfig uration "
id="org.foobar.ssh.files"
systemTypeIds="org.eclipse.rse.systemtype.ssh" />
</extension>

I have limited the examples above to the most needed properties only,
you'll need to add fields such as a name, label, icon etc -- but you see
the important point, re-use the SftpFielSubSystemConfiguration class
with a new plugin.xml extension in (b) or pull in the existing ID with
your new system type in (a).

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm


Cyrus wrote:
> Hello,
>
> I've been trying to implement a new subsystem that uses the ssh service.
> However, the ssh service components are internal and their use is
> restricted. I've considered modifying the source to add extension points
> to the ssh plugin but I must be missing something conceptually. Can
> someone please explain why this would be the wrong way to do this?
> Is there a correct way to add a new subsystem that uses the existing ssh
> service?
>
> Thanks,
>
> Cyrus
>
Re: Using SSH service in other subsystems [message #574552 is a reply to message #22649] Mon, 05 May 2008 15:51 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 985
Registered: July 2009
Senior Member
Hi Cyrus,

you have two options for achieving what you want. Either,
(a) Create a new system type and pull in the subsystem config:

<extension point="org.eclipse.rse.core.systemTypes">
<systemType id="org.eclipse.rse.tests.testSystemType"
name="Tests Only"
subsystemConfigurationIds="ssh.files" />
</extension>

or, (b) Create a new "MySShSubsystemConfiguration" and register
it against the system types you need:

<extension point="org.eclipse.rse.core.subsystemConfigurations">
<configuration category="files"

class=" org.eclipse.rse.subsystems.files.ssh.SftpFileSubSystemConfig uration "
id="org.foobar.ssh.files"
systemTypeIds="org.eclipse.rse.systemtype.ssh" />
</extension>

I have limited the examples above to the most needed properties only,
you'll need to add fields such as a name, label, icon etc -- but you see
the important point, re-use the SftpFielSubSystemConfiguration class
with a new plugin.xml extension in (b) or pull in the existing ID with
your new system type in (a).

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm


Cyrus wrote:
> Hello,
>
> I've been trying to implement a new subsystem that uses the ssh service.
> However, the ssh service components are internal and their use is
> restricted. I've considered modifying the source to add extension points
> to the ssh plugin but I must be missing something conceptually. Can
> someone please explain why this would be the wrong way to do this?
> Is there a correct way to add a new subsystem that uses the existing ssh
> service?
>
> Thanks,
>
> Cyrus
>
Previous Topic:Using SSH service in other subsystems
Next Topic:programmatic creation of dynamic filters in Remote System view
Goto Forum:
  


Current Time: Sat Nov 22 13:23:48 GMT 2014

Powered by FUDForum. Page generated in 0.07358 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software