Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Re: info on rse project
Re: info on rse project [message #26965] Tue, 23 September 2008 14:16 Go to next message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 982
Registered: July 2009
Senior Member
Hello Kar,

the right newsgroup for RSE is actually
news:eclipse.dsdp.tm

Regarding your question, what you need to do is actually
implement the IFileService interface for your kind of
communication layer, as well as extend IConnectorService.
The rest is a bit of syntactic sugar, so it shouldn't be
too bad.

You can look at existing RSE source code to see how it has
been done for the FTP or SSH connections. Feel free to ask
if you have more questions.

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

Kar wrote:
> Hi all,
> hope this is the right place where I can ask this question ...
>
> I have got an rcp application that deal with a server via corba and use
> a few views to display information present in a db (a tree view for the
> foders and table view for the file contents).
>
> I just got to see the RSE project ...
> I was wandering how difficult would to implement the
> "logic/communication" layer ... so that all the other operation like
> move copy delete and above all opening editor on files.
>
> any help or something to read would be appreciated.
>
> Kar
Re: info on rse project [message #27123 is a reply to message #26965] Wed, 24 September 2008 03:41 Go to previous messageGo to next message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Thanks Martin ... I was already reading the code in the ftp example ...

thanks a lot
Kar


"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:48D93281.60809@windriver.com...
> Hello Kar,
>
> the right newsgroup for RSE is actually
> news:eclipse.dsdp.tm
>
> Regarding your question, what you need to do is actually
> implement the IFileService interface for your kind of
> communication layer, as well as extend IConnectorService.
> The rest is a bit of syntactic sugar, so it shouldn't be
> too bad.
>
> You can look at existing RSE source code to see how it has
> been done for the FTP or SSH connections. Feel free to ask
> if you have more questions.
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
> Kar wrote:
>> Hi all,
>> hope this is the right place where I can ask this question ...
>>
>> I have got an rcp application that deal with a server via corba and use a
>> few views to display information present in a db (a tree view for the
>> foders and table view for the file contents).
>>
>> I just got to see the RSE project ...
>> I was wandering how difficult would to implement the
>> "logic/communication" layer ... so that all the other operation like move
>> copy delete and above all opening editor on files.
>>
>> any help or something to read would be appreciated.
>>
>> Kar
Re: info on rse project [message #27778 is a reply to message #27123] Tue, 30 September 2008 06:22 Go to previous messageGo to next message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Hi all,

I manage following the Martin's hint to recreate a
FileService/ConnectorService plug-ins (based on the ftp example).

I was wondering now hot to go ahead.
what I would love to achieve is a new view which will help me to display the
content of my db (files/folders) and from there stick actions like:
- open and editor on a file
- import export file
- ...

I cannot use the rse connection view because I want to create a new view to
use in my rcp application.

I did play few weeks ago with the eclipse file system
(org.eclipse.core.filesystem) and I manage to create a quick example. What I
had to do with the efs was just

EFS.getFileSystem("schema").getStore(uris)
and build a treeviewer based on the IFileStore input ...

------

What shall I do now, what is the correct way to interact/initialize my rse
service?

I believe I just should
MyService . new ()
- set user/ pass/ hot
- connect
- getFile (root)

and move from there?
is that correct ...

The second bit will be to see how the RSE (I believe is the SystemViewPart)
deals with opening editors on a file.

Regards
Kar






"Kar" <carmeloscala@hotmail.com> wrote in message
news:gbcqvh$ab6$1@build.eclipse.org...
> Thanks Martin ... I was already reading the code in the ftp example ...
>
> thanks a lot
> Kar
>
>
> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
> news:48D93281.60809@windriver.com...
>> Hello Kar,
>>
>> the right newsgroup for RSE is actually
>> news:eclipse.dsdp.tm
>>
>> Regarding your question, what you need to do is actually
>> implement the IFileService interface for your kind of
>> communication layer, as well as extend IConnectorService.
>> The rest is a bit of syntactic sugar, so it shouldn't be
>> too bad.
>>
>> You can look at existing RSE source code to see how it has
>> been done for the FTP or SSH connections. Feel free to ask
>> if you have more questions.
>>
>> Cheers,
>> --
>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>> Target Management Project Lead, DSDP PMC Member
>> http://www.eclipse.org/dsdp/tm
>>
>> Kar wrote:
>>> Hi all,
>>> hope this is the right place where I can ask this question ...
>>>
>>> I have got an rcp application that deal with a server via corba and use
>>> a few views to display information present in a db (a tree view for the
>>> foders and table view for the file contents).
>>>
>>> I just got to see the RSE project ...
>>> I was wandering how difficult would to implement the
>>> "logic/communication" layer ... so that all the other operation like
>>> move copy delete and above all opening editor on files.
>>>
>>> any help or something to read would be appreciated.
>>>
>>> Kar
>
Re: info on rse project [message #27813 is a reply to message #27778] Tue, 30 September 2008 07:07 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 982
Registered: July 2009
Senior Member
Hello Kar,

I'm a little confused. Your original question said that you wanted
to use RSE infrastructure for move, copy, delete, drag&drop,
copy&paste...

Now if you don't want to use the RSE SystemView but have your own
TreeViewer instead, how do you think should RSE infrastructure be
leveraged? If you also don't want the RSE login screen, I'm wondering
what benefit you see in using RSE?

If you think that EFS fits your neeeds, why don't you just
implement IFileSystem / IFileStore directly? It's just two interfaces
to implement, and there's quite some example code available.

The "open editor" and "import/export file" actions should be
pretty straightforward to implement based on EFS since you'll
have a Stream available. Just read the Platform Javadocs, or
look at some existing source code to see how it's done...

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




Kar wrote:
> Hi all,
>
> I manage following the Martin's hint to recreate a
> FileService/ConnectorService plug-ins (based on the ftp example).
>
> I was wondering now hot to go ahead.
> what I would love to achieve is a new view which will help me to display
> the content of my db (files/folders) and from there stick actions like:
> - open and editor on a file
> - import export file
> - ...
>
> I cannot use the rse connection view because I want to create a new view
> to use in my rcp application.
>
> I did play few weeks ago with the eclipse file system
> (org.eclipse.core.filesystem) and I manage to create a quick example.
> What I had to do with the efs was just
>
> EFS.getFileSystem("schema").getStore(uris)
> and build a treeviewer based on the IFileStore input ...
>
> ------
>
> What shall I do now, what is the correct way to interact/initialize my
> rse service?
>
> I believe I just should
> MyService . new ()
> - set user/ pass/ hot
> - connect
> - getFile (root)
>
> and move from there?
> is that correct ...
>
> The second bit will be to see how the RSE (I believe is the
> SystemViewPart) deals with opening editors on a file.
>
> Regards
> Kar
>
>
>
>
>
>
> "Kar" <carmeloscala@hotmail.com> wrote in message
> news:gbcqvh$ab6$1@build.eclipse.org...
>> Thanks Martin ... I was already reading the code in the ftp example ...
>>
>> thanks a lot
>> Kar
>>
>>
>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>> news:48D93281.60809@windriver.com...
>>> Hello Kar,
>>>
>>> the right newsgroup for RSE is actually
>>> news:eclipse.dsdp.tm
>>>
>>> Regarding your question, what you need to do is actually
>>> implement the IFileService interface for your kind of
>>> communication layer, as well as extend IConnectorService.
>>> The rest is a bit of syntactic sugar, so it shouldn't be
>>> too bad.
>>>
>>> You can look at existing RSE source code to see how it has
>>> been done for the FTP or SSH connections. Feel free to ask
>>> if you have more questions.
>>>
>>> Cheers,
>>> --
>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>> Target Management Project Lead, DSDP PMC Member
>>> http://www.eclipse.org/dsdp/tm
>>>
>>> Kar wrote:
>>>> Hi all,
>>>> hope this is the right place where I can ask this question ...
>>>>
>>>> I have got an rcp application that deal with a server via corba and
>>>> use a few views to display information present in a db (a tree view
>>>> for the foders and table view for the file contents).
>>>>
>>>> I just got to see the RSE project ...
>>>> I was wandering how difficult would to implement the
>>>> "logic/communication" layer ... so that all the other operation like
>>>> move copy delete and above all opening editor on files.
>>>>
>>>> any help or something to read would be appreciated.
>>>>
>>>> Kar
>>
Re: info on rse project [message #27853 is a reply to message #27813] Tue, 30 September 2008 08:14 Go to previous messageGo to next message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
That would have been step 3 ...
I mean give normal users an RCP application ... and to developer the direct
access to the db via rse using the eclipse ide.

Kar


"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:48E2087F.7020100@windriver.com...
> Hello Kar,
>
> I'm a little confused. Your original question said that you wanted
> to use RSE infrastructure for move, copy, delete, drag&drop,
> copy&paste...
>
> Now if you don't want to use the RSE SystemView but have your own
> TreeViewer instead, how do you think should RSE infrastructure be
> leveraged? If you also don't want the RSE login screen, I'm wondering what
> benefit you see in using RSE?
>
> If you think that EFS fits your neeeds, why don't you just
> implement IFileSystem / IFileStore directly? It's just two interfaces
> to implement, and there's quite some example code available.
>
> The "open editor" and "import/export file" actions should be
> pretty straightforward to implement based on EFS since you'll
> have a Stream available. Just read the Platform Javadocs, or
> look at some existing source code to see how it's done...
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
>
> Kar wrote:
>> Hi all,
>>
>> I manage following the Martin's hint to recreate a
>> FileService/ConnectorService plug-ins (based on the ftp example).
>>
>> I was wondering now hot to go ahead.
>> what I would love to achieve is a new view which will help me to display
>> the content of my db (files/folders) and from there stick actions like:
>> - open and editor on a file
>> - import export file
>> - ...
>>
>> I cannot use the rse connection view because I want to create a new view
>> to use in my rcp application.
>>
>> I did play few weeks ago with the eclipse file system
>> (org.eclipse.core.filesystem) and I manage to create a quick example.
>> What I had to do with the efs was just
>>
>> EFS.getFileSystem("schema").getStore(uris)
>> and build a treeviewer based on the IFileStore input ...
>>
>> ------
>>
>> What shall I do now, what is the correct way to interact/initialize my
>> rse service?
>>
>> I believe I just should
>> MyService . new ()
>> - set user/ pass/ hot
>> - connect
>> - getFile (root)
>>
>> and move from there?
>> is that correct ...
>>
>> The second bit will be to see how the RSE (I believe is the
>> SystemViewPart) deals with opening editors on a file.
>>
>> Regards
>> Kar
>>
>>
>>
>>
>>
>>
>> "Kar" <carmeloscala@hotmail.com> wrote in message
>> news:gbcqvh$ab6$1@build.eclipse.org...
>>> Thanks Martin ... I was already reading the code in the ftp example ...
>>>
>>> thanks a lot
>>> Kar
>>>
>>>
>>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>>> news:48D93281.60809@windriver.com...
>>>> Hello Kar,
>>>>
>>>> the right newsgroup for RSE is actually
>>>> news:eclipse.dsdp.tm
>>>>
>>>> Regarding your question, what you need to do is actually
>>>> implement the IFileService interface for your kind of
>>>> communication layer, as well as extend IConnectorService.
>>>> The rest is a bit of syntactic sugar, so it shouldn't be
>>>> too bad.
>>>>
>>>> You can look at existing RSE source code to see how it has
>>>> been done for the FTP or SSH connections. Feel free to ask
>>>> if you have more questions.
>>>>
>>>> Cheers,
>>>> --
>>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>>> Target Management Project Lead, DSDP PMC Member
>>>> http://www.eclipse.org/dsdp/tm
>>>>
>>>> Kar wrote:
>>>>> Hi all,
>>>>> hope this is the right place where I can ask this question ...
>>>>>
>>>>> I have got an rcp application that deal with a server via corba and
>>>>> use a few views to display information present in a db (a tree view
>>>>> for the foders and table view for the file contents).
>>>>>
>>>>> I just got to see the RSE project ...
>>>>> I was wandering how difficult would to implement the
>>>>> "logic/communication" layer ... so that all the other operation like
>>>>> move copy delete and above all opening editor on files.
>>>>>
>>>>> any help or something to read would be appreciated.
>>>>>
>>>>> Kar
>>>
Re: info on rse project [message #27893 is a reply to message #27853] Tue, 30 September 2008 13:33 Go to previous messageGo to next message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 982
Registered: July 2009
Senior Member
So well,

if you want RSE for your developers, you'll need to implement
IFileService / IConnectorService. Looks like you've basically
got that working, so your developers should be good.

Next, for your RCP, you want to have some connection status
lifecycle (programmatic connect). I'd think that you'll want
to drive your IConnectorService programmatically to get some
connected session.

Finally, for the RCP, you want your own TreeViewer, so I'd think
that you need to simply write a TreeContentProvider which
translates the getChildren() / getLabel() etc into calls of
your IFileService.

That is, in terms of RSE interfaces you'd stay on the "Service"
level and not use any of the Subsystem functionality (because
pulling in Subsystem functionality requires dependency on
org.eclipse.rse.ui which seems like you want to avoid).

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




Kar wrote:
> That would have been step 3 ...
> I mean give normal users an RCP application ... and to developer the
> direct access to the db via rse using the eclipse ide.
>
> Kar
>
>
> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
> news:48E2087F.7020100@windriver.com...
>> Hello Kar,
>>
>> I'm a little confused. Your original question said that you wanted
>> to use RSE infrastructure for move, copy, delete, drag&drop,
>> copy&paste...
>>
>> Now if you don't want to use the RSE SystemView but have your own
>> TreeViewer instead, how do you think should RSE infrastructure be
>> leveraged? If you also don't want the RSE login screen, I'm wondering
>> what benefit you see in using RSE?
>>
>> If you think that EFS fits your neeeds, why don't you just
>> implement IFileSystem / IFileStore directly? It's just two interfaces
>> to implement, and there's quite some example code available.
>>
>> The "open editor" and "import/export file" actions should be
>> pretty straightforward to implement based on EFS since you'll
>> have a Stream available. Just read the Platform Javadocs, or
>> look at some existing source code to see how it's done...
>>
>> Cheers,
>> --
>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>> Target Management Project Lead, DSDP PMC Member
>> http://www.eclipse.org/dsdp/tm
>>
>>
>>
>>
>> Kar wrote:
>>> Hi all,
>>>
>>> I manage following the Martin's hint to recreate a
>>> FileService/ConnectorService plug-ins (based on the ftp example).
>>>
>>> I was wondering now hot to go ahead.
>>> what I would love to achieve is a new view which will help me to
>>> display the content of my db (files/folders) and from there stick
>>> actions like:
>>> - open and editor on a file
>>> - import export file
>>> - ...
>>>
>>> I cannot use the rse connection view because I want to create a new
>>> view to use in my rcp application.
>>>
>>> I did play few weeks ago with the eclipse file system
>>> (org.eclipse.core.filesystem) and I manage to create a quick example.
>>> What I had to do with the efs was just
>>>
>>> EFS.getFileSystem("schema").getStore(uris)
>>> and build a treeviewer based on the IFileStore input ...
>>>
>>> ------
>>>
>>> What shall I do now, what is the correct way to interact/initialize
>>> my rse service?
>>>
>>> I believe I just should
>>> MyService . new ()
>>> - set user/ pass/ hot
>>> - connect
>>> - getFile (root)
>>>
>>> and move from there?
>>> is that correct ...
>>>
>>> The second bit will be to see how the RSE (I believe is the
>>> SystemViewPart) deals with opening editors on a file.
>>>
>>> Regards
>>> Kar
>>>
>>>
>>>
>>>
>>>
>>>
>>> "Kar" <carmeloscala@hotmail.com> wrote in message
>>> news:gbcqvh$ab6$1@build.eclipse.org...
>>>> Thanks Martin ... I was already reading the code in the ftp example ...
>>>>
>>>> thanks a lot
>>>> Kar
>>>>
>>>>
>>>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>>>> news:48D93281.60809@windriver.com...
>>>>> Hello Kar,
>>>>>
>>>>> the right newsgroup for RSE is actually
>>>>> news:eclipse.dsdp.tm
>>>>>
>>>>> Regarding your question, what you need to do is actually
>>>>> implement the IFileService interface for your kind of
>>>>> communication layer, as well as extend IConnectorService.
>>>>> The rest is a bit of syntactic sugar, so it shouldn't be
>>>>> too bad.
>>>>>
>>>>> You can look at existing RSE source code to see how it has
>>>>> been done for the FTP or SSH connections. Feel free to ask
>>>>> if you have more questions.
>>>>>
>>>>> Cheers,
>>>>> --
>>>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>>>> Target Management Project Lead, DSDP PMC Member
>>>>> http://www.eclipse.org/dsdp/tm
>>>>>
>>>>> Kar wrote:
>>>>>> Hi all,
>>>>>> hope this is the right place where I can ask this question ...
>>>>>>
>>>>>> I have got an rcp application that deal with a server via corba
>>>>>> and use a few views to display information present in a db (a tree
>>>>>> view for the foders and table view for the file contents).
>>>>>>
>>>>>> I just got to see the RSE project ...
>>>>>> I was wandering how difficult would to implement the
>>>>>> "logic/communication" layer ... so that all the other operation
>>>>>> like move copy delete and above all opening editor on files.
>>>>>>
>>>>>> any help or something to read would be appreciated.
>>>>>>
>>>>>> Kar
>>>>
Re: info on rse project [message #27933 is a reply to message #27893] Wed, 01 October 2008 09:15 Go to previous messageGo to next message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Still thanks Martin for ur help and hope I can ask more without bothering
too much.

I have almost copied everything about the two plugins (ftp services /
subsystems) and adapted them to what I need ...

The subsystem plugin has got the "same" extension point of the ftp ...

<extension point="org.eclipse.rse.core.systemTypes">
<systemType
label="%EomSystemLabel"
description="%EomSystemDescription"
icon="icons/full/obj16/systemfiles_obj.gif"
iconLive="icons/full/obj16/systemfileslive_obj.gif"
id="com.eid.rse.systemtype.eom"
name="EOM Only"/>
</extension>

<extension point="org.eclipse.rse.core.subsystemConfigurations">
<configuration
systemTypeIds="org.eclipse.rse.systemtype.windows"
name="%Files"
description="%FilesDescription"
iconlive="icons/full/obj16/systemfileslive_obj.gif"
icon="icons/full/obj16/systemfiles_obj.gif"
category="files"
class=" com.eid.rse.subsystems.files.eom.EOMFileSubSystemConfigurati on "
vendor="%providerName"
priority="100"
id="eom.files"
serviceType="_eom._corba">
</configuration>
</extension>


But I cannot see it appearing in the connection dialog. I have checked the
runtime folder for any logs or error ... but nothing ... the plugins state
from about dialog are in:
com.eid.rse.sevices.files.eom (1.0.0) "pluginName" [Starting]
com.eid.rse.subsystems.files.eom (1.0.0) "pluginName" [Active]

where shall I check for errors? What am I doing wrong?

About the rcp ... In the test I did yesterday I was using as input for the
tree object of type IHostFile (I used a IWorkbenchAdapter to get information
for the tree but this should be the same as creating my own label/content
provider). U said to use the IFileService that, for what I have seen in the
ftp example is the FTPService ... mine EOMService ... that I thought would
have dealt with connection/create/copy/retrieve files ...

If I'm not asking too much could u please correct me.

Thanks again
Kar


"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:48E262F4.10302@windriver.com...
> So well,
>
> if you want RSE for your developers, you'll need to implement
> IFileService / IConnectorService. Looks like you've basically
> got that working, so your developers should be good.
>
> Next, for your RCP, you want to have some connection status
> lifecycle (programmatic connect). I'd think that you'll want
> to drive your IConnectorService programmatically to get some
> connected session.
>
> Finally, for the RCP, you want your own TreeViewer, so I'd think
> that you need to simply write a TreeContentProvider which
> translates the getChildren() / getLabel() etc into calls of
> your IFileService.
>
> That is, in terms of RSE interfaces you'd stay on the "Service"
> level and not use any of the Subsystem functionality (because
> pulling in Subsystem functionality requires dependency on
> org.eclipse.rse.ui which seems like you want to avoid).
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
>
> Kar wrote:
>> That would have been step 3 ...
>> I mean give normal users an RCP application ... and to developer the
>> direct access to the db via rse using the eclipse ide.
>>
>> Kar
>>
>>
>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>> news:48E2087F.7020100@windriver.com...
>>> Hello Kar,
>>>
>>> I'm a little confused. Your original question said that you wanted
>>> to use RSE infrastructure for move, copy, delete, drag&drop,
>>> copy&paste...
>>>
>>> Now if you don't want to use the RSE SystemView but have your own
>>> TreeViewer instead, how do you think should RSE infrastructure be
>>> leveraged? If you also don't want the RSE login screen, I'm wondering
>>> what benefit you see in using RSE?
>>>
>>> If you think that EFS fits your neeeds, why don't you just
>>> implement IFileSystem / IFileStore directly? It's just two interfaces
>>> to implement, and there's quite some example code available.
>>>
>>> The "open editor" and "import/export file" actions should be
>>> pretty straightforward to implement based on EFS since you'll
>>> have a Stream available. Just read the Platform Javadocs, or
>>> look at some existing source code to see how it's done...
>>>
>>> Cheers,
>>> --
>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>> Target Management Project Lead, DSDP PMC Member
>>> http://www.eclipse.org/dsdp/tm
>>>
>>>
>>>
>>>
>>> Kar wrote:
>>>> Hi all,
>>>>
>>>> I manage following the Martin's hint to recreate a
>>>> FileService/ConnectorService plug-ins (based on the ftp example).
>>>>
>>>> I was wondering now hot to go ahead.
>>>> what I would love to achieve is a new view which will help me to
>>>> display the content of my db (files/folders) and from there stick
>>>> actions like:
>>>> - open and editor on a file
>>>> - import export file
>>>> - ...
>>>>
>>>> I cannot use the rse connection view because I want to create a new
>>>> view to use in my rcp application.
>>>>
>>>> I did play few weeks ago with the eclipse file system
>>>> (org.eclipse.core.filesystem) and I manage to create a quick example.
>>>> What I had to do with the efs was just
>>>>
>>>> EFS.getFileSystem("schema").getStore(uris)
>>>> and build a treeviewer based on the IFileStore input ...
>>>>
>>>> ------
>>>>
>>>> What shall I do now, what is the correct way to interact/initialize my
>>>> rse service?
>>>>
>>>> I believe I just should
>>>> MyService . new ()
>>>> - set user/ pass/ hot
>>>> - connect
>>>> - getFile (root)
>>>>
>>>> and move from there?
>>>> is that correct ...
>>>>
>>>> The second bit will be to see how the RSE (I believe is the
>>>> SystemViewPart) deals with opening editors on a file.
>>>>
>>>> Regards
>>>> Kar
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> "Kar" <carmeloscala@hotmail.com> wrote in message
>>>> news:gbcqvh$ab6$1@build.eclipse.org...
>>>>> Thanks Martin ... I was already reading the code in the ftp example
>>>>> ...
>>>>>
>>>>> thanks a lot
>>>>> Kar
>>>>>
>>>>>
>>>>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>>>>> news:48D93281.60809@windriver.com...
>>>>>> Hello Kar,
>>>>>>
>>>>>> the right newsgroup for RSE is actually
>>>>>> news:eclipse.dsdp.tm
>>>>>>
>>>>>> Regarding your question, what you need to do is actually
>>>>>> implement the IFileService interface for your kind of
>>>>>> communication layer, as well as extend IConnectorService.
>>>>>> The rest is a bit of syntactic sugar, so it shouldn't be
>>>>>> too bad.
>>>>>>
>>>>>> You can look at existing RSE source code to see how it has
>>>>>> been done for the FTP or SSH connections. Feel free to ask
>>>>>> if you have more questions.
>>>>>>
>>>>>> Cheers,
>>>>>> --
>>>>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>>>>> Target Management Project Lead, DSDP PMC Member
>>>>>> http://www.eclipse.org/dsdp/tm
>>>>>>
>>>>>> Kar wrote:
>>>>>>> Hi all,
>>>>>>> hope this is the right place where I can ask this question ...
>>>>>>>
>>>>>>> I have got an rcp application that deal with a server via corba and
>>>>>>> use a few views to display information present in a db (a tree view
>>>>>>> for the foders and table view for the file contents).
>>>>>>>
>>>>>>> I just got to see the RSE project ...
>>>>>>> I was wandering how difficult would to implement the
>>>>>>> "logic/communication" layer ... so that all the other operation like
>>>>>>> move copy delete and above all opening editor on files.
>>>>>>>
>>>>>>> any help or something to read would be appreciated.
>>>>>>>
>>>>>>> Kar
>>>>>
Re: info on rse project [message #28130 is a reply to message #27933] Wed, 08 October 2008 12:00 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 982
Registered: July 2009
Senior Member
Kar,

your subsystem is registered against "systemtype.windows".
Therefore, your "EOM" systemtype has no subsystem registered
against it. And therefore, it is not visible in the wizard.


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




Kar wrote:
> Still thanks Martin for ur help and hope I can ask more without
> bothering too much.
>
> I have almost copied everything about the two plugins (ftp services /
> subsystems) and adapted them to what I need ...
>
> The subsystem plugin has got the "same" extension point of the ftp ...
>
> <extension point="org.eclipse.rse.core.systemTypes">
> <systemType
> label="%EomSystemLabel"
> description="%EomSystemDescription"
> icon="icons/full/obj16/systemfiles_obj.gif"
> iconLive="icons/full/obj16/systemfileslive_obj.gif"
> id="com.eid.rse.systemtype.eom"
> name="EOM Only"/>
> </extension>
>
> <extension point="org.eclipse.rse.core.subsystemConfigurations">
> <configuration
> systemTypeIds="org.eclipse.rse.systemtype.windows"
> name="%Files"
> description="%FilesDescription"
> iconlive="icons/full/obj16/systemfileslive_obj.gif"
> icon="icons/full/obj16/systemfiles_obj.gif"
> category="files"
>
> class=" com.eid.rse.subsystems.files.eom.EOMFileSubSystemConfigurati on "
> vendor="%providerName"
> priority="100"
> id="eom.files"
> serviceType="_eom._corba">
> </configuration>
> </extension>
>
>
> But I cannot see it appearing in the connection dialog. I have checked
> the runtime folder for any logs or error ... but nothing ... the plugins
> state from about dialog are in:
> com.eid.rse.sevices.files.eom (1.0.0) "pluginName" [Starting]
> com.eid.rse.subsystems.files.eom (1.0.0) "pluginName" [Active]
>
> where shall I check for errors? What am I doing wrong?
>
> About the rcp ... In the test I did yesterday I was using as input for
> the tree object of type IHostFile (I used a IWorkbenchAdapter to get
> information for the tree but this should be the same as creating my own
> label/content provider). U said to use the IFileService that, for what I
> have seen in the ftp example is the FTPService ... mine EOMService ...
> that I thought would have dealt with connection/create/copy/retrieve
> files ...
>
> If I'm not asking too much could u please correct me.
>
> Thanks again
> Kar
>
>
> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
> news:48E262F4.10302@windriver.com...
>> So well,
>>
>> if you want RSE for your developers, you'll need to implement
>> IFileService / IConnectorService. Looks like you've basically
>> got that working, so your developers should be good.
>>
>> Next, for your RCP, you want to have some connection status
>> lifecycle (programmatic connect). I'd think that you'll want
>> to drive your IConnectorService programmatically to get some
>> connected session.
>>
>> Finally, for the RCP, you want your own TreeViewer, so I'd think
>> that you need to simply write a TreeContentProvider which
>> translates the getChildren() / getLabel() etc into calls of
>> your IFileService.
>>
>> That is, in terms of RSE interfaces you'd stay on the "Service"
>> level and not use any of the Subsystem functionality (because
>> pulling in Subsystem functionality requires dependency on
>> org.eclipse.rse.ui which seems like you want to avoid).
>>
>> Cheers,
>> --
>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>> Target Management Project Lead, DSDP PMC Member
>> http://www.eclipse.org/dsdp/tm
>>
>>
>>
>>
>> Kar wrote:
>>> That would have been step 3 ...
>>> I mean give normal users an RCP application ... and to developer the
>>> direct access to the db via rse using the eclipse ide.
>>>
>>> Kar
>>>
>>>
>>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>>> news:48E2087F.7020100@windriver.com...
>>>> Hello Kar,
>>>>
>>>> I'm a little confused. Your original question said that you wanted
>>>> to use RSE infrastructure for move, copy, delete, drag&drop,
>>>> copy&paste...
>>>>
>>>> Now if you don't want to use the RSE SystemView but have your own
>>>> TreeViewer instead, how do you think should RSE infrastructure be
>>>> leveraged? If you also don't want the RSE login screen, I'm
>>>> wondering what benefit you see in using RSE?
>>>>
>>>> If you think that EFS fits your neeeds, why don't you just
>>>> implement IFileSystem / IFileStore directly? It's just two interfaces
>>>> to implement, and there's quite some example code available.
>>>>
>>>> The "open editor" and "import/export file" actions should be
>>>> pretty straightforward to implement based on EFS since you'll
>>>> have a Stream available. Just read the Platform Javadocs, or
>>>> look at some existing source code to see how it's done...
>>>>
>>>> Cheers,
>>>> --
>>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>>> Target Management Project Lead, DSDP PMC Member
>>>> http://www.eclipse.org/dsdp/tm
>>>>
>>>>
>>>>
>>>>
>>>> Kar wrote:
>>>>> Hi all,
>>>>>
>>>>> I manage following the Martin's hint to recreate a
>>>>> FileService/ConnectorService plug-ins (based on the ftp example).
>>>>>
>>>>> I was wondering now hot to go ahead.
>>>>> what I would love to achieve is a new view which will help me to
>>>>> display the content of my db (files/folders) and from there stick
>>>>> actions like:
>>>>> - open and editor on a file
>>>>> - import export file
>>>>> - ...
>>>>>
>>>>> I cannot use the rse connection view because I want to create a new
>>>>> view to use in my rcp application.
>>>>>
>>>>> I did play few weeks ago with the eclipse file system
>>>>> (org.eclipse.core.filesystem) and I manage to create a quick
>>>>> example. What I had to do with the efs was just
>>>>>
>>>>> EFS.getFileSystem("schema").getStore(uris)
>>>>> and build a treeviewer based on the IFileStore input ...
>>>>>
>>>>> ------
>>>>>
>>>>> What shall I do now, what is the correct way to interact/initialize
>>>>> my rse service?
>>>>>
>>>>> I believe I just should
>>>>> MyService . new ()
>>>>> - set user/ pass/ hot
>>>>> - connect
>>>>> - getFile (root)
>>>>>
>>>>> and move from there?
>>>>> is that correct ...
>>>>>
>>>>> The second bit will be to see how the RSE (I believe is the
>>>>> SystemViewPart) deals with opening editors on a file.
>>>>>
>>>>> Regards
>>>>> Kar
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> "Kar" <carmeloscala@hotmail.com> wrote in message
>>>>> news:gbcqvh$ab6$1@build.eclipse.org...
>>>>>> Thanks Martin ... I was already reading the code in the ftp
>>>>>> example ...
>>>>>>
>>>>>> thanks a lot
>>>>>> Kar
>>>>>>
>>>>>>
>>>>>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in
>>>>>> message news:48D93281.60809@windriver.com...
>>>>>>> Hello Kar,
>>>>>>>
>>>>>>> the right newsgroup for RSE is actually
>>>>>>> news:eclipse.dsdp.tm
>>>>>>>
>>>>>>> Regarding your question, what you need to do is actually
>>>>>>> implement the IFileService interface for your kind of
>>>>>>> communication layer, as well as extend IConnectorService.
>>>>>>> The rest is a bit of syntactic sugar, so it shouldn't be
>>>>>>> too bad.
>>>>>>>
>>>>>>> You can look at existing RSE source code to see how it has
>>>>>>> been done for the FTP or SSH connections. Feel free to ask
>>>>>>> if you have more questions.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> --
>>>>>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>>>>>> Target Management Project Lead, DSDP PMC Member
>>>>>>> http://www.eclipse.org/dsdp/tm
>>>>>>>
>>>>>>> Kar wrote:
>>>>>>>> Hi all,
>>>>>>>> hope this is the right place where I can ask this question ...
>>>>>>>>
>>>>>>>> I have got an rcp application that deal with a server via corba
>>>>>>>> and use a few views to display information present in a db (a
>>>>>>>> tree view for the foders and table view for the file contents).
>>>>>>>>
>>>>>>>> I just got to see the RSE project ...
>>>>>>>> I was wandering how difficult would to implement the
>>>>>>>> "logic/communication" layer ... so that all the other operation
>>>>>>>> like move copy delete and above all opening editor on files.
>>>>>>>>
>>>>>>>> any help or something to read would be appreciated.
>>>>>>>>
>>>>>>>> Kar
>>>>>>
Re: info on rse project [message #577190 is a reply to message #26965] Wed, 24 September 2008 03:41 Go to previous message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Thanks Martin ... I was already reading the code in the ftp example ...

thanks a lot
Kar


"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:48D93281.60809@windriver.com...
> Hello Kar,
>
> the right newsgroup for RSE is actually
> news:eclipse.dsdp.tm
>
> Regarding your question, what you need to do is actually
> implement the IFileService interface for your kind of
> communication layer, as well as extend IConnectorService.
> The rest is a bit of syntactic sugar, so it shouldn't be
> too bad.
>
> You can look at existing RSE source code to see how it has
> been done for the FTP or SSH connections. Feel free to ask
> if you have more questions.
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
> Kar wrote:
>> Hi all,
>> hope this is the right place where I can ask this question ...
>>
>> I have got an rcp application that deal with a server via corba and use a
>> few views to display information present in a db (a tree view for the
>> foders and table view for the file contents).
>>
>> I just got to see the RSE project ...
>> I was wandering how difficult would to implement the
>> "logic/communication" layer ... so that all the other operation like move
>> copy delete and above all opening editor on files.
>>
>> any help or something to read would be appreciated.
>>
>> Kar
Re: info on rse project [message #577318 is a reply to message #27123] Tue, 30 September 2008 06:22 Go to previous message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Hi all,

I manage following the Martin's hint to recreate a
FileService/ConnectorService plug-ins (based on the ftp example).

I was wondering now hot to go ahead.
what I would love to achieve is a new view which will help me to display the
content of my db (files/folders) and from there stick actions like:
- open and editor on a file
- import export file
- ...

I cannot use the rse connection view because I want to create a new view to
use in my rcp application.

I did play few weeks ago with the eclipse file system
(org.eclipse.core.filesystem) and I manage to create a quick example. What I
had to do with the efs was just

EFS.getFileSystem("schema").getStore(uris)
and build a treeviewer based on the IFileStore input ...

------

What shall I do now, what is the correct way to interact/initialize my rse
service?

I believe I just should
MyService . new ()
- set user/ pass/ hot
- connect
- getFile (root)

and move from there?
is that correct ...

The second bit will be to see how the RSE (I believe is the SystemViewPart)
deals with opening editors on a file.

Regards
Kar






"Kar" <carmeloscala@hotmail.com> wrote in message
news:gbcqvh$ab6$1@build.eclipse.org...
> Thanks Martin ... I was already reading the code in the ftp example ...
>
> thanks a lot
> Kar
>
>
> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
> news:48D93281.60809@windriver.com...
>> Hello Kar,
>>
>> the right newsgroup for RSE is actually
>> news:eclipse.dsdp.tm
>>
>> Regarding your question, what you need to do is actually
>> implement the IFileService interface for your kind of
>> communication layer, as well as extend IConnectorService.
>> The rest is a bit of syntactic sugar, so it shouldn't be
>> too bad.
>>
>> You can look at existing RSE source code to see how it has
>> been done for the FTP or SSH connections. Feel free to ask
>> if you have more questions.
>>
>> Cheers,
>> --
>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>> Target Management Project Lead, DSDP PMC Member
>> http://www.eclipse.org/dsdp/tm
>>
>> Kar wrote:
>>> Hi all,
>>> hope this is the right place where I can ask this question ...
>>>
>>> I have got an rcp application that deal with a server via corba and use
>>> a few views to display information present in a db (a tree view for the
>>> foders and table view for the file contents).
>>>
>>> I just got to see the RSE project ...
>>> I was wandering how difficult would to implement the
>>> "logic/communication" layer ... so that all the other operation like
>>> move copy delete and above all opening editor on files.
>>>
>>> any help or something to read would be appreciated.
>>>
>>> Kar
>
Re: info on rse project [message #577340 is a reply to message #27778] Tue, 30 September 2008 07:07 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 982
Registered: July 2009
Senior Member
Hello Kar,

I'm a little confused. Your original question said that you wanted
to use RSE infrastructure for move, copy, delete, drag&drop,
copy&paste...

Now if you don't want to use the RSE SystemView but have your own
TreeViewer instead, how do you think should RSE infrastructure be
leveraged? If you also don't want the RSE login screen, I'm wondering
what benefit you see in using RSE?

If you think that EFS fits your neeeds, why don't you just
implement IFileSystem / IFileStore directly? It's just two interfaces
to implement, and there's quite some example code available.

The "open editor" and "import/export file" actions should be
pretty straightforward to implement based on EFS since you'll
have a Stream available. Just read the Platform Javadocs, or
look at some existing source code to see how it's done...

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




Kar wrote:
> Hi all,
>
> I manage following the Martin's hint to recreate a
> FileService/ConnectorService plug-ins (based on the ftp example).
>
> I was wondering now hot to go ahead.
> what I would love to achieve is a new view which will help me to display
> the content of my db (files/folders) and from there stick actions like:
> - open and editor on a file
> - import export file
> - ...
>
> I cannot use the rse connection view because I want to create a new view
> to use in my rcp application.
>
> I did play few weeks ago with the eclipse file system
> (org.eclipse.core.filesystem) and I manage to create a quick example.
> What I had to do with the efs was just
>
> EFS.getFileSystem("schema").getStore(uris)
> and build a treeviewer based on the IFileStore input ...
>
> ------
>
> What shall I do now, what is the correct way to interact/initialize my
> rse service?
>
> I believe I just should
> MyService . new ()
> - set user/ pass/ hot
> - connect
> - getFile (root)
>
> and move from there?
> is that correct ...
>
> The second bit will be to see how the RSE (I believe is the
> SystemViewPart) deals with opening editors on a file.
>
> Regards
> Kar
>
>
>
>
>
>
> "Kar" <carmeloscala@hotmail.com> wrote in message
> news:gbcqvh$ab6$1@build.eclipse.org...
>> Thanks Martin ... I was already reading the code in the ftp example ...
>>
>> thanks a lot
>> Kar
>>
>>
>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>> news:48D93281.60809@windriver.com...
>>> Hello Kar,
>>>
>>> the right newsgroup for RSE is actually
>>> news:eclipse.dsdp.tm
>>>
>>> Regarding your question, what you need to do is actually
>>> implement the IFileService interface for your kind of
>>> communication layer, as well as extend IConnectorService.
>>> The rest is a bit of syntactic sugar, so it shouldn't be
>>> too bad.
>>>
>>> You can look at existing RSE source code to see how it has
>>> been done for the FTP or SSH connections. Feel free to ask
>>> if you have more questions.
>>>
>>> Cheers,
>>> --
>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>> Target Management Project Lead, DSDP PMC Member
>>> http://www.eclipse.org/dsdp/tm
>>>
>>> Kar wrote:
>>>> Hi all,
>>>> hope this is the right place where I can ask this question ...
>>>>
>>>> I have got an rcp application that deal with a server via corba and
>>>> use a few views to display information present in a db (a tree view
>>>> for the foders and table view for the file contents).
>>>>
>>>> I just got to see the RSE project ...
>>>> I was wandering how difficult would to implement the
>>>> "logic/communication" layer ... so that all the other operation like
>>>> move copy delete and above all opening editor on files.
>>>>
>>>> any help or something to read would be appreciated.
>>>>
>>>> Kar
>>
Re: info on rse project [message #577367 is a reply to message #27813] Tue, 30 September 2008 08:14 Go to previous message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
That would have been step 3 ...
I mean give normal users an RCP application ... and to developer the direct
access to the db via rse using the eclipse ide.

Kar


"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:48E2087F.7020100@windriver.com...
> Hello Kar,
>
> I'm a little confused. Your original question said that you wanted
> to use RSE infrastructure for move, copy, delete, drag&drop,
> copy&paste...
>
> Now if you don't want to use the RSE SystemView but have your own
> TreeViewer instead, how do you think should RSE infrastructure be
> leveraged? If you also don't want the RSE login screen, I'm wondering what
> benefit you see in using RSE?
>
> If you think that EFS fits your neeeds, why don't you just
> implement IFileSystem / IFileStore directly? It's just two interfaces
> to implement, and there's quite some example code available.
>
> The "open editor" and "import/export file" actions should be
> pretty straightforward to implement based on EFS since you'll
> have a Stream available. Just read the Platform Javadocs, or
> look at some existing source code to see how it's done...
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
>
> Kar wrote:
>> Hi all,
>>
>> I manage following the Martin's hint to recreate a
>> FileService/ConnectorService plug-ins (based on the ftp example).
>>
>> I was wondering now hot to go ahead.
>> what I would love to achieve is a new view which will help me to display
>> the content of my db (files/folders) and from there stick actions like:
>> - open and editor on a file
>> - import export file
>> - ...
>>
>> I cannot use the rse connection view because I want to create a new view
>> to use in my rcp application.
>>
>> I did play few weeks ago with the eclipse file system
>> (org.eclipse.core.filesystem) and I manage to create a quick example.
>> What I had to do with the efs was just
>>
>> EFS.getFileSystem("schema").getStore(uris)
>> and build a treeviewer based on the IFileStore input ...
>>
>> ------
>>
>> What shall I do now, what is the correct way to interact/initialize my
>> rse service?
>>
>> I believe I just should
>> MyService . new ()
>> - set user/ pass/ hot
>> - connect
>> - getFile (root)
>>
>> and move from there?
>> is that correct ...
>>
>> The second bit will be to see how the RSE (I believe is the
>> SystemViewPart) deals with opening editors on a file.
>>
>> Regards
>> Kar
>>
>>
>>
>>
>>
>>
>> "Kar" <carmeloscala@hotmail.com> wrote in message
>> news:gbcqvh$ab6$1@build.eclipse.org...
>>> Thanks Martin ... I was already reading the code in the ftp example ...
>>>
>>> thanks a lot
>>> Kar
>>>
>>>
>>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>>> news:48D93281.60809@windriver.com...
>>>> Hello Kar,
>>>>
>>>> the right newsgroup for RSE is actually
>>>> news:eclipse.dsdp.tm
>>>>
>>>> Regarding your question, what you need to do is actually
>>>> implement the IFileService interface for your kind of
>>>> communication layer, as well as extend IConnectorService.
>>>> The rest is a bit of syntactic sugar, so it shouldn't be
>>>> too bad.
>>>>
>>>> You can look at existing RSE source code to see how it has
>>>> been done for the FTP or SSH connections. Feel free to ask
>>>> if you have more questions.
>>>>
>>>> Cheers,
>>>> --
>>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>>> Target Management Project Lead, DSDP PMC Member
>>>> http://www.eclipse.org/dsdp/tm
>>>>
>>>> Kar wrote:
>>>>> Hi all,
>>>>> hope this is the right place where I can ask this question ...
>>>>>
>>>>> I have got an rcp application that deal with a server via corba and
>>>>> use a few views to display information present in a db (a tree view
>>>>> for the foders and table view for the file contents).
>>>>>
>>>>> I just got to see the RSE project ...
>>>>> I was wandering how difficult would to implement the
>>>>> "logic/communication" layer ... so that all the other operation like
>>>>> move copy delete and above all opening editor on files.
>>>>>
>>>>> any help or something to read would be appreciated.
>>>>>
>>>>> Kar
>>>
Re: info on rse project [message #577388 is a reply to message #27853] Tue, 30 September 2008 13:33 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 982
Registered: July 2009
Senior Member
So well,

if you want RSE for your developers, you'll need to implement
IFileService / IConnectorService. Looks like you've basically
got that working, so your developers should be good.

Next, for your RCP, you want to have some connection status
lifecycle (programmatic connect). I'd think that you'll want
to drive your IConnectorService programmatically to get some
connected session.

Finally, for the RCP, you want your own TreeViewer, so I'd think
that you need to simply write a TreeContentProvider which
translates the getChildren() / getLabel() etc into calls of
your IFileService.

That is, in terms of RSE interfaces you'd stay on the "Service"
level and not use any of the Subsystem functionality (because
pulling in Subsystem functionality requires dependency on
org.eclipse.rse.ui which seems like you want to avoid).

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




Kar wrote:
> That would have been step 3 ...
> I mean give normal users an RCP application ... and to developer the
> direct access to the db via rse using the eclipse ide.
>
> Kar
>
>
> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
> news:48E2087F.7020100@windriver.com...
>> Hello Kar,
>>
>> I'm a little confused. Your original question said that you wanted
>> to use RSE infrastructure for move, copy, delete, drag&drop,
>> copy&paste...
>>
>> Now if you don't want to use the RSE SystemView but have your own
>> TreeViewer instead, how do you think should RSE infrastructure be
>> leveraged? If you also don't want the RSE login screen, I'm wondering
>> what benefit you see in using RSE?
>>
>> If you think that EFS fits your neeeds, why don't you just
>> implement IFileSystem / IFileStore directly? It's just two interfaces
>> to implement, and there's quite some example code available.
>>
>> The "open editor" and "import/export file" actions should be
>> pretty straightforward to implement based on EFS since you'll
>> have a Stream available. Just read the Platform Javadocs, or
>> look at some existing source code to see how it's done...
>>
>> Cheers,
>> --
>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>> Target Management Project Lead, DSDP PMC Member
>> http://www.eclipse.org/dsdp/tm
>>
>>
>>
>>
>> Kar wrote:
>>> Hi all,
>>>
>>> I manage following the Martin's hint to recreate a
>>> FileService/ConnectorService plug-ins (based on the ftp example).
>>>
>>> I was wondering now hot to go ahead.
>>> what I would love to achieve is a new view which will help me to
>>> display the content of my db (files/folders) and from there stick
>>> actions like:
>>> - open and editor on a file
>>> - import export file
>>> - ...
>>>
>>> I cannot use the rse connection view because I want to create a new
>>> view to use in my rcp application.
>>>
>>> I did play few weeks ago with the eclipse file system
>>> (org.eclipse.core.filesystem) and I manage to create a quick example.
>>> What I had to do with the efs was just
>>>
>>> EFS.getFileSystem("schema").getStore(uris)
>>> and build a treeviewer based on the IFileStore input ...
>>>
>>> ------
>>>
>>> What shall I do now, what is the correct way to interact/initialize
>>> my rse service?
>>>
>>> I believe I just should
>>> MyService . new ()
>>> - set user/ pass/ hot
>>> - connect
>>> - getFile (root)
>>>
>>> and move from there?
>>> is that correct ...
>>>
>>> The second bit will be to see how the RSE (I believe is the
>>> SystemViewPart) deals with opening editors on a file.
>>>
>>> Regards
>>> Kar
>>>
>>>
>>>
>>>
>>>
>>>
>>> "Kar" <carmeloscala@hotmail.com> wrote in message
>>> news:gbcqvh$ab6$1@build.eclipse.org...
>>>> Thanks Martin ... I was already reading the code in the ftp example ...
>>>>
>>>> thanks a lot
>>>> Kar
>>>>
>>>>
>>>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>>>> news:48D93281.60809@windriver.com...
>>>>> Hello Kar,
>>>>>
>>>>> the right newsgroup for RSE is actually
>>>>> news:eclipse.dsdp.tm
>>>>>
>>>>> Regarding your question, what you need to do is actually
>>>>> implement the IFileService interface for your kind of
>>>>> communication layer, as well as extend IConnectorService.
>>>>> The rest is a bit of syntactic sugar, so it shouldn't be
>>>>> too bad.
>>>>>
>>>>> You can look at existing RSE source code to see how it has
>>>>> been done for the FTP or SSH connections. Feel free to ask
>>>>> if you have more questions.
>>>>>
>>>>> Cheers,
>>>>> --
>>>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>>>> Target Management Project Lead, DSDP PMC Member
>>>>> http://www.eclipse.org/dsdp/tm
>>>>>
>>>>> Kar wrote:
>>>>>> Hi all,
>>>>>> hope this is the right place where I can ask this question ...
>>>>>>
>>>>>> I have got an rcp application that deal with a server via corba
>>>>>> and use a few views to display information present in a db (a tree
>>>>>> view for the foders and table view for the file contents).
>>>>>>
>>>>>> I just got to see the RSE project ...
>>>>>> I was wandering how difficult would to implement the
>>>>>> "logic/communication" layer ... so that all the other operation
>>>>>> like move copy delete and above all opening editor on files.
>>>>>>
>>>>>> any help or something to read would be appreciated.
>>>>>>
>>>>>> Kar
>>>>
Re: info on rse project [message #577408 is a reply to message #27893] Wed, 01 October 2008 09:15 Go to previous message
Carmelo  is currently offline Carmelo
Messages: 224
Registered: July 2009
Senior Member
Still thanks Martin for ur help and hope I can ask more without bothering
too much.

I have almost copied everything about the two plugins (ftp services /
subsystems) and adapted them to what I need ...

The subsystem plugin has got the "same" extension point of the ftp ...

<extension point="org.eclipse.rse.core.systemTypes">
<systemType
label="%EomSystemLabel"
description="%EomSystemDescription"
icon="icons/full/obj16/systemfiles_obj.gif"
iconLive="icons/full/obj16/systemfileslive_obj.gif"
id="com.eid.rse.systemtype.eom"
name="EOM Only"/>
</extension>

<extension point="org.eclipse.rse.core.subsystemConfigurations">
<configuration
systemTypeIds="org.eclipse.rse.systemtype.windows"
name="%Files"
description="%FilesDescription"
iconlive="icons/full/obj16/systemfileslive_obj.gif"
icon="icons/full/obj16/systemfiles_obj.gif"
category="files"
class=" com.eid.rse.subsystems.files.eom.EOMFileSubSystemConfigurati on "
vendor="%providerName"
priority="100"
id="eom.files"
serviceType="_eom._corba">
</configuration>
</extension>


But I cannot see it appearing in the connection dialog. I have checked the
runtime folder for any logs or error ... but nothing ... the plugins state
from about dialog are in:
com.eid.rse.sevices.files.eom (1.0.0) "pluginName" [Starting]
com.eid.rse.subsystems.files.eom (1.0.0) "pluginName" [Active]

where shall I check for errors? What am I doing wrong?

About the rcp ... In the test I did yesterday I was using as input for the
tree object of type IHostFile (I used a IWorkbenchAdapter to get information
for the tree but this should be the same as creating my own label/content
provider). U said to use the IFileService that, for what I have seen in the
ftp example is the FTPService ... mine EOMService ... that I thought would
have dealt with connection/create/copy/retrieve files ...

If I'm not asking too much could u please correct me.

Thanks again
Kar


"Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
news:48E262F4.10302@windriver.com...
> So well,
>
> if you want RSE for your developers, you'll need to implement
> IFileService / IConnectorService. Looks like you've basically
> got that working, so your developers should be good.
>
> Next, for your RCP, you want to have some connection status
> lifecycle (programmatic connect). I'd think that you'll want
> to drive your IConnectorService programmatically to get some
> connected session.
>
> Finally, for the RCP, you want your own TreeViewer, so I'd think
> that you need to simply write a TreeContentProvider which
> translates the getChildren() / getLabel() etc into calls of
> your IFileService.
>
> That is, in terms of RSE interfaces you'd stay on the "Service"
> level and not use any of the Subsystem functionality (because
> pulling in Subsystem functionality requires dependency on
> org.eclipse.rse.ui which seems like you want to avoid).
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
>
> Kar wrote:
>> That would have been step 3 ...
>> I mean give normal users an RCP application ... and to developer the
>> direct access to the db via rse using the eclipse ide.
>>
>> Kar
>>
>>
>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>> news:48E2087F.7020100@windriver.com...
>>> Hello Kar,
>>>
>>> I'm a little confused. Your original question said that you wanted
>>> to use RSE infrastructure for move, copy, delete, drag&drop,
>>> copy&paste...
>>>
>>> Now if you don't want to use the RSE SystemView but have your own
>>> TreeViewer instead, how do you think should RSE infrastructure be
>>> leveraged? If you also don't want the RSE login screen, I'm wondering
>>> what benefit you see in using RSE?
>>>
>>> If you think that EFS fits your neeeds, why don't you just
>>> implement IFileSystem / IFileStore directly? It's just two interfaces
>>> to implement, and there's quite some example code available.
>>>
>>> The "open editor" and "import/export file" actions should be
>>> pretty straightforward to implement based on EFS since you'll
>>> have a Stream available. Just read the Platform Javadocs, or
>>> look at some existing source code to see how it's done...
>>>
>>> Cheers,
>>> --
>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>> Target Management Project Lead, DSDP PMC Member
>>> http://www.eclipse.org/dsdp/tm
>>>
>>>
>>>
>>>
>>> Kar wrote:
>>>> Hi all,
>>>>
>>>> I manage following the Martin's hint to recreate a
>>>> FileService/ConnectorService plug-ins (based on the ftp example).
>>>>
>>>> I was wondering now hot to go ahead.
>>>> what I would love to achieve is a new view which will help me to
>>>> display the content of my db (files/folders) and from there stick
>>>> actions like:
>>>> - open and editor on a file
>>>> - import export file
>>>> - ...
>>>>
>>>> I cannot use the rse connection view because I want to create a new
>>>> view to use in my rcp application.
>>>>
>>>> I did play few weeks ago with the eclipse file system
>>>> (org.eclipse.core.filesystem) and I manage to create a quick example.
>>>> What I had to do with the efs was just
>>>>
>>>> EFS.getFileSystem("schema").getStore(uris)
>>>> and build a treeviewer based on the IFileStore input ...
>>>>
>>>> ------
>>>>
>>>> What shall I do now, what is the correct way to interact/initialize my
>>>> rse service?
>>>>
>>>> I believe I just should
>>>> MyService . new ()
>>>> - set user/ pass/ hot
>>>> - connect
>>>> - getFile (root)
>>>>
>>>> and move from there?
>>>> is that correct ...
>>>>
>>>> The second bit will be to see how the RSE (I believe is the
>>>> SystemViewPart) deals with opening editors on a file.
>>>>
>>>> Regards
>>>> Kar
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> "Kar" <carmeloscala@hotmail.com> wrote in message
>>>> news:gbcqvh$ab6$1@build.eclipse.org...
>>>>> Thanks Martin ... I was already reading the code in the ftp example
>>>>> ...
>>>>>
>>>>> thanks a lot
>>>>> Kar
>>>>>
>>>>>
>>>>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>>>>> news:48D93281.60809@windriver.com...
>>>>>> Hello Kar,
>>>>>>
>>>>>> the right newsgroup for RSE is actually
>>>>>> news:eclipse.dsdp.tm
>>>>>>
>>>>>> Regarding your question, what you need to do is actually
>>>>>> implement the IFileService interface for your kind of
>>>>>> communication layer, as well as extend IConnectorService.
>>>>>> The rest is a bit of syntactic sugar, so it shouldn't be
>>>>>> too bad.
>>>>>>
>>>>>> You can look at existing RSE source code to see how it has
>>>>>> been done for the FTP or SSH connections. Feel free to ask
>>>>>> if you have more questions.
>>>>>>
>>>>>> Cheers,
>>>>>> --
>>>>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>>>>> Target Management Project Lead, DSDP PMC Member
>>>>>> http://www.eclipse.org/dsdp/tm
>>>>>>
>>>>>> Kar wrote:
>>>>>>> Hi all,
>>>>>>> hope this is the right place where I can ask this question ...
>>>>>>>
>>>>>>> I have got an rcp application that deal with a server via corba and
>>>>>>> use a few views to display information present in a db (a tree view
>>>>>>> for the foders and table view for the file contents).
>>>>>>>
>>>>>>> I just got to see the RSE project ...
>>>>>>> I was wandering how difficult would to implement the
>>>>>>> "logic/communication" layer ... so that all the other operation like
>>>>>>> move copy delete and above all opening editor on files.
>>>>>>>
>>>>>>> any help or something to read would be appreciated.
>>>>>>>
>>>>>>> Kar
>>>>>
Re: info on rse project [message #577515 is a reply to message #27933] Wed, 08 October 2008 12:00 Go to previous message
Martin Oberhuber is currently offline Martin Oberhuber
Messages: 982
Registered: July 2009
Senior Member
Kar,

your subsystem is registered against "systemtype.windows".
Therefore, your "EOM" systemtype has no subsystem registered
against it. And therefore, it is not visible in the wizard.


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




Kar wrote:
> Still thanks Martin for ur help and hope I can ask more without
> bothering too much.
>
> I have almost copied everything about the two plugins (ftp services /
> subsystems) and adapted them to what I need ...
>
> The subsystem plugin has got the "same" extension point of the ftp ...
>
> <extension point="org.eclipse.rse.core.systemTypes">
> <systemType
> label="%EomSystemLabel"
> description="%EomSystemDescription"
> icon="icons/full/obj16/systemfiles_obj.gif"
> iconLive="icons/full/obj16/systemfileslive_obj.gif"
> id="com.eid.rse.systemtype.eom"
> name="EOM Only"/>
> </extension>
>
> <extension point="org.eclipse.rse.core.subsystemConfigurations">
> <configuration
> systemTypeIds="org.eclipse.rse.systemtype.windows"
> name="%Files"
> description="%FilesDescription"
> iconlive="icons/full/obj16/systemfileslive_obj.gif"
> icon="icons/full/obj16/systemfiles_obj.gif"
> category="files"
>
> class=" com.eid.rse.subsystems.files.eom.EOMFileSubSystemConfigurati on "
> vendor="%providerName"
> priority="100"
> id="eom.files"
> serviceType="_eom._corba">
> </configuration>
> </extension>
>
>
> But I cannot see it appearing in the connection dialog. I have checked
> the runtime folder for any logs or error ... but nothing ... the plugins
> state from about dialog are in:
> com.eid.rse.sevices.files.eom (1.0.0) "pluginName" [Starting]
> com.eid.rse.subsystems.files.eom (1.0.0) "pluginName" [Active]
>
> where shall I check for errors? What am I doing wrong?
>
> About the rcp ... In the test I did yesterday I was using as input for
> the tree object of type IHostFile (I used a IWorkbenchAdapter to get
> information for the tree but this should be the same as creating my own
> label/content provider). U said to use the IFileService that, for what I
> have seen in the ftp example is the FTPService ... mine EOMService ...
> that I thought would have dealt with connection/create/copy/retrieve
> files ...
>
> If I'm not asking too much could u please correct me.
>
> Thanks again
> Kar
>
>
> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
> news:48E262F4.10302@windriver.com...
>> So well,
>>
>> if you want RSE for your developers, you'll need to implement
>> IFileService / IConnectorService. Looks like you've basically
>> got that working, so your developers should be good.
>>
>> Next, for your RCP, you want to have some connection status
>> lifecycle (programmatic connect). I'd think that you'll want
>> to drive your IConnectorService programmatically to get some
>> connected session.
>>
>> Finally, for the RCP, you want your own TreeViewer, so I'd think
>> that you need to simply write a TreeContentProvider which
>> translates the getChildren() / getLabel() etc into calls of
>> your IFileService.
>>
>> That is, in terms of RSE interfaces you'd stay on the "Service"
>> level and not use any of the Subsystem functionality (because
>> pulling in Subsystem functionality requires dependency on
>> org.eclipse.rse.ui which seems like you want to avoid).
>>
>> Cheers,
>> --
>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>> Target Management Project Lead, DSDP PMC Member
>> http://www.eclipse.org/dsdp/tm
>>
>>
>>
>>
>> Kar wrote:
>>> That would have been step 3 ...
>>> I mean give normal users an RCP application ... and to developer the
>>> direct access to the db via rse using the eclipse ide.
>>>
>>> Kar
>>>
>>>
>>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in message
>>> news:48E2087F.7020100@windriver.com...
>>>> Hello Kar,
>>>>
>>>> I'm a little confused. Your original question said that you wanted
>>>> to use RSE infrastructure for move, copy, delete, drag&drop,
>>>> copy&paste...
>>>>
>>>> Now if you don't want to use the RSE SystemView but have your own
>>>> TreeViewer instead, how do you think should RSE infrastructure be
>>>> leveraged? If you also don't want the RSE login screen, I'm
>>>> wondering what benefit you see in using RSE?
>>>>
>>>> If you think that EFS fits your neeeds, why don't you just
>>>> implement IFileSystem / IFileStore directly? It's just two interfaces
>>>> to implement, and there's quite some example code available.
>>>>
>>>> The "open editor" and "import/export file" actions should be
>>>> pretty straightforward to implement based on EFS since you'll
>>>> have a Stream available. Just read the Platform Javadocs, or
>>>> look at some existing source code to see how it's done...
>>>>
>>>> Cheers,
>>>> --
>>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>>> Target Management Project Lead, DSDP PMC Member
>>>> http://www.eclipse.org/dsdp/tm
>>>>
>>>>
>>>>
>>>>
>>>> Kar wrote:
>>>>> Hi all,
>>>>>
>>>>> I manage following the Martin's hint to recreate a
>>>>> FileService/ConnectorService plug-ins (based on the ftp example).
>>>>>
>>>>> I was wondering now hot to go ahead.
>>>>> what I would love to achieve is a new view which will help me to
>>>>> display the content of my db (files/folders) and from there stick
>>>>> actions like:
>>>>> - open and editor on a file
>>>>> - import export file
>>>>> - ...
>>>>>
>>>>> I cannot use the rse connection view because I want to create a new
>>>>> view to use in my rcp application.
>>>>>
>>>>> I did play few weeks ago with the eclipse file system
>>>>> (org.eclipse.core.filesystem) and I manage to create a quick
>>>>> example. What I had to do with the efs was just
>>>>>
>>>>> EFS.getFileSystem("schema").getStore(uris)
>>>>> and build a treeviewer based on the IFileStore input ...
>>>>>
>>>>> ------
>>>>>
>>>>> What shall I do now, what is the correct way to interact/initialize
>>>>> my rse service?
>>>>>
>>>>> I believe I just should
>>>>> MyService . new ()
>>>>> - set user/ pass/ hot
>>>>> - connect
>>>>> - getFile (root)
>>>>>
>>>>> and move from there?
>>>>> is that correct ...
>>>>>
>>>>> The second bit will be to see how the RSE (I believe is the
>>>>> SystemViewPart) deals with opening editors on a file.
>>>>>
>>>>> Regards
>>>>> Kar
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> "Kar" <carmeloscala@hotmail.com> wrote in message
>>>>> news:gbcqvh$ab6$1@build.eclipse.org...
>>>>>> Thanks Martin ... I was already reading the code in the ftp
>>>>>> example ...
>>>>>>
>>>>>> thanks a lot
>>>>>> Kar
>>>>>>
>>>>>>
>>>>>> "Martin Oberhuber" <martin.oberhuber@windriver.com> wrote in
>>>>>> message news:48D93281.60809@windriver.com...
>>>>>>> Hello Kar,
>>>>>>>
>>>>>>> the right newsgroup for RSE is actually
>>>>>>> news:eclipse.dsdp.tm
>>>>>>>
>>>>>>> Regarding your question, what you need to do is actually
>>>>>>> implement the IFileService interface for your kind of
>>>>>>> communication layer, as well as extend IConnectorService.
>>>>>>> The rest is a bit of syntactic sugar, so it shouldn't be
>>>>>>> too bad.
>>>>>>>
>>>>>>> You can look at existing RSE source code to see how it has
>>>>>>> been done for the FTP or SSH connections. Feel free to ask
>>>>>>> if you have more questions.
>>>>>>>
>>>>>>> Cheers,
>>>>>>> --
>>>>>>> Martin Oberhuber, Senior Member of Technical Staff, Wind River
>>>>>>> Target Management Project Lead, DSDP PMC Member
>>>>>>> http://www.eclipse.org/dsdp/tm
>>>>>>>
>>>>>>> Kar wrote:
>>>>>>>> Hi all,
>>>>>>>> hope this is the right place where I can ask this question ...
>>>>>>>>
>>>>>>>> I have got an rcp application that deal with a server via corba
>>>>>>>> and use a few views to display information present in a db (a
>>>>>>>> tree view for the foders and table view for the file contents).
>>>>>>>>
>>>>>>>> I just got to see the RSE project ...
>>>>>>>> I was wandering how difficult would to implement the
>>>>>>>> "logic/communication" layer ... so that all the other operation
>>>>>>>> like move copy delete and above all opening editor on files.
>>>>>>>>
>>>>>>>> any help or something to read would be appreciated.
>>>>>>>>
>>>>>>>> Kar
>>>>>>
Previous Topic:How to download remote folder (via FTP, I think)
Next Topic:SSH Permission denied, double Upload?
Goto Forum:
  


Current Time: Fri Jul 25 23:13:12 EDT 2014

Powered by FUDForum. Page generated in 0.04864 seconds