The user is waiting of "Building workspace" to complete [message #322599] |
Wed, 21 November 2007 05:58  |
Eclipse User |
|
|
|
Originally posted by: alexjaquet.gmail.com
Hi,
I'm having this message displayed when I'm been trying to perform a save
on a EMF resource.
I've the following code
private void performSave(final Resource resource,
IProgressMonitor progressMonitor) {
// Do the work within an operation because this is a long running
// activity that modifies the workbench.
WorkspaceModifyOperation operation = new WorkspaceModifyOperation() {
public void execute(IProgressMonitor monitor) {
try {
resource.save(null);
} catch (IOException ioe) {
Logger.error("Unable to save the resource", ioe);
}
}
};
try {
// This runs the options, and shows progress.
new ProgressMonitorDialog(getSite().getShell()).run(true, false,
operation);
// Refresh the necessary state.
getEditDomain().getCommandStack().markSaveLocation();
firePropertyChange(IEditorPart.PROP_DIRTY);
} catch (InterruptedException ie) {
Logger.error("Unable to save the resource", ie);
} catch (InvocationTargetException ite) {
Logger.error("Unable to save the resource", ite);
}
}
Any idea on how I can fix this bug ?
Thanks
|
|
|
|
|
|
|
|
Re: The user is waiting of "Building workspace" to complete [message #322606 is a reply to message #322605] |
Wed, 21 November 2007 10:01  |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Alexandre,
I'm not so convinced it will work "well." Most likely the workspace
will be out of sync with respect to the file system using this approach,
so this is masking a problem by creating a new one... Try opening the
resource with a text editor afterwards...
Alexandre Jaquet wrote:
> Thanks Ed for your remark, I bypass the problem by saving the resource
> with an ouputstream its work well.
|
|
|
Powered by
FUDForum. Page generated in 0.03195 seconds