Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to access external Resources (best practices wanted)
How to access external Resources (best practices wanted) [message #336417] Wed, 10 June 2009 11:53 Go to next message
Eclipse UserFriend
Hi all,

I am developing eclipse support for Modelica. That language has some
common structures, one is external libraries.
So like in common java projects I want be able to add those libs to my
project and have them shown in the Navigator.

The easiest way to do that would be to have some kind of virtual IFolder
that does not map to a _real_ workspace local resource. Is that even
possible?

The other way would be to completely implement that stuff in my project
model myself without sharing any common types with eclipse (one shall
not implement IContainer). Isn't that overhead?

any ideas?
Re: How to access external Resources (best practices wanted) [message #336420 is a reply to message #336417] Wed, 10 June 2009 13:21 Go to previous messageGo to next message
Eclipse UserFriend
Christoph,

If you literally want your own file system implementation, looking into
use EFS (Eclipse File System) for that. Note however that this is not
how Java projects implement what you seen in the Common Navigator or
Package Explorer... Content providers can induce any tree structure you
want visually...



Christoph Höger wrote:
> Hi all,
>
> I am developing eclipse support for Modelica. That language has some
> common structures, one is external libraries.
> So like in common java projects I want be able to add those libs to my
> project and have them shown in the Navigator.
>
> The easiest way to do that would be to have some kind of virtual
> IFolder that does not map to a _real_ workspace local resource. Is
> that even possible?
>
> The other way would be to completely implement that stuff in my
> project model myself without sharing any common types with eclipse
> (one shall not implement IContainer). Isn't that overhead?
>
> any ideas?
Re: How to access external Resources (best practices wanted) [message #336421 is a reply to message #336420] Wed, 10 June 2009 13:49 Go to previous message
Eclipse UserFriend
No, I definetely do not want to write a complete file system
abstraction. But when I designed my interfaces I discovered that there
would be Source Folders (which have a IFolder) and Library Entries that
both should provide the (java package like) contents.
So to make life easier I just gave both a common superinterface which
can return IContainer (so Navigator should be able to handle those
contents for free).

So there is no way but to deliver that content myself. OK.

thanks for the answer

(and stay tuned for way more Navigator related questions)
Previous Topic:[debug] Fill the entire variables view at once?
Next Topic:Keyboard Timeout
Goto Forum:
  


Current Time: Fri Apr 25 21:29:10 EDT 2025

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

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

Back to the top