Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 365577 - [Transaction Editing Domain] Transaction Editing domain id needs to be registered and change
Summary: [Transaction Editing Domain] Transaction Editing domain id needs to be regist...
Status: CLOSED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 0.8.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Arthur Daussy CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-05 07:20 EST by Arthur Daussy CLA
Modified: 2012-01-09 05:21 EST (History)
3 users (show)

See Also:


Attachments
Correction for Transaction Editing Domain (1.18 KB, application/octet-stream)
2011-12-05 07:22 EST, Arthur Daussy CLA
no flags Details
New correction (1.18 KB, patch)
2011-12-05 11:49 EST, Arthur Daussy CLA
no flags Details | Diff
Email from Cedric Dumoulin on mailing list (3.08 KB, text/plain)
2011-12-07 05:14 EST, Arthur Daussy CLA
no flags Details
New correction (1.36 KB, patch)
2011-12-07 06:06 EST, Arthur Daussy CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur Daussy CLA 2011-12-05 07:20:02 EST
At the comment the current Transactional Editing Domain of Papyrus is never register in the registry. Moreover its ID is "SharedEditingDomain".
I would suggest to change it for something like org.eclipse.papyrus.SharedEditingDomain and register it in the registry.
Comment 1 Arthur Daussy CLA 2011-12-05 07:22:38 EST
Created attachment 207912 [details]
Correction for Transaction Editing Domain

Correction for transaction Editing Domain
Comment 2 Arthur Daussy CLA 2011-12-05 11:49:59 EST
Created attachment 207928 [details]
New correction

New correction with observation from dev list.
Comment 3 Arthur Daussy CLA 2011-12-05 11:52:29 EST
Committed on the 0.8.X branch.
Will be backported soon..
Comment 4 Alain Le Guennec CLA 2011-12-06 09:10:45 EST
Just a quick question:
I have not seen any de-registration.
Won't the registration cause a leak?
Comment 5 Arthur Daussy CLA 2011-12-07 05:12:32 EST
Yes the registration is here:
TransactionalEditingDomain.Registry.INSTANCE.add(PAPYRUS_EDITING_DOMAIN_ID, transactionalEditingDomain);

However Cedric raise another problem (see email in attachment) that is a real problem when multiple papyrus editor are open.
I am currently looking into it. Let you know when I have found a better solution.
Comment 6 Arthur Daussy CLA 2011-12-07 05:14:44 EST
Created attachment 208044 [details]
Email from Cedric Dumoulin on mailing list

Exchange on mailing list
Comment 7 Arthur Daussy CLA 2011-12-07 06:04:31 EST
Hi,

 The main problem with no registration of the editing domain is you can not use the extension point of EMF transaction to register listener easily:
            org.eclipse.emf.transaction.listeners
As creation of the Papyrus Editing Domain is hand made ( see org.eclipse.papyrus.resource.ModelSet)we have integrate this mechanism into MDT Papyrus. With this solution Papyrus transactional editing domain will not need to be registered.

However we have not been able to find where the Transactional Editing domain was dispose. So as Alain said, it still may persist some leak. Cedric do you have any idea on this topic. If none, I will start a discussion about it on the dev list.

Regards.
Comment 8 Arthur Daussy CLA 2011-12-07 06:06:13 EST
Created attachment 208047 [details]
New correction
Comment 9 Arthur Daussy CLA 2012-01-09 05:21:36 EST
Committed on trunk and branch 0.8.x.