Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Building Workspace indefinitely
Building Workspace indefinitely [message #334896] Mon, 09 March 2009 10:55 Go to next message
Nadav is currently offline NadavFriend
Messages: 29
Registered: July 2009
Junior Member
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 12:38 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33187
Registered: July 2009
Senior Member
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?
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Non-signed JAR warning upon plugin installation in Ganymede and beyond
Next Topic:saving resources
Goto Forum:
  


Current Time: Thu Jul 25 23:32:32 GMT 2024

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

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

Back to the top