Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » childen of a resource
childen of a resource [message #507071] Mon, 11 January 2010 21:55 Go to next message
luciano is currently offline lucianoFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,

I would like to access the children of a resource if they exist, e.g. the files in a directory for a directory or the files in an archive for an archive, ... . Is there already a mechanism to access this information? If no, is it a good idea to extend the extensibleuriconverterimpl and the corresponding URIHandler's with a getChildren method?

Thanks for any hints,
Luciano
Re: childen of a resource [message #507073 is a reply to message #507071] Mon, 11 January 2010 17:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33133
Registered: July 2009
Senior Member
Luciano,

It's always bothered me that there's no general mechanism for doing this
via URLs in general for via HTTP at all. So while you can imagine
supporting it for certain schemes, it doesn't seem possible to
completely generalize it. It if were, the way you figured would be a
good one.


luciano wrote:
> Hi,
>
> I would like to access the children of a resource if they exist, e.g.
> the files in a directory for a directory or the files in an archive
> for an archive, ... . Is there already a mechanism to access this
> information? If no, is it a good idea to extend the
> extensibleuriconverterimpl and the corresponding URIHandler's with a
> getChildren method?
>
> Thanks for any hints,
> Luciano


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: childen of a resource [message #507638 is a reply to message #507073] Thu, 14 January 2010 03:54 Go to previous message
Eclipse UserFriend
Originally posted by: luzi.anderegg.ergon.ch

Ed, thanks for your answer.

Is it also true, that creating a directory is not supported? I would
like to create the directory if the URI is a directory and the scheme in
the URI allows it.

Thanks again,
Luciano

Ed Merks schrieb:
> Luciano,
>
> It's always bothered me that there's no general mechanism for doing this
> via URLs in general for via HTTP at all. So while you can imagine
> supporting it for certain schemes, it doesn't seem possible to
> completely generalize it. It if were, the way you figured would be a
> good one.
>
>
> luciano wrote:
>> Hi,
>>
>> I would like to access the children of a resource if they exist, e.g.
>> the files in a directory for a directory or the files in an archive
>> for an archive, ... . Is there already a mechanism to access this
>> information? If no, is it a good idea to extend the
>> extensibleuriconverterimpl and the corresponding URIHandler's with a
>> getChildren method?
>>
>> Thanks for any hints,
>> Luciano
Previous Topic:NullPointerException in EMF code
Next Topic:[CDO] 3.0 Standalone (spring wired) server and client example
Goto Forum:
  


Current Time: Tue Apr 16 08:24:59 GMT 2024

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

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

Back to the top