Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » PDE: how to get workspace root for imported project?
PDE: how to get workspace root for imported project? [message #89058] Fri, 04 July 2003 13:41 Go to previous message
Eclipse UserFriend
Originally posted by: Frank_van_den_Beuken.programmingresearch.com

Hi all,
I'm writing a plug-in and to test it, I imported an existing large project
from my regular workspace into the runtime-workspace, using the
launched eclipse runtime.
This does not copy the contents of the project.
Eclipse works fine for the imported project; I am able to build the project
without problems in the launched runtime.

My plugin, however, needs paths to Java resources in the project and
is unable to get these.
I use:
IWorkspaceRoot root = eclipseProject.getProject().getWorkspace().getRoot();

where eclipseProject is the IJavaProject the plug-in action operates on,
but this gives me the root of the runtime-workspace, instead of the regular
workspace, in which the project is actually located.
Is this a bug?
Or is there another way to get the file location of the project?
Why is it so hard to get absolute file system paths (including workspace
root path) from eclipse?

Thanks in advance for any help,
Frank
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:Re: Adding menu items to File --> New
Next Topic:Re: CVS Graph plugin for Eclipse available
Goto Forum:
  


Current Time: Tue Sep 24 09:28:14 GMT 2024

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

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

Back to the top