Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Getting Ecore based editors refreshed after TransactionalEditingDomain RecordingCommand
Getting Ecore based editors refreshed after TransactionalEditingDomain RecordingCommand [message #415784] Sun, 06 January 2008 22:56 Go to next message
lucas bigeardel is currently offline lucas bigeardelFriend
Messages: 155
Registered: July 2009
Senior Member
Hi,

I was wondering what would be the best solution to get an "XYZ Ecore
based" editor content "refreshed" after having modified its Resource
with a TransationalEditingDomain with a RecordingCommand and saved it.

I was guessing saving its resource was suffisient but didn't remember a
pertinent way to do.

regards,
Re: Getting Ecore based editors refreshed after TransactionalEditingDomain RecordingCommand [message #415786 is a reply to message #415784] Sun, 06 January 2008 23:50 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Lucas,

I would expect it would just refresh itself by virtue of having notified
the item providers of all the changes that were made. Saving it or not
doesn't seem relevant, since saving is not a change to the model the
editor is viewing. I think I need more details...


lucas bigeardel wrote:
> Hi,
>
> I was wondering what would be the best solution to get an "XYZ Ecore
> based" editor content "refreshed" after having modified its Resource
> with a TransationalEditingDomain with a RecordingCommand and saved it.
>
> I was guessing saving its resource was suffisient but didn't remember
> a pertinent way to do.
>
> regards,


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Getting Ecore based editors refreshed after TransactionalEditingDomain RecordingCommand [message #415801 is a reply to message #415786] Mon, 07 January 2008 14:55 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.ca.ibm.com

Ed, Lucas,

Do Commands use a different mechanism than Notifications for telling item
providers about changes? For example, RecordingCommand doesn't compute
an "affected objects" collection.

Cheers,

Christian

Ed Merks wrote:

> Lucas,
>
> I would expect it would just refresh itself by virtue of having notified
> the item providers of all the changes that were made. Saving it or not
> doesn't seem relevant, since saving is not a change to the model the
> editor is viewing. I think I need more details...
>
>
> lucas bigeardel wrote:
>> Hi,
>>
>> I was wondering what would be the best solution to get an "XYZ Ecore
>> based" editor content "refreshed" after having modified its Resource
>> with a TransationalEditingDomain with a RecordingCommand and saved it.
>>
>> I was guessing saving its resource was suffisient but didn't remember
>> a pertinent way to do.
>>
>> regards,
Previous Topic:EMF Transaction read objects
Next Topic:Why no Operations on EEnums?
Goto Forum:
  


Current Time: Fri Apr 26 05:32:32 GMT 2024

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

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

Back to the top