Non-UI class for importing resources? [message #294584] |
Mon, 14 November 2005 11:32  |
Eclipse User |
|
|
|
Originally posted by: mark_melvin.amis.com
Hi There,
I am trying to import an existing project into a workspace when running
in headless mode. I figured this would be a simple thing to do, but it
looks like the platform uses the ImportOperation class to do all of the
work, which is in the UI plugin! I would think that a simple resource
import should be non-UI specific. I understand there are complexities
in terms of overwrite queries, etc., but this should be doable without
UI code if desired. After all, org.eclipse.core.resources is not a
UI-specific plugin!
Is there not a non-UI way to simply import a project into a workspace
without basically re-writing ImportOperation, or am I missing something?
Thanks,
Mark.
|
|
|
Re: Non-UI class for importing resources? [message #294588 is a reply to message #294584] |
Mon, 14 November 2005 11:54  |
Eclipse User |
|
|
|
Originally posted by: mark_melvin.amis.com
Umm...I think I may have prematurely posted. It looks like the
ImportOperation is only used when importing existing projects from
zipfiles. It looks like creating a project description pointing to the
existing location, and then creating the project is all I need to do.
Mark.
Mark Melvin wrote:
> Hi There,
>
> I am trying to import an existing project into a workspace when running
> in headless mode. I figured this would be a simple thing to do, but it
> looks like the platform uses the ImportOperation class to do all of the
> work, which is in the UI plugin! I would think that a simple resource
> import should be non-UI specific. I understand there are complexities
> in terms of overwrite queries, etc., but this should be doable without
> UI code if desired. After all, org.eclipse.core.resources is not a
> UI-specific plugin!
>
> Is there not a non-UI way to simply import a project into a workspace
> without basically re-writing ImportOperation, or am I missing something?
>
> Thanks,
> Mark.
|
|
|
Powered by
FUDForum. Page generated in 0.24518 seconds