Programmatically import pre-existing project from other workspace [message #909218] |
Thu, 06 September 2012 18:41 |
Jay Billings![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=billingsjj%40ornl.gov) Messages: 54 Registered: July 2011 |
Member |
|
|
Could anyone point me to an example of importing a general project, one that just holds files with no particular nature, into a workspace? The projects currently exist in another workspace root and I would like to reference them.
I am able to programmatically load the other project using...
// Load the project description from the workspace
projectDescription = ResourcesPlugin.getWorkspace() .loadProjectDescription(Path.fromOSString(defaultProjectFile .getAbsolutePath()));
// Load the project
IPath projectPath = Path.fromOSString(defaultProjectDirectory
.getAbsolutePath());
project = workspaceRoot.getFolder(projectPath).getProject();
but the only file listed in the project is the .project file. None of the other files (pictures, .png) are listed.
I found a link describing how to do this with Java projects using JavaCapabilityConfigurationPage, but I don't think that will work, based on the API description, for a general project.
I would like to reference this external project instead of copying the files. Any thoughts? Any help is greatly appreciated!
Jay
Jay Jay Billings
Oak Ridge National Laboratory
Twitter: @jayjaybillings
|
|
|
Powered by
FUDForum. Page generated in 0.03170 seconds