Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:53 Go to next message
Christoph Höger is currently offline Christoph Höger
Messages: 40
Registered: July 2009
Member
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 17:21 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26141
Registered: July 2009
Senior Member
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 17:49 Go to previous message
Christoph Höger is currently offline Christoph Höger
Messages: 40
Registered: July 2009
Member
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 Oct 24 21:37:54 GMT 2014

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

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