|Programmatically import pre-existing project from other workspace [message #909218]
||Thu, 06 September 2012 18:41
| Jay Billings
Registered: July 2011
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
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 Billings
Oak Ridge National Laboratory
Powered by FUDForum
. Page generated in 0.02356 seconds