Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Re: Change of IUnitOfWork behaviour in 2.0M7
Re: Change of IUnitOfWork behaviour in 2.0M7 [message #669070] Mon, 09 May 2011 09:23
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Ed,

#modify will record the changes that you make in the model and use the
serializer to reflect this changes in the document as soon as your
transaction is over. However, #readonly activities may run in parallel.
If you need to provide the results of your analysis for all subsequent
components (such as outline, highlighting, ..), I'd recommend to use
AbstractCleaningLinker#afterModelLinked to perform the analysis. It is
ensured, that #afterModelLinked is part of the reconciling step after
the partial parsing and therefore part of an internal modify
transaction. Others will not perform read operation on the model at the
same time.

Hope that helps,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 09.05.11 10:56, schrieb Ed Willink:
> Hi Sebastian
>
> I'm not sure whether the 'old' or the 'new' behaviour is the intended
> functionality. It's very easy for me to change from modify to readonly,
> indeed it is not entirely clear whether my downstream analysis of the CS
> Resource constitutes a readonly activity or not.
>
> Regards
>
> Ed Willink
>
> On 09/05/2011 08:48, Sebastian Zarnekow wrote:
>> Hi Ed,
>>
>> I'm not aware of any changed line of code that may be the cause for
>> the described change. Could you please file a ticket with a small
>> reproducable example? That would be very helpful.
>>
>> Regards,
>> Sebastian
>
Previous Topic:Re: Change of IUnitOfWork behaviour in 2.0M7
Next Topic:Re: Change of IUnitOfWork behaviour in 2.0M7
Goto Forum:
  


Current Time: Thu Mar 28 10:04:18 GMT 2024

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

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

Back to the top