|
Re: Building Workspace indefinitely [message #334898 is a reply to message #334896] |
Mon, 09 March 2009 12:38 |
Ed Merks Messages: 33264 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03214 seconds