PDE: how to get workspace root for imported project? [message #89058] |
Fri, 04 July 2003 13:41 |
Eclipse User |
|
|
|
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
|
|
|