Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Building Workspace indefinitely
Building Workspace indefinitely [message #334896] Mon, 09 March 2009 06:55 Go to next message
Eclipse UserFriend
In my plugin, I import a number of projects to the workspace via their
project file:

while(...)
{
IPath descriptionPath=new Path(projectFilePath);
IProjectDescription description=ws.loadProjectDescription(descriptionPath);
IProject project = wsRoot.getProject(description.getName());
if(!project.exists())
project.create(description,null);
project.open(null);
}

What happens sometimes is that after the first project.open a dialog pops
up saying "User Operation is Waiting" and shows two tasks:
1) Building workspace
2) Waiting User Operation

These never complete and you have to cancel them. The resulting exception
jumps out of my while loop and only the first project is imported
successfully.

How do I deal fix this?
Re: Building Workspace indefinitely [message #334898 is a reply to message #334896] Mon, 09 March 2009 08:38 Go to previous message
Eclipse UserFriend
Nadav,

Maybe it should all be grouped into the scope of a single
WorkspaceModifyOperation...


Nadav wrote:
> In my plugin, I import a number of projects to the workspace via their
> project file:
>
> while(...)
> {
> IPath descriptionPath=new Path(projectFilePath);
> IProjectDescription
> description=ws.loadProjectDescription(descriptionPath);
> IProject project = wsRoot.getProject(description.getName());
> if(!project.exists())
> project.create(description,null);
> project.open(null);
> }
>
> What happens sometimes is that after the first project.open a dialog
> pops up saying "User Operation is Waiting" and shows two tasks:
> 1) Building workspace
> 2) Waiting User Operation
>
> These never complete and you have to cancel them. The resulting
> exception jumps out of my while loop and only the first project is
> imported successfully.
>
> How do I deal fix this?
>
Previous Topic:Non-signed JAR warning upon plugin installation in Ganymede and beyond
Next Topic:saving resources
Goto Forum:
  


Current Time: Wed Mar 12 11:33:59 EDT 2025

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

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

Back to the top