|Re: Cancellation of XMI load/save [message #467975 is a reply to message #467968]
||Mon, 03 August 2009 13:45
| Romain Dervaux
Registered: July 2009
Well, that's just a "bonus" feature :-D but as the user can cancel the |
process during model creation, it would be logic to be able to cancel
the serialization (usually 500 MB models or more, which can take several
minutes : i use the XMLResource.OPTION_FLUSH_THRESHOLD &
Well, after reflexion, I already handle cancellation during model
creation, we can consider that the user had time to change his mind
Ed Merks a écrit :
> And you'd have the restore the original contents or write to a temporary
> file that you rename. If multiple resources are involved, you'd want to
> restore them all. You really have resources that are so big that
> clients might change their mind part way during saving them? It's hard
> to imagine...
> Romain Dervaux wrote:
>> Hi Ed,
>> If the user cancels the save operation, i would have deleted the
>> partially written file of course :)
>> Thanks for your response.
>> Ed Merks a écrit :
>>> There is currently no support for progress monitoring of load or
>>> save. XSDResourceImpl supports it for load so you could look at that
>>> example, but I'm not sure what canceling save would mean: given that
>>> the document could be partly written out to the file system it sounds
>>> like perhaps a very bad thing to do.
>>> Romain Dervaux wrote:
>>>> Hi, i would to provide cancellation of long-running XMIResource save
>>>> I noticed this discussion :
>>>> http://dev.eclipse.org/newslists/news.eclipse.tools.emf/msg1 2862.html
>>>> But it isn't very clear to me.
>>>> Is progress monitoring supported (as indicated in the javadoc) and
>>>> if yes, what is the procedure to pass the IProgressMonitor to the
>>>> save method ?
>>>> Thanks !
>>>> PS : Sorry for bad english.
Powered by FUDForum
. Page generated in 0.01422 seconds