Using SSH service in other subsystems [message #22649] |
Tue, 29 April 2008 17:59  |
Eclipse User |
|
|
|
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 11:51  |
Eclipse User |
|
|
|
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 11:51  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.05088 seconds