Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Integrating with RSE, Leveraging RSE api
Integrating with RSE, Leveraging RSE api [message #8975] Thu, 17 May 2007 18:45 Go to next message
Steve Elsemore is currently offline Steve ElsemoreFriend
Messages: 10
Registered: July 2009
Junior Member
I'm working on a plugin that includes a view with a tree that has nodes
representing remote hosts. I want to make these nodes expandable to
provide access to the remote file system.

Ideally, the subnodes would be the same as what you see if you expand an
RSE connection to the same host. With that in mind, I’d like to leverage
the RSE API as much as possible to retrieve my content, contribute context
menu options, etc. I could use some help figuring out how feasible this
is, and what API’s are available to me for such a purpose.

If this is not practical, my next choice would be to provide a “Show in
RSE” option in my plugin that would programmatically create an RSE
connection for the selected host (if one does not already exist) and then
open the Remote Systems view, with that connection shown. Again, if this
can be done, I could use some help getting started.

Finally, I’d like to be able to select a host in my view and open an SSH
shell using the Terminal view. Is it possible to programmatically open a
terminal in that view and connect, feeding it the host and credentials?

Thanks!
Re: Integrating with RSE, Leveraging RSE api [message #9001 is a reply to message #8975] Thu, 17 May 2007 19:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mphippard.collab.net

Just to expand on Steve's request, in this app this information is being
presented along with a lot of other stuff. Which is why we are not just
using RSE from the get-go. In other words, we have this existing UI, we
need it, and it has these hosts already in it. It would make for a better
user experience if there were away to build on the RSE and SSH functionality
from our UI rather than send the user to another view to do those things.

Thanks for any ideas/pointers you can provide. Being able to open the
Terminal view to an SSH shell would be a great "quick win" for us and should
be easy to integrate into our UI.

Mark


On 5/17/07 2:45 PM, in article
59c7d5835e4372c5cc94f7dde8e026ba$1@www.eclipse.org, "Steve Elsemore"
<selsemore@collab.net> wrote:

> I'm working on a plugin that includes a view with a tree that has nodes
> representing remote hosts. I want to make these nodes expandable to
> provide access to the remote file system.
>
> Ideally, the subnodes would be the same as what you see if you expand an
> RSE connection to the same host. With that in mind, I?d like to leverage
> the RSE API as much as possible to retrieve my content, contribute context
> menu options, etc. I could use some help figuring out how feasible this
> is, and what API?s are available to me for such a purpose.
>
> If this is not practical, my next choice would be to provide a ?Show in
> RSE? option in my plugin that would programmatically create an RSE
> connection for the selected host (if one does not already exist) and then
> open the Remote Systems view, with that connection shown. Again, if this
> can be done, I could use some help getting started.
>
> Finally, I?d like to be able to select a host in my view and open an SSH
> shell using the Terminal view. Is it possible to programmatically open a
> terminal in that view and connect, feeding it the host and credentials?
>
> Thanks!
>
>
Re: Integrating with RSE, Leveraging RSE api [message #9128 is a reply to message #9001] Mon, 21 May 2007 15:57 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Mark and Steve,

Let me answer your questions last one first:

* Programmatically open a Terminal - requested already but not yet
implemented, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=185348

* Programmatically create RSE Connection -- See the EclipseCon TM
Tutorial, it is referenced on the TM FaQ,
http://wiki.eclipse.org/index.php/TM_and_RSE_FAQ#How_can_I_u nderstand_the_RSE_architecture_and_learn_programming_on_it.3 F

* Programmatically open the RSE Perspective / RSE View and select a
particular connection in it - should be easy by sending an event,
see ISystemResourceChangeEvents.EVENT_SELECT_REMOTE

* Showing RSE Model Objects in your view -- also shouldn't be
extremely hard, but it might be that some things do not work
as expected if the RSE Treeview has never been opened before.
Refresh, for instance, is somehow tied to the RSE UI and we'll
try to break these dependencies after 2.0 but we're not quite
there yet.
Anyways, if you want to try:
- After creating your host, also create it in the RSE Model
ISystemRegistry.createHost()...
and have your model associated with the RSE IHost
- Either in your own model object, or in your view's label
and content provider, make sure that yourObject.getChildren()
delegates to associatedRSEHost.getChildren() which returns
adapters to the RSE Model Objects
You should get the RSE model objects displayed in your view.

You could have a look at the source code of the RSE Tableview,
or (if looking at RSE 1.0.1 the RSE Monitor), they are also just
additional views showing RSE Model Objects so they're not that
different than what you want to do.

Cheers,
Martin
Re: Integrating with RSE, Leveraging RSE api [message #567449 is a reply to message #8975] Thu, 17 May 2007 19:57 Go to previous message
Mark Phippard is currently offline Mark PhippardFriend
Messages: 129
Registered: July 2009
Senior Member
Just to expand on Steve's request, in this app this information is being
presented along with a lot of other stuff. Which is why we are not just
using RSE from the get-go. In other words, we have this existing UI, we
need it, and it has these hosts already in it. It would make for a better
user experience if there were away to build on the RSE and SSH functionality
from our UI rather than send the user to another view to do those things.

Thanks for any ideas/pointers you can provide. Being able to open the
Terminal view to an SSH shell would be a great "quick win" for us and should
be easy to integrate into our UI.

Mark


On 5/17/07 2:45 PM, in article
59c7d5835e4372c5cc94f7dde8e026ba$1@www.eclipse.org, "Steve Elsemore"
<selsemore@collab.net> wrote:

> I'm working on a plugin that includes a view with a tree that has nodes
> representing remote hosts. I want to make these nodes expandable to
> provide access to the remote file system.
>
> Ideally, the subnodes would be the same as what you see if you expand an
> RSE connection to the same host. With that in mind, I?d like to leverage
> the RSE API as much as possible to retrieve my content, contribute context
> menu options, etc. I could use some help figuring out how feasible this
> is, and what API?s are available to me for such a purpose.
>
> If this is not practical, my next choice would be to provide a ?Show in
> RSE? option in my plugin that would programmatically create an RSE
> connection for the selected host (if one does not already exist) and then
> open the Remote Systems view, with that connection shown. Again, if this
> can be done, I could use some help getting started.
>
> Finally, I?d like to be able to select a host in my view and open an SSH
> shell using the Terminal view. Is it possible to programmatically open a
> terminal in that view and connect, feeding it the host and credentials?
>
> Thanks!
>
>
Re: Integrating with RSE, Leveraging RSE api [message #567621 is a reply to message #9001] Mon, 21 May 2007 15:57 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 1007
Registered: July 2009
Senior Member
Hello Mark and Steve,

Let me answer your questions last one first:

* Programmatically open a Terminal - requested already but not yet
implemented, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=185348

* Programmatically create RSE Connection -- See the EclipseCon TM
Tutorial, it is referenced on the TM FaQ,
http://wiki.eclipse.org/index.php/TM_and_RSE_FAQ#How_can_I_u nderstand_the_RSE_architecture_and_learn_programming_on_it.3 F

* Programmatically open the RSE Perspective / RSE View and select a
particular connection in it - should be easy by sending an event,
see ISystemResourceChangeEvents.EVENT_SELECT_REMOTE

* Showing RSE Model Objects in your view -- also shouldn't be
extremely hard, but it might be that some things do not work
as expected if the RSE Treeview has never been opened before.
Refresh, for instance, is somehow tied to the RSE UI and we'll
try to break these dependencies after 2.0 but we're not quite
there yet.
Anyways, if you want to try:
- After creating your host, also create it in the RSE Model
ISystemRegistry.createHost()...
and have your model associated with the RSE IHost
- Either in your own model object, or in your view's label
and content provider, make sure that yourObject.getChildren()
delegates to associatedRSEHost.getChildren() which returns
adapters to the RSE Model Objects
You should get the RSE model objects displayed in your view.

You could have a look at the source code of the RSE Tableview,
or (if looking at RSE 1.0.1 the RSE Monitor), they are also just
additional views showing RSE Model Objects so they're not that
different than what you want to do.

Cheers,
Martin
Previous Topic:CDT, RSE and CVS
Next Topic:Terminal Editor instead of View?
Goto Forum:
  


Current Time: Fri Apr 19 14:18:45 GMT 2024

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

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

Back to the top