Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [RCP] Support of non-file resources
[RCP] Support of non-file resources [message #261715] Thu, 15 July 2004 07:55 Go to next message
Eclipse UserFriend
Hi.

We're planning to develop an Java application accessing databases as
resources only. Correct me if I'm wrong, but as far as I could learn it
reading the documentation Eclipse supports the following three kinds of
resources only: projects, folders and files.
These resources and the workspace they do reside in have to be folders
and files in a (local) filesystem, right?

So. Assuming this is true, how can one develop an RCP application
purely using resources in a database? If this should be possible at all,
the only hint I expect is to sit down and implement the corresponding
interfaces 'as desired', huh?

To depict our intentions, let's say the project is a phone book,
folders might be cities and files the Names and phone numbers.
All of these entities are stored in a database.
How do I explain this to Eclipse so that I can use a navigator view
to browse my phone books aka projects?

Marcus
Re: [RCP] Support of non-file resources [message #261798 is a reply to message #261715] Thu, 15 July 2004 11:04 Go to previous messageGo to next message
Eclipse UserFriend
Marcus,

It is not that Eclipse only supports projects, files and folders so much
as that Eclipse has some built in views and editors that operate on
projects, files and folders (e.g. the resource navigator). Typically,
for an RCP app, the Eclipse resources and the supporting UI would not be
included anyway.

So, if you have your own resource type, it is reasonable to assume that
you would define the interfaces and classes for them and provide views
for inspecting and operating on them. I have been working on an example
for providing FTP and WebDAV support in an RCP application. It's in the
early stages but does provide a resource interface (ITargetResource) and
a view for displaying them (SiteExplorerView).

Here's a link to the example.

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-vcm-home/plugins/target/target-project-sets/readme.html

Hope this helps
Michael
Marcus Olk wrote:

> Hi.
>
> We're planning to develop an Java application accessing databases as
> resources only. Correct me if I'm wrong, but as far as I could learn it
> reading the documentation Eclipse supports the following three kinds of
> resources only: projects, folders and files.
> These resources and the workspace they do reside in have to be folders
> and files in a (local) filesystem, right?
>
> So. Assuming this is true, how can one develop an RCP application
> purely using resources in a database? If this should be possible at all,
> the only hint I expect is to sit down and implement the corresponding
> interfaces 'as desired', huh?
>
> To depict our intentions, let's say the project is a phone book,
> folders might be cities and files the Names and phone numbers.
> All of these entities are stored in a database.
> How do I explain this to Eclipse so that I can use a navigator view
> to browse my phone books aka projects?
>
> Marcus
>
Re: [RCP] Support of non-file resources [message #262753 is a reply to message #261798] Tue, 20 July 2004 17:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: luc__m.ca.videotron

Michael,

Could you give us a general overview of those interfaces and how they
integrate in the development of RCP applications ?

Also, are these interfaces planned to be part of the Eclipse release at some
point ?

I'm also thinking of using Eclipse as the basis for a database application,
and I find myself lacking general understanding of how to integrate this
with Eclipse/RCP, as it seems all material out there is file resource based.

Thank you.


"Michael Valenta" <Michael_Valenta@ca.ibm.com> wrote in message
news:40F69D05.2030803@ca.ibm.com...
> Marcus,
>
> It is not that Eclipse only supports projects, files and folders so much
> as that Eclipse has some built in views and editors that operate on
> projects, files and folders (e.g. the resource navigator). Typically,
> for an RCP app, the Eclipse resources and the supporting UI would not be
> included anyway.
>
> So, if you have your own resource type, it is reasonable to assume that
> you would define the interfaces and classes for them and provide views
> for inspecting and operating on them. I have been working on an example
> for providing FTP and WebDAV support in an RCP application. It's in the
> early stages but does provide a resource interface (ITargetResource) and
> a view for displaying them (SiteExplorerView).
>
> Here's a link to the example.
>
>
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-vcm-home/plugins/target/target-project-sets/readme.html
>
> Hope this helps
> Michael
> Marcus Olk wrote:
>
> > Hi.
> >
> > We're planning to develop an Java application accessing databases as
> > resources only. Correct me if I'm wrong, but as far as I could learn it
> > reading the documentation Eclipse supports the following three kinds of
> > resources only: projects, folders and files.
> > These resources and the workspace they do reside in have to be folders
> > and files in a (local) filesystem, right?
> >
> > So. Assuming this is true, how can one develop an RCP application
> > purely using resources in a database? If this should be possible at all,
> > the only hint I expect is to sit down and implement the corresponding
> > interfaces 'as desired', huh?
> >
> > To depict our intentions, let's say the project is a phone book,
> > folders might be cities and files the Names and phone numbers.
> > All of these entities are stored in a database.
> > How do I explain this to Eclipse so that I can use a navigator view
> > to browse my phone books aka projects?
> >
> > Marcus
> >
>
Re: [RCP] Support of non-file resources [message #263356 is a reply to message #262753] Thu, 22 July 2004 16:14 Go to previous message
Eclipse UserFriend
Luc Morin wrote:

> Michael,
>
> Could you give us a general overview of those interfaces and how they
> integrate in the development of RCP applications ?


Basically, the target plugin provides an ITargetResource interface that
in essence, defines a file system that consists of directories and files
and can be traversed. There are other plugins that provide implentations
of this interface for FTP, WebDAV, java.io.File and IResource so that
any or all of these can appear in the SiteExplorer view.

I'm not sure if the ITargetResource interface is what you would want to
implement though. You would probably want your own interface that
defined how database resources could be traversed.

I posted a reponse to the thread "Building Plugins For Rich Client
Platform" which described what was required in addition to the interface
to create an application. You can have a look at that for more details
on how to use the interface to populate views and provide menu operations.


> Also, are these interfaces planned to be part of the Eclipse release at some
> point ?


There is no plan at the moment but that is my eventual goal. There are
several details that willneed to be worked out before this could happen
and the final form may differ from the state of the example.


> I'm also thinking of using Eclipse as the basis for a database application,
> and I find myself lacking general understanding of how to integrate this
> with Eclipse/RCP, as it seems all material out there is file resource based.

Again, have a look at the posting I did in the "Building Plugins For Rich

Client Platform" and see if that helps. I'm sure there will be more material

becoming available now that RCP is out as part of the 3.0 release.


Michael


>
>
> "Michael Valenta" <Michael_Valenta@ca.ibm.com> wrote in message
> news:40F69D05.2030803@ca.ibm.com...
>
>>Marcus,
>>
>>It is not that Eclipse only supports projects, files and folders so much
>>as that Eclipse has some built in views and editors that operate on
>>projects, files and folders (e.g. the resource navigator). Typically,
>>for an RCP app, the Eclipse resources and the supporting UI would not be
>>included anyway.
>>
>>So, if you have your own resource type, it is reasonable to assume that
>>you would define the interfaces and classes for them and provide views
>>for inspecting and operating on them. I have been working on an example
>>for providing FTP and WebDAV support in an RCP application. It's in the
>>early stages but does provide a resource interface (ITargetResource) and
>>a view for displaying them (SiteExplorerView).
>>
>>Here's a link to the example.
>>
>>
>>
> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-vcm-home/plugins/target/target-project-sets/readme.html
>
>>Hope this helps
>>Michael
>>Marcus Olk wrote:
>>
>>
>>>Hi.
>>>
>>>We're planning to develop an Java application accessing databases as
>>>resources only. Correct me if I'm wrong, but as far as I could learn it
>>>reading the documentation Eclipse supports the following three kinds of
>>>resources only: projects, folders and files.
>>>These resources and the workspace they do reside in have to be folders
>>>and files in a (local) filesystem, right?
>>>
>>>So. Assuming this is true, how can one develop an RCP application
>>>purely using resources in a database? If this should be possible at all,
>>>the only hint I expect is to sit down and implement the corresponding
>>>interfaces 'as desired', huh?
>>>
>>>To depict our intentions, let's say the project is a phone book,
>>>folders might be cities and files the Names and phone numbers.
>>>All of these entities are stored in a database.
>>>How do I explain this to Eclipse so that I can use a navigator view
>>>to browse my phone books aka projects?
>>>
>>>Marcus
>>>
>>>
>
>
Previous Topic:CVS Repositories view reports "Folder does not exist remotely"
Next Topic:M9: Problems using Singleton Class
Goto Forum:
  


Current Time: Wed Jul 16 14:47:20 EDT 2025

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

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

Back to the top