Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Non-UI class for importing resources?
Non-UI class for importing resources? [message #294584] Mon, 14 November 2005 11:32 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:How to open two view in eclipse at one go?
Next Topic:stupid eclipse
Goto Forum:
  


Current Time: Thu May 08 13:28:16 EDT 2025

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

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

Back to the top